Interface BaggageInScope

All Superinterfaces:
AutoCloseable, BaggageView, Closeable

public interface BaggageInScope extends BaggageView, Closeable
Inspired by OpenZipkin Brave's BaggageField. Since some tracer implementations require a scope to be wrapped around baggage, baggage must be closed so that the scope does not leak. Some tracer implementations make baggage immutable (e.g. OpenTelemetry), so when the value gets updated they might create new scope (others will return the same one - e.g. OpenZipkin Brave).

Represents a single baggage entry.

Since:
1.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BaggageInScope
    A noop implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from interface io.micrometer.tracing.BaggageView

    get, get, name