BaggageMiddleware class
Middleware that propagates OpenTelemetry baggage context derived from TurnContext. Async replies (ContinueConversation) are passed through without baggage setup.
Methods
| on |
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>