Class Sw8Propagator

java.lang.Object
codes.grow.packages.skywalking.Sw8Propagator
All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapPropagator

public final class Sw8Propagator extends Object implements io.opentelemetry.context.propagation.TextMapPropagator
OpenTelemetry propagator for SkyWalking headers (propagator name sw8).

For full native cross-process traces use the official SkyWalking Java agent.

  • Constructor Details

    • Sw8Propagator

      public Sw8Propagator()
  • Method Details

    • getInstance

      public static Sw8Propagator getInstance()
      The shared instance.
      Returns:
      the propagator
    • fields

      public Collection<String> fields()
      Specified by:
      fields in interface io.opentelemetry.context.propagation.TextMapPropagator
    • inject

      public <C> void inject(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapSetter<C> setter)
      Specified by:
      inject in interface io.opentelemetry.context.propagation.TextMapPropagator
    • extract

      public <C> io.opentelemetry.context.Context extract(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapGetter<C> getter)
      Specified by:
      extract in interface io.opentelemetry.context.propagation.TextMapPropagator
    • toString

      public String toString()
      Overrides:
      toString in class Object