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

io.opentelemetry.contrib.awsxray.propagator.internal.AwsXrayComponentProvider Maven / Gradle / Ivy

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.contrib.awsxray.propagator.internal;

import io.opentelemetry.context.propagation.TextMapPropagator;
import io.opentelemetry.contrib.awsxray.propagator.AwsXrayPropagator;
import io.opentelemetry.sdk.autoconfigure.spi.internal.ComponentProvider;
import io.opentelemetry.sdk.autoconfigure.spi.internal.StructuredConfigProperties;

public class AwsXrayComponentProvider implements ComponentProvider {
  @Override
  public Class getType() {
    return TextMapPropagator.class;
  }

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

  @Override
  public TextMapPropagator create(StructuredConfigProperties config) {
    return AwsXrayPropagator.getInstance();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy