OutputLoggingMiddleware class

Middleware that creates OutputScope spans for outgoing messages. Links to a parent span when A365_PARENT_SPAN_KEY is set in turnState.

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

Methods

onTurn(TurnContextLike, () => Promise<void>)

Processes a turn and invokes the next middleware.

Method Details

onTurn(TurnContextLike, () => Promise<void>)

Processes a turn and invokes the next middleware.

function onTurn(context: TurnContextLike, next: () => Promise<void>): Promise<void>

Parameters

context
TurnContextLike

The current turn context.

next

() => Promise<void>

Invokes the next middleware in the pipeline.

Returns

Promise<void>