microsoft.opentelemetry.a365.hosting.middleware.output_logging_middleware module
Middleware that creates OutputScope spans for outgoing messages.
- microsoft.opentelemetry.a365.hosting.middleware.output_logging_middleware.A365_PARENT_TRACEPARENT_KEY = 'A365ParentTraceparent'
TurnState key under which the parent trace context (a W3C
traceparentstring) is stored so emittedOutputScopespans can be linked to it.
- class microsoft.opentelemetry.a365.hosting.middleware.output_logging_middleware.OutputLoggingMiddleware[source]
Bases:
objectMiddleware that creates
OutputScopespans for outgoing messages.Links to a parent span when
A365_PARENT_TRACEPARENT_KEYis set inturn_state.Privacy note: Outgoing message content is captured verbatim as span attributes and exported to the configured telemetry backend.