Class BaggageTaggingSpanProcessor

java.lang.Object
io.micrometer.tracing.otel.bridge.BaggageTaggingSpanProcessor
All Implemented Interfaces:
io.opentelemetry.sdk.trace.SpanProcessor, Closeable, AutoCloseable

public class BaggageTaggingSpanProcessor extends Object implements io.opentelemetry.sdk.trace.SpanProcessor
A SpanProcessor that sets baggage entries on a span.
Since:
1.0.0
  • Constructor Details

    • BaggageTaggingSpanProcessor

      public BaggageTaggingSpanProcessor(List<String> tagsToApply)
      Creates a new instance of BaggageTaggingSpanProcessor.
      Parameters:
      tagsToApply - tags to apply from the baggage on the span
  • Method Details

    • onStart

      public void onStart(io.opentelemetry.context.Context context, io.opentelemetry.sdk.trace.ReadWriteSpan readWriteSpan)
      Specified by:
      onStart in interface io.opentelemetry.sdk.trace.SpanProcessor
    • isStartRequired

      public boolean isStartRequired()
      Specified by:
      isStartRequired in interface io.opentelemetry.sdk.trace.SpanProcessor
    • onEnd

      public void onEnd(io.opentelemetry.sdk.trace.ReadableSpan readableSpan)
      Specified by:
      onEnd in interface io.opentelemetry.sdk.trace.SpanProcessor
    • isEndRequired

      public boolean isEndRequired()
      Specified by:
      isEndRequired in interface io.opentelemetry.sdk.trace.SpanProcessor