middleware Package

Modules

baggage_middleware

Middleware that propagates OpenTelemetry baggage context derived from TurnContext.

observability_hosting_manager

Singleton manager for configuring hosting-layer observability middleware.

output_logging_middleware

Middleware that creates OutputScope spans for outgoing messages.

Classes

BaggageMiddleware

Middleware that propagates OpenTelemetry baggage context derived from TurnContext.

Async replies (ContinueConversation) are passed through without baggage setup.

ObservabilityHostingManager

Singleton manager for configuring hosting-layer observability middleware.

Private constructor — use configure instead.

ObservabilityHostingOptions

Configuration options for the hosting observability layer.

OutputLoggingMiddleware

Middleware that creates <xref:microsoft.opentelemetry.a365.hosting.middleware.OutputScope> spans for outgoing messages.

Links to a parent span when <xref: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.