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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기