OpenTelemetryScope Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the OpenTelemetryScope class.
protected OpenTelemetryScope(string operationName, string activityName, Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.AgentDetails agentDetails, Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.SpanDetails? spanDetails = default, Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.UserDetails? userDetails = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Scopes.OpenTelemetryScope : string * string * Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.AgentDetails * Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.SpanDetails * Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.UserDetails -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Scopes.OpenTelemetryScope
Protected Sub New (operationName As String, activityName As String, agentDetails As AgentDetails, Optional spanDetails As SpanDetails = Nothing, Optional userDetails As UserDetails = Nothing)
Parameters
- operationName
- String
The name of the operation being traced.
- activityName
- String
The name of the activity for display purposes.
- agentDetails
- AgentDetails
Optional agent details. Tenant ID is read from TenantId.
- spanDetails
- SpanDetails
Optional span configuration including parent context, start/end times, span kind, and span links. Subclasses may override SpanKind before calling this constructor; defaults to Client.
- userDetails
- UserDetails
Optional human caller identity details (id, email, name, client IP).