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

io.opentelemetry.extension.trace.propagation.OtTraceConfigurablePropagator 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.extension.trace.propagation;

import io.opentelemetry.context.propagation.TextMapPropagator;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigurablePropagatorProvider;

/**
 * A {@link ConfigurablePropagatorProvider} which allows enabling the {@link OtTracePropagator} with
 * the propagator name {@code ottrace}.
 */
public final class OtTraceConfigurablePropagator implements ConfigurablePropagatorProvider {
  @Override
  public TextMapPropagator getPropagator(ConfigProperties config) {
    return OtTracePropagator.getInstance();
  }

  @Override
  public String getName() {
    return "ottrace";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy