diff --git a/CHANGELOG.md b/CHANGELOG.md index 13e047c366a..f562971aeb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#3151](https://github.com/open-telemetry/opentelemetry-python/pull/3151)) - Bump min required api version for OTLP exporters ([#3156](https://github.com/open-telemetry/opentelemetry-python/pull/3156)) +- deprecate jaeger exporters + ([#3158](https://github.com/open-telemetry/opentelemetry-python/pull/3158)) - Create a single resource instance ([#3118](https://github.com/open-telemetry/opentelemetry-python/pull/3118)) diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst b/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst index 471e92085b4..3f170bb12ab 100644 --- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst +++ b/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst @@ -1,6 +1,10 @@ OpenTelemetry Jaeger Protobuf Exporter ====================================== +.. warning:: + Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. + Support for this exporter will end July 2023. + |pypi| .. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-jaeger-proto-grpc.svg diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py index 3f623327aff..f08b20e726c 100644 --- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py +++ b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py @@ -68,6 +68,7 @@ import logging from os import environ from typing import Optional +from deprecated import deprecated from grpc import ChannelCredentials, RpcError, insecure_channel, secure_channel @@ -110,6 +111,10 @@ class JaegerExporter(SpanExporter): timeout: Maximum time the Jaeger exporter should wait for each batch export. """ + @deprecated( + version="1.16.0", + reason="Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. Support for this exporter will end July 2023.", + ) def __init__( self, collector_endpoint: Optional[str] = None, diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/README.rst b/exporter/opentelemetry-exporter-jaeger-thrift/README.rst index ed6bb1d7925..1b01237ce4d 100644 --- a/exporter/opentelemetry-exporter-jaeger-thrift/README.rst +++ b/exporter/opentelemetry-exporter-jaeger-thrift/README.rst @@ -1,6 +1,10 @@ OpenTelemetry Jaeger Thrift Exporter ==================================== +.. warning:: + Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. + Support for this exporter will end July 2023. + |pypi| .. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-jaeger-thrift.svg diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py index a4f8e36bb97..95181ad6173 100644 --- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py +++ b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py @@ -85,6 +85,8 @@ from os import environ from typing import Optional +from deprecated import deprecated + from opentelemetry import trace from opentelemetry.exporter.jaeger.thrift.gen.jaeger import ( Collector as jaeger_thrift, @@ -130,6 +132,10 @@ class JaegerExporter(SpanExporter): timeout: Maximum time the Jaeger exporter should wait for each batch export. """ + @deprecated( + version="1.16.0", + reason="Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. Support for this exporter will end July 2023.", + ) def __init__( self, agent_host_name: Optional[str] = None, diff --git a/exporter/opentelemetry-exporter-jaeger/README.rst b/exporter/opentelemetry-exporter-jaeger/README.rst index 00154142eca..43d0f76d0e4 100644 --- a/exporter/opentelemetry-exporter-jaeger/README.rst +++ b/exporter/opentelemetry-exporter-jaeger/README.rst @@ -1,6 +1,10 @@ OpenTelemetry Jaeger Exporter ============================= +.. warning:: + Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. + Support for this exporter will end July 2023. + |pypi| .. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-jaeger.svg