Disposes the scope and finalizes telemetry data collection.
Legacy dispose method for compatibility.
Gets the span context for this scope.
Records multiple attribute key/value pairs.
Records a cancellation event on the span.
Optionalreason: stringRecords an error that occurred during the operation.
ProtectedrecordRecords the input messages for telemetry tracking.
Records the output messages for telemetry tracking. Overwrites any previously recorded output messages.
Sets a custom end time for the scope.
When set, dispose() will pass this value to span.end() instead of using wall-clock time.
ProtectedsetSets a tag on the span if the value is not null or undefined.
StaticstartCreates and starts a new scope for output message tracing.
Request payload (channel, conversationId, content, sessionId).
The response containing initial output messages.
The agent producing the output. tenantId is required.
OptionaluserDetails: UserDetailsOptional human caller identity details.
OptionalspanDetails: A365SpanDetailsOptional span configuration.
Provides OpenTelemetry tracing scope for output message tracing.