SdkContextKeys

org.typelevel.otel4s.sdk.trace.SdkContextKeys

The keys that can be used by a third-party integrations.

Attributes

Source
SdkContextKeys.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

The Baggage is stored under this key in the Context.

The Baggage is stored under this key in the Context.

To retrieve the baggage use:

val context: Context = ???
val baggage: Option[Baggage] = context.get(SdkContextKeys.BaggageKey)

Attributes

Source
SdkContextKeys.scala

The SpanContext is stored under this key in the Context.

The SpanContext is stored under this key in the Context.

To retrieve the context use:

val context: Context = ???
val spanContext: Option[SpanContext] = context.get(SdkContextKeys.SpanContextKey)

Attributes

Source
SdkContextKeys.scala