AsScalaConverters

org.typelevel.otel4s.java.context.propagation.convert.AsScalaConverters

Defines explicit conversion methods from Java to Scala for TextMapGetters, TextMapPropagators, and ContextPropagators. These methods are available through org.typelevel.otel4s.java.context.propagation.convert.PropagatorConverters.

Attributes

Source
AsScalaConverters.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PropagatorConverters.type

Members list

Value members

Concrete methods

def asScala[A](getter: TextMapGetter[A]): TextMapGetter[A]

Converts a Java TextMapGetter to a Scala TextMapGetter.

Converts a Java TextMapGetter to a Scala TextMapGetter.

The returned Scala TextMapGetter is backed by the provided Java TextMapGetter unless the Java TextMapGetter was previously obtained from an implicit or explicit call of asJava, in which case the original Scala TextMapGetter will be returned.

Attributes

Source
AsScalaConverters.scala
def asScala(propagator: TextMapPropagator): TextMapPropagator[Context]

Converts a Java TextMapPropagator to a Scala TextMapPropagator.

Converts a Java TextMapPropagator to a Scala TextMapPropagator.

The returned Scala TextMapPropagator is backed by the provided Java TextMapPropagator unless the Java TextMapPropagator was previously obtained from an implicit or explicit call of asJava, in which case the original Scala TextMapPropagator will be returned.

Attributes

Source
AsScalaConverters.scala
def asScala(propagators: ContextPropagators): ContextPropagators[Context]

Converts a Java ContextPropagators to a Scala ContextPropagators.

Converts a Java ContextPropagators to a Scala ContextPropagators.

Attributes

Source
AsScalaConverters.scala