Class NoOpPropagator

Inheritance Relationships

Base Type

  • public opentelemetry::context::propagation::TextMapPropagator

Class Documentation

class opentelemetry::context::propagation::NoOpPropagator : public opentelemetry::context::propagation::TextMapPropagator

No-op implementation TextMapPropagator

Public Functions

inline context::Context Extract(const TextMapCarrier&, context::Context &context) noexcept override

Noop extract function does nothing and returns the input context

inline void Inject(TextMapCarrier&, const context::Context &context) noexcept override

Noop inject function does nothing

inline bool Fields(nostd::function_ref<bool(nostd::string_view)> callback) const noexcept override