AbstractProtectedconstructorThe name of the operation being traced.
The display name of the span.
OptionalagentDetails: AgentDetailsOptional agent details. Tenant ID is read from agentDetails.tenantId.
OptionalspanDetails: A365SpanDetailsOptional span configuration including parent context, start/end times, span kind, and span links.
OptionaluserDetails: UserDetailsOptional human caller identity details.
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.
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.
Base class for OpenTelemetry tracing scopes.
Subclasses:
InvokeAgentScope,ExecuteToolScope,InferenceScope,OutputScope.