Freigeben über


OpenTelemetryScope Constructor

Definition

Initializes a new instance of the OpenTelemetryScope class.

protected OpenTelemetryScope(System.Diagnostics.ActivityKind kind, Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.AgentDetails agentDetails, Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.TenantDetails tenantDetails, string operationName, string activityName, DateTimeOffset? startTime = default, string? parentId = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Scopes.OpenTelemetryScope : System.Diagnostics.ActivityKind * Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.AgentDetails * Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.TenantDetails * string * string * Nullable<DateTimeOffset> * string -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Scopes.OpenTelemetryScope
Protected Sub New (kind As ActivityKind, agentDetails As AgentDetails, tenantDetails As TenantDetails, operationName As String, activityName As String, Optional startTime As Nullable(Of DateTimeOffset) = Nothing, Optional parentId As String = Nothing)

Parameters

kind
ActivityKind

The kind of activity (Client, Server, Internal, etc.).

agentDetails
AgentDetails

Agent details

tenantDetails
TenantDetails
operationName
String

The name of the operation being traced.

activityName
String

The name of the activity for display purposes.

startTime
Nullable<DateTimeOffset>

Optional custom start time for the scope. If not provided, the current time is used.

parentId
String

Optional parent ID for the activity.

Applies to