Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    SpanEnvelope
    SpanEnvelope<TMsg>
    Implements
    IWithTrace
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Phobos.Tracing
    Assembly: Phobos.Tracing.dll
    Syntax
    public class SpanEnvelope : IWithTrace

    Constructors

    SpanEnvelope(Object, SpanContext, Baggage, Boolean, Nullable<Int64>)

    Declaration
    public SpanEnvelope(object msg, SpanContext previousSpan, Baggage baggage = default(Baggage), bool followFromActiveSpan = false, long? startTimestamp = null)
    Parameters
    Type Name Description
    System.Object msg
    OpenTelemetry.Trace.SpanContext previousSpan
    OpenTelemetry.Baggage baggage
    System.Boolean followFromActiveSpan
    System.Nullable<System.Int64> 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
    OpenTelemetry.Trace.SpanContext

    Baggage

    Declaration
    public Baggage Baggage { get; }
    Property Value
    Type Description
    OpenTelemetry.Baggage

    FollowFromActiveSpan

    Shows if new span should be following active span, once created

    Declaration
    public bool FollowFromActiveSpan { get; }
    Property Value
    Type Description
    System.Boolean

    Message

    The underlying message, to be included with this payload.

    Declaration
    public object Message { get; }
    Property Value
    Type Description
    System.Object

    StartTimestamp

    Marks the begging of the operation - used to track the total processing latency

    Declaration
    public long StartTimestamp { get; }
    Property Value
    Type Description
    System.Int64

    Implements

    IWithTrace
    In This Article
    Back to top Generated by DocFX