Table of Contents

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

activityContext ActivityContext

System.Diagnostics.ActivityContext.

baggage Baggage

Baggage.

Properties

ActivityContext

Gets System.Diagnostics.ActivityContext.

public ActivityContext ActivityContext { get; }

Property Value

ActivityContext

Baggage

Gets Baggage.

public Baggage Baggage { get; }

Property Value

Baggage

Methods

Equals(PropagationContext)

public bool Equals(PropagationContext value)

Parameters

value PropagationContext

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(PropagationContext, PropagationContext)

Compare two entries of PropagationContext for equality.

public static bool operator ==(PropagationContext left, PropagationContext right)

Parameters

left PropagationContext

First Entry to compare.

right PropagationContext

Second Entry to compare.

Returns

bool

operator !=(PropagationContext, PropagationContext)

Compare two entries of PropagationContext for not equality.

public static bool operator !=(PropagationContext left, PropagationContext right)

Parameters

left PropagationContext

First Entry to compare.

right PropagationContext

Second Entry to compare.

Returns

bool