Skip to content

Commit 5bf8d8c

Browse files
authored
Merge branch 'main' into spanstartmetrics
2 parents c8ecda8 + 550fc09 commit 5bf8d8c

6 files changed

Lines changed: 6 additions & 75 deletions

File tree

  • docs
  • exporter
    • opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc
    • opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http
  • opentelemetry-sdk/src/opentelemetry/sdk/environment_variables

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
## Unreleased
1414

15+
- `opentelemetry-sdk`: Drop unused Jaeger exporter environment variables (exporter removed in 1.22.0)
16+
([#4918](https://github.com/open-telemetry/opentelemetry-python/issues/4918))
1517
- `opentelemetry-sdk`: Clarify timeout units in environment variable documentation
1618
([#4906](https://github.com/open-telemetry/opentelemetry-python/pull/4906))
1719
- `opentelemetry-exporter-otlp-proto-grpc`: Fix re-initialization of gRPC channel on UNAVAILABLE error

docs/examples/opencensus-shim/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Set up OpenTelemetry
3333
tracer_provider = TracerProvider(
34-
resource=Resource(
34+
resource=Resource.create(
3535
{
3636
"service.name": "opencensus-shim-example-flask",
3737
}

docs/exporter/prometheus/prometheus.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Prometheus text format on request::
2727
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
2828

2929
# Service name is required for most backends
30-
resource = Resource(attributes={
30+
resource = Resource.create(attributes={
3131
SERVICE_NAME: "your-service-name"
3232
})
3333

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
5151
# Resource can be required for some backends, e.g. Jaeger
5252
# If resource wouldn't be set - traces wouldn't appears in Jaeger
53-
resource = Resource(attributes={
53+
resource = Resource.create({
5454
"service.name": "service"
5555
})
5656

exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
5151
# Resource can be required for some backends, e.g. Jaeger
5252
# If resource wouldn't be set - traces wouldn't appears in Jaeger
53-
resource = Resource(attributes={
53+
resource = Resource.create({
5454
"service.name": "service"
5555
})
5656

opentelemetry-sdk/src/opentelemetry/sdk/environment_variables/__init__.py

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -205,52 +205,6 @@
205205
Default: 128
206206
"""
207207

208-
OTEL_EXPORTER_JAEGER_AGENT_HOST = "OTEL_EXPORTER_JAEGER_AGENT_HOST"
209-
"""
210-
.. envvar:: OTEL_EXPORTER_JAEGER_AGENT_HOST
211-
212-
The :envvar:`OTEL_EXPORTER_JAEGER_AGENT_HOST` represents the hostname for the Jaeger agent.
213-
Default: "localhost"
214-
"""
215-
216-
OTEL_EXPORTER_JAEGER_AGENT_PORT = "OTEL_EXPORTER_JAEGER_AGENT_PORT"
217-
"""
218-
.. envvar:: OTEL_EXPORTER_JAEGER_AGENT_PORT
219-
220-
The :envvar:`OTEL_EXPORTER_JAEGER_AGENT_PORT` represents the port for the Jaeger agent.
221-
Default: 6831
222-
"""
223-
224-
OTEL_EXPORTER_JAEGER_ENDPOINT = "OTEL_EXPORTER_JAEGER_ENDPOINT"
225-
"""
226-
.. envvar:: OTEL_EXPORTER_JAEGER_ENDPOINT
227-
228-
The :envvar:`OTEL_EXPORTER_JAEGER_ENDPOINT` represents the HTTP endpoint for Jaeger traces.
229-
Default: "http://localhost:14250"
230-
"""
231-
232-
OTEL_EXPORTER_JAEGER_USER = "OTEL_EXPORTER_JAEGER_USER"
233-
"""
234-
.. envvar:: OTEL_EXPORTER_JAEGER_USER
235-
236-
The :envvar:`OTEL_EXPORTER_JAEGER_USER` represents the username to be used for HTTP basic authentication.
237-
"""
238-
239-
OTEL_EXPORTER_JAEGER_PASSWORD = "OTEL_EXPORTER_JAEGER_PASSWORD"
240-
"""
241-
.. envvar:: OTEL_EXPORTER_JAEGER_PASSWORD
242-
243-
The :envvar:`OTEL_EXPORTER_JAEGER_PASSWORD` represents the password to be used for HTTP basic authentication.
244-
"""
245-
246-
OTEL_EXPORTER_JAEGER_TIMEOUT = "OTEL_EXPORTER_JAEGER_TIMEOUT"
247-
"""
248-
.. envvar:: OTEL_EXPORTER_JAEGER_TIMEOUT
249-
250-
Maximum time (in seconds) the Jaeger exporter will wait for each batch export.
251-
Default: 10
252-
"""
253-
254208
OTEL_EXPORTER_ZIPKIN_ENDPOINT = "OTEL_EXPORTER_ZIPKIN_ENDPOINT"
255209
"""
256210
.. envvar:: OTEL_EXPORTER_ZIPKIN_ENDPOINT
@@ -731,24 +685,6 @@ def channel_credential_provider() -> grpc.ChannelCredentials:
731685
Default: 10
732686
"""
733687

734-
OTEL_EXPORTER_JAEGER_CERTIFICATE = "OTEL_EXPORTER_JAEGER_CERTIFICATE"
735-
"""
736-
.. envvar:: OTEL_EXPORTER_JAEGER_CERTIFICATE
737-
738-
The :envvar:`OTEL_EXPORTER_JAEGER_CERTIFICATE` stores the path to the certificate file for
739-
TLS credentials of gRPC client for Jaeger. Should only be used for a secure connection with Jaeger.
740-
"""
741-
742-
OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES = (
743-
"OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES"
744-
)
745-
"""
746-
.. envvar:: OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES
747-
748-
The :envvar:`OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES` is a boolean flag to determine whether
749-
to split a large span batch to admire the udp packet size limit.
750-
"""
751-
752688
OTEL_SERVICE_NAME = "OTEL_SERVICE_NAME"
753689
"""
754690
.. envvar:: OTEL_SERVICE_NAME
@@ -798,13 +734,6 @@ def channel_credential_provider() -> grpc.ChannelCredentials:
798734
Use ``CUMULATIVE`` aggregation temporality for ``UpDownCounter``, ``AsynchronousCounter`` and ``Asynchronous UpDownCounter``.
799735
"""
800736

801-
OTEL_EXPORTER_JAEGER_GRPC_INSECURE = "OTEL_EXPORTER_JAEGER_GRPC_INSECURE"
802-
"""
803-
.. envvar:: OTEL_EXPORTER_JAEGER_GRPC_INSECURE
804-
805-
The :envvar:`OTEL_EXPORTER_JAEGER_GRPC_INSECURE` is a boolean flag to True if collector has no encryption or authentication.
806-
"""
807-
808737
OTEL_METRIC_EXPORT_INTERVAL = "OTEL_METRIC_EXPORT_INTERVAL"
809738
"""
810739
.. envvar:: OTEL_METRIC_EXPORT_INTERVAL

0 commit comments

Comments
 (0)