ActivityContext Struct
Definition
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 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. |
Operators
Equality(ActivityContext, ActivityContext) |
Determines whether two specified |
Inequality(ActivityContext, ActivityContext) |
Determines whether two specified |