Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ActivityContext Struct
Definition
- Namespace:
- System.Diagnostics
- Assembly:
- System.Diagnostics.DiagnosticSource.dll
- Package:
- System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115
- Source:
- ActivityContext.cs
- Source:
- ActivityContext.cs
- Source:
- ActivityContext.cs
- Source:
- ActivityContext.cs
- Source:
- ActivityContext.cs
- Source:
- ActivityContext.cs
- Source:
- ActivityContext.cs
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
| Name | Description |
|---|---|
| ActivityContext(ActivityTraceId, ActivitySpanId, ActivityTraceFlags, String, Boolean) |
Construct a new activity context instance using the specified arguments. |
Properties
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Equality(ActivityContext, ActivityContext) |
Determines whether two specified |
| Inequality(ActivityContext, ActivityContext) |
Determines whether two specified |
Applies to
Feedback
Was this page helpful?
