ActivityCreationOptions<T> Struct
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.
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
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈