microsoft.opentelemetry.a365.core.exporters.enriching_span_processor module
Span enrichment support for the Agent365 exporter pipeline.
Provides a span processor that runs registered enrichers against each span before it is exported, allowing additional attributes to be attached without mutating the original span.
- microsoft.opentelemetry.a365.core.exporters.enriching_span_processor.register_span_enricher(enricher)[source]
Register the span enricher for the active platform instrumentor.
Only one enricher can be registered at a time since auto-instrumentation is platform-specific (Semantic Kernel, LangChain, or OpenAI Agents).
Raises RuntimeError if an enricher is already registered.
- Return type:
- microsoft.opentelemetry.a365.core.exporters.enriching_span_processor.unregister_span_enricher()[source]
Unregister the current span enricher.
- Return type: