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

io.opentelemetry.context.propagation.DefaultContextPropagators Maven / Gradle / Ivy

There is a newer version: 1.44.1
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.context.propagation;

/**
 * {@code DefaultContextPropagators} is the default, built-in implementation of {@link
 * ContextPropagators}.
 *
 * 

All the registered propagators are stored internally as a simple list, and are invoked * synchronically upon injection and extraction. * *

The propagation fields retrieved from all registered propagators are de-duplicated. */ final class DefaultContextPropagators implements ContextPropagators { private static final ContextPropagators NOOP = new DefaultContextPropagators(NoopTextMapPropagator.getInstance()); static ContextPropagators noop() { return NOOP; } private final TextMapPropagator textMapPropagator; @Override public TextMapPropagator getTextMapPropagator() { return textMapPropagator; } DefaultContextPropagators(TextMapPropagator textMapPropagator) { this.textMapPropagator = textMapPropagator; } @Override public String toString() { return "DefaultContextPropagators{textMapPropagator=" + textMapPropagator + "}"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy