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.
ProtectedrecordRecords the output messages for telemetry tracking.
Records response information for telemetry tracking. Objects are serialized to JSON automatically.
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 tool execution tracing.
Request payload (channel, conversationId, content, sessionId).
The tool call details (name, type, args, call id, etc.).
The agent executing the tool. tenantId is required.
OptionaluserDetails: UserDetailsOptional human caller identity.
OptionalspanDetails: A365SpanDetailsOptional span configuration. Defaults to SpanKind.INTERNAL.
Provides OpenTelemetry tracing scope for AI tool execution operations.