All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.telemetry.opentelemetry.baggage.propagation.BaggagePropagator.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0-RC26
Show newest version
package zio.telemetry.opentelemetry.baggage.propagation

import io.opentelemetry.api.baggage.propagation.W3CBaggagePropagator
import io.opentelemetry.context.propagation.TextMapPropagator
import zio.telemetry.opentelemetry.internal.Propagator

trait BaggagePropagator extends Propagator

object BaggagePropagator {

  /**
   * Instance of W3C Baggage Propagator.
   *
   * @see
   *   Propagation format for distributed context: Baggage
   */
  val default: BaggagePropagator =
    new BaggagePropagator {
      override val instance: TextMapPropagator =
        W3CBaggagePropagator.getInstance()
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy