ActivityContext 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.
A representation that conforms to the W3C TraceContext specification. It contains two identifiers: a TraceId and a SpanId, along with a set of common TraceFlags and system-specific TraceState values.
public value class ActivityContext : IEquatable<System::Diagnostics::ActivityContext>
public readonly struct ActivityContext : IEquatable<System.Diagnostics.ActivityContext>
type ActivityContext = struct
Public Structure ActivityContext
Implements IEquatable(Of ActivityContext)
- Inheritance
- Implements
Remarks
ActivityContext contains the property IsRemote
, which is not part of W3C. IsRemote
is indicating if the context is propagated from a remote parent.
Constructors
ActivityContext(ActivityTraceId, ActivitySpanId, ActivityTraceFlags, String, Boolean) |
Construct a new activity context instance using the specified arguments. |
Properties
IsRemote |
Indicates if the activity context was propagated from a remote parent. |
SpanId |
The Id of the request as known by the caller. |
TraceFlags |
The flags defined by the W3C standard along with the ID for the activity. |
TraceId |
The trace identifier. |
TraceState |
Holds the W3C 'tracestate' header. |
Methods
Equals(ActivityContext) |
Indicates whether the current object is equal to another object of the same type. |
Equals(Object) |
Determines whether this instance and a specified |
GetHashCode() |
Provides a hash function for the current |
Parse(String, String) |
Parses a W3C trace context headers to an ActivityContext object. |
TryParse(String, String, ActivityContext) |
Tries to parse the W3C trace context headers to an ActivityContext object. |
TryParse(String, String, Boolean, ActivityContext) |
Tries to parse the W3C trace context headers to the ActivityContext object. |
Operators
Equality(ActivityContext, ActivityContext) |
Determines whether two specified |
Inequality(ActivityContext, ActivityContext) |
Determines whether two specified |