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.
Records the input messages for telemetry tracking.
Records the output messages for telemetry tracking.
Records response information 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.
StaticstartCreates and starts a new scope for agent invocation tracing.
Request payload (channel, conversationId, content, sessionId).
Scope-level details (endpoint).
The agent identity. tenantId is required.
OptionalcallerDetails: CallerDetailsOptional caller information (human, agent, or both for A2A).
OptionalspanDetails: A365SpanDetailsOptional span configuration.
Provides OpenTelemetry tracing scope for AI agent invocation operations.