Class/Object

com.ccadllc.cedi.dtrace.interop.xb3

XB3HeaderCodec

Related Docs: object XB3HeaderCodec | package xb3

Permalink

class XB3HeaderCodec extends HeaderCodec

Implements the HeaderCodec trait, providing for the encoding and decoding of X-B3-style tracing HTTP headers into and from a SpanId respectively.

Source
XB3HeaderCodec.scala
Linear Supertypes
HeaderCodec, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XB3HeaderCodec
  2. HeaderCodec
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new XB3HeaderCodec()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to any2stringadd[XB3HeaderCodec] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (XB3HeaderCodec, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to ArrowAssoc[XB3HeaderCodec] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def andThen(other: HeaderCodec): HeaderCodec

    Permalink
    Definition Classes
    HeaderCodec
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. def compose(other: HeaderCodec): HeaderCodec

    Permalink
    Definition Classes
    HeaderCodec
  10. def decode(headers: List[Header], properties: Map[String, String]): Either[DecodeFailure, Decoded]

    Permalink

    Decodes a SpanId from XB3/Zipkin-compliant HTTP headers (or single compressed b3 header if present).

    Decodes a SpanId from XB3/Zipkin-compliant HTTP headers (or single compressed b3 header if present). The properties argument is not currently used with this function.

    Definition Classes
    XB3HeaderCodec → HeaderCodec
  11. def decode(headers: List[Header]): Either[DecodeFailure, Decoded]

    Permalink
    Definition Classes
    HeaderCodec
  12. def encode(spanId: SpanId, properties: Map[String, String]): List[Header]

    Permalink

    Encodes X-B3-compliant HTTP headers from the passed-in SpanId.

    Encodes X-B3-compliant HTTP headers from the passed-in SpanId. Note: A single b3 compressed header will be generated combining the traceId, spanId and parentSpanId when this function is called using the form: xb3HeaderCodec.encode(spanId, Map(XB3HeaderCodec.Compressed -> "true")) Note: The X-B3-Sampled Header will be set to "0" if called with the below form (where it might be combined with with Compressed as shown above, in which case the sampled section of the compressed header will be set to "0"). Otherwise the X-B3-Sampled header (or sampled section of compressed header) will be set to "1" xb3HeaderCodec.encode(spanId, Map(XB3HeaderCodec.Sampled -> "false"))

    Definition Classes
    XB3HeaderCodec → HeaderCodec
  13. def encode(spanId: SpanId): List[Header]

    Permalink
    Definition Classes
    HeaderCodec
  14. def ensuring(cond: (XB3HeaderCodec) ⇒ Boolean, msg: ⇒ Any): XB3HeaderCodec

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to Ensuring[XB3HeaderCodec] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (XB3HeaderCodec) ⇒ Boolean): XB3HeaderCodec

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to Ensuring[XB3HeaderCodec] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): XB3HeaderCodec

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to Ensuring[XB3HeaderCodec] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): XB3HeaderCodec

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to Ensuring[XB3HeaderCodec] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to StringFormat[XB3HeaderCodec] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (XB3HeaderCodec, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from XB3HeaderCodec to ArrowAssoc[XB3HeaderCodec] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from HeaderCodec

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from XB3HeaderCodec to any2stringadd[XB3HeaderCodec]

Inherited by implicit conversion StringFormat from XB3HeaderCodec to StringFormat[XB3HeaderCodec]

Inherited by implicit conversion Ensuring from XB3HeaderCodec to Ensuring[XB3HeaderCodec]

Inherited by implicit conversion ArrowAssoc from XB3HeaderCodec to ArrowAssoc[XB3HeaderCodec]

Ungrouped