@microsoft/opentelemetry
    Preparing search index...

    Class A365SpanProcessor

    Copies relevant baggage entries to span attributes on span start.

    This is the "automatic" counterpart to the manual scope API — it ensures every span in the pipeline gets agent identity attributes from baggage without explicitly creating scopes.

    Implements

    • SpanProcessor
    Index

    Constructors

    Methods

    • Called when a span is started. Copies relevant baggage entries to span attributes. Only GenAI spans are processed (those with a known gen_ai.operation.name span attribute: invoke_agent, execute_tool, chat, output_messages); all other spans pass through unmodified.

      Parameters

      • span: Span
      • OptionalparentContext: Context

      Returns void