From 4be540a7bdb7dda404f539308877ac1f33b9ee71 Mon Sep 17 00:00:00 2001 From: Mateusz Rzeszutek Date: Mon, 14 Jun 2021 19:22:45 +0200 Subject: [PATCH] Deprecate SpanExporterFactory in favor of ConfigurableSpanExporterProvider --- .../javaagent/spi/exporter/SpanExporterFactory.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/spi/exporter/SpanExporterFactory.java b/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/spi/exporter/SpanExporterFactory.java index febc78a7a8a9..e888ef1ebedb 100644 --- a/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/spi/exporter/SpanExporterFactory.java +++ b/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/spi/exporter/SpanExporterFactory.java @@ -13,7 +13,11 @@ * A {@link SpanExporterFactory} acts as the bootstrap for a {@link SpanExporter} implementation. An * exporter must register its implementation of a {@link SpanExporterFactory} through the Java SPI * framework. + * + * @deprecated Use {@code io.opentelemetry.sdk.autoconfigure.spi.ConfigurableSpanExporterProvider} + * from the {@code opentelemetry-sdk-extension-autoconfigure} instead. */ +@Deprecated public interface SpanExporterFactory { /** * Creates an instance of a {@link SpanExporter} based on the provided configuration.