microsoft.opentelemetry.a365.hosting.middleware.output_logging_middleware module

Middleware that creates OutputScope spans for outgoing messages.

class microsoft.opentelemetry.a365.hosting.middleware.output_logging_middleware.OutputLoggingMiddleware[source]

Bases: object

Middleware that creates OutputScope spans for outgoing messages.

Links to a parent span when A365_PARENT_TRACEPARENT_KEY is set in turn_state.

Privacy note: Outgoing message content is captured verbatim as span attributes and exported to the configured telemetry backend.

async on_turn(context, logic)[source]
Return type:

None