Upraviť

Zdieľať cez


ActivityCreationOptions<T> Struct

Definition

Encapsulates all the information that is sent to the activity listener, to make decisions about the creation of the activity instance, as well as its state.

The possible generic type parameters are ActivityContext or String.

generic <typename T>
public value class ActivityCreationOptions
public readonly struct ActivityCreationOptions<T>
type ActivityCreationOptions<'T> = struct
Public Structure ActivityCreationOptions(Of T)

Type Parameters

T

The type of the Parent property. Should be either String or ActivityContext.

Inheritance
ActivityCreationOptions<T>

Properties

Kind

Gets the activity kind which the activity will be created with.

Links

Gets the enumeration of activity links that the activity will be created with.

Name

Gets the name to use as OperationName of the activity that will get created.

Parent

Gets the parent context or parent Id that the activity will get created with.

SamplingTags

Gets the collection that is used to add more tags during the sampling process. The added tags are also added to the created Activity if it is decided that it should be created by the ActivityListener callbacks.

Source

Gets the activity source that creates the activity.

Tags

Gets the tags that the activity will be created with.

TraceId

Gets the trace Id to use in the Activity object if it is decided that it should be created by ActivityListener callbacks.

TraceState

Gets or initializes the trace state to use when creating the Activity.

Applies to