Class SpanEnvelope
Envelope class that can be used to pair a message along with the
OpenTelemetry.Trace.TelemetrySpan associated with the upstream action that propagated this message.
Assembly: Phobos.Tracing.dll
Syntax
public sealed class SpanEnvelope : IWithTrace, IWrappedMessage
Constructors
SpanEnvelope(object, in SpanContext, in Baggage, long?)
Declaration
public SpanEnvelope(object msg, in SpanContext previousSpan, in Baggage baggage = default, long? startTimestamp = null)
Parameters
Type |
Name |
Description |
object |
msg |
|
SpanContext |
previousSpan |
|
Baggage |
baggage |
|
long? |
startTimestamp |
|
Properties
ActiveSpan
The OpenTelemetry.Trace.SpanContext created from the previous operation.
Can be completed in the next request, or have a span that flows afterwards,
or a child span. Up to the end-user.
Declaration
public SpanContext ActiveSpan { get; }
Property Value
Type |
Description |
SpanContext |
|
Baggage
Declaration
public Baggage Baggage { get; }
Property Value
Message
Declaration
public object Message { get; }
Property Value
StartTimestamp
Marks the begging of the operation - used to track the total processing latency
Declaration
public long StartTimestamp { get; }
Property Value
Implements