Skip to main content

ActivityStartOptions

The ActivityStartOptions class provides configuration options for starting a telemetry activity, including tags, user details, trace level, and propagation context.

Properties

NameDescription
TagsA collection of key-value pairs representing metadata associated with the activity.
UserThe name of the user associated with the activity.
PropagationContextThe context used for distributed tracing propagation.
TraceLevelThe severity level for tracing. Defaults to LogSeverity.Information.
ActivityKindSpecifies the type of activity. Defaults to ActivityKind.Internal.
UserIdThe identifier of the user associated with the activity.

Constructors

NameDescription
ActivityStartOptions(tags)Initializes a new instance of the ActivityStartOptions class with specified tags.
ActivityStartOptions(user, userId, tags, propagationContext)Initializes a new instance of the ActivityStartOptions class with specified user information.
ActivityStartOptions(traceLevel, tags)Initializes a new instance of the ActivityStartOptions class with a specified trace level and tags.
ActivityStartOptions()Initializes a new instance of the ActivityStartOptions class with default values.
ActivityStartOptions(user, userId, tags, propagationContext)Initializes a new instance of the ActivityStartOptions class with specified user details, tags, and propagation context.
ActivityStartOptions(user, userId, traceLevel, tags, propagationContext)Initializes a new instance of the ActivityStartOptions class with specified user details, trace level, tags, and propagation context.
ActivityStartOptions(propagationContext)Initializes a new instance of the ActivityStartOptions class with a specified propagation context.
ActivityStartOptions(traceLevel)Initializes a new instance of the ActivityStartOptions class with a specified trace level
ActivityStartOptions(propagationContext, tags)Initializes a new instance of the ActivityStartOptions class with a specified propagation context and tags.