Skip to main content

ActivityStartOptions Constructors

An object defining constructors for the ActivityStartOptions class.

ActivityStartOptions(propagationContext, tags)​

Initializes a new instance of the ActivityStartOptions class with a specified propagation context and tags.

Parameters:​

propagationContext (required): PropagationContext
The context used for distributed tracing propagation.

tags (required): KeyValuePair<string, object>[]
An array of key-value pairs representing metadata for the activity.


ActivityStartOptions(user, userId, tags, propagationContext)​

Initializes a new instance of the ActivityStartOptions class with specified user details, tags, and propagation context.

Parameters:​

user (required): string
The name of the user.

userId (required): string
The identifier of the user.

tags (required): KeyValuePair<string, object>[]
An array of key-value pairs representing metadata for the activity.

propagationContext (required): PropagationContext
The context used for distributed tracing propagation.


ActivityStartOptions(user, userId, tags, propagationContext)​

Initializes a new instance of the ActivityStartOptions class with specified user information.

Parameters:​

user (required): string
The name of the user.

userId (required): string
The identifier of the user.


ActivityStartOptions(propagationContext)​

Initializes a new instance of the ActivityStartOptions class with a specified propagation context.

Parameters:​

propagationContext (required): PropagationContext
The context used for distributed tracing propagation.


ActivityStartOptions()​

Initializes a new instance of the ActivityStartOptions class with default values.


ActivityStartOptions(tags)​

Initializes a new instance of the ActivityStartOptions class with specified tags.

Parameters:​

tags (required): KeyValuePair<string, object>[]
An array of key-value pairs representing metadata for the activity.


ActivityStartOptions(traceLevel, tags)​

Initializes a new instance of the ActivityStartOptions class with a specified trace level and tags.

Parameters:​

traceLevel (required): LogSeverity
The trace severity level.

tags (required): KeyValuePair<string, object>[]
An array of key-value pairs representing metadata for the activity.


ActivityStartOptions(user, userId, traceLevel, tags, propagationContext)​

Initializes a new instance of the ActivityStartOptions class with specified user details, trace level, tags, and propagation context.

Parameters:​

user (required): string
The name of the user.

userId (required): string
The identifier of the user.

traceLevel (required): string
The trace severity level.

tags (required): KeyValuePair<string, object>[]
An array of key-value pairs representing metadata for the activity.

propagationContext (required): PropagationContext
The context used for distributed tracing propagation.


ActivityStartOptions(traceLevel)​

Initializes a new instance of the ActivityStartOptions class with a specified trace level

Parameters:​

traceLevel (required): LogSeverity
The trace severity level.