Struct PropagationContext
- Namespace
- OpenTelemetry.Context.Propagation
- Assembly
- OpenTelemetry.Api.dll
Stores propagation data.
public readonly struct PropagationContext : IEquatable<PropagationContext>
- Implements
- Inherited Members
Constructors
PropagationContext(ActivityContext, Baggage)
Initializes a new instance of the PropagationContext struct.
public PropagationContext(ActivityContext activityContext, Baggage baggage)
Parameters
Properties
ActivityContext
Gets System.Diagnostics.ActivityContext.
public ActivityContext ActivityContext { get; }
Property Value
- ActivityContext
Baggage
Gets Baggage.
public Baggage Baggage { get; }
Property Value
Methods
Equals(PropagationContext)
public bool Equals(PropagationContext value)
Parameters
value
PropagationContext
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(PropagationContext, PropagationContext)
Compare two entries of PropagationContext for equality.
public static bool operator ==(PropagationContext left, PropagationContext right)
Parameters
left
PropagationContextFirst Entry to compare.
right
PropagationContextSecond Entry to compare.
Returns
operator !=(PropagationContext, PropagationContext)
Compare two entries of PropagationContext for not equality.
public static bool operator !=(PropagationContext left, PropagationContext right)
Parameters
left
PropagationContextFirst Entry to compare.
right
PropagationContextSecond Entry to compare.