Activity
Represents an operation with context to be used for logging.
Gets or sets the current operation ( Activity) for the current thread. This flows across async calls.
Gets or sets the default ID format for the Activity.
Gets or sets a valud that detrmines if the DefaultIdFormat is always used to define the default ID format.
Gets the flags (defined by the W3C ID specification) associated with the activity.
Gets a collection of key/value pairs that represents information that is passed to children of this Activity.
Gets the context of the activity. Context becomes valid only if the activity has been started.
Gets or sets the display name of the activity.
Gets the duration of the operation.
Gets the list of all the activity events attached to this activity.
Gets an identifier that is specific to a particular request.
Gets the format for the Id.
Indicates if the this activity should be populated with all the propagation information, as well as all the other properties such as links, tags and events.
Gets the relationship between the activity, its parents, and its children in a trace.
Gets the list of all the activity links attached to this activity.
Gets the operation name.
Gets the parent Activity that created this activity.
Gets the ID of this activity's parent.
Gets the parent's SpanId.
Gets a value that indicates whether the W3CIdFlags.Recorded flag is set.
Gets the root ID of this Activity.
Get the activity source associated with this activity.
Gets the SPAN part of the Id.
Gets the time when the operation started.
Returns the list of tags representing information to log along with the activity. This information is not passed on to the children of this activity.
Gets a collection of key/value pairs that represent information that will be logged along with the Activity to the logging system.
Gets the TraceId part of the Id.
Gets the W3C tracestate header.
Initializes a new instance of the Activity class.
Updates the Activity to have a new baggage item with the specified key and value.
Adds the specified activity event to the events list.
Updates the activity to have a tag with an additional key and value.
Stops the activity if it is already started and notifies any event listeners. Nothing will happen otherwise.
When overriden by a derived type, this method releases any allocated resources.
Returns the value of a key-value pair added to the activity with AddBaggage.
Returns the object mapped to the specified property name.
Attaches any custom object to this activity. If the specified propertyName was previously associated with another object, the property will be updated to be associated with the new propertyValue instead. It is recommended to use a unique property name to avoid conflicts with anyone using the same value.
Updates the Activity to set its Duration as the difference between StartTimeUtc and the specified stop time.
Sets the ID format on this Activity before it is started.
public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags = 0)
Sets the parent ID using the W3C convention of a TraceId and a SpanId.
Sets the start time of this Activity.
Adds or update the activity tag with the input key and value.
Starts the activity.
Stops the activity.