Metadata-Version: 2.5
Name: narrativetrace-otel
Version: 0.1.1
Summary: OpenTelemetry span bridge for narrativetrace traces
Project-URL: Homepage, https://github.com/narrativetrace/narrativetrace-python
Project-URL: Source, https://github.com/narrativetrace/narrativetrace-python
Author: narrativetrace contributors
License-Expression: BUSL-1.1
License-File: LICENSE
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: narrativetrace
Requires-Dist: opentelemetry-api>=1.20
Description-Content-Type: text/markdown

# narrativetrace-otel

OpenTelemetry span bridge for [narrativetrace](../narrativetrace) traces.

Two entry points:

* `OtelTraceEventListener` — a live event consumer that opens a span on each enter and
  closes it on the matching exit, anchored to the **event timestamps** (not processing
  time). Orphaned spans are evicted by a bounded `PerishableMap`.
* `TraceSpanExporter` — a batch exporter that walks a completed `TraceTree`/`TraceNode`
  forest and emits a nested span per node.
