Skip to content

Commit 6c1519c

Browse files
committed
disto: disable exemplars by default
Since they are broken with 1.28.0
1 parent 8e43054 commit 6c1519c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/elasticotel/distro/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
)
3131
from opentelemetry.sdk._configuration import _OTelSDKConfigurator
3232
from opentelemetry.sdk.environment_variables import (
33+
OTEL_METRICS_EXEMPLAR_FILTER,
3334
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS,
3435
OTEL_EXPORTER_OTLP_PROTOCOL,
3536
)
@@ -68,3 +69,5 @@ def _configure(self, **kwargs):
6869
os.environ.setdefault(OTEL_LOGS_EXPORTER, "otlp")
6970
os.environ.setdefault(OTEL_EXPORTER_OTLP_PROTOCOL, "grpc")
7071
os.environ.setdefault(OTEL_EXPERIMENTAL_RESOURCE_DETECTORS, "process_runtime,os,otel,telemetry_distro")
72+
# disable exemplars by default for now, they are broken with 1.28.0
73+
os.environ.setdefault(OTEL_METRICS_EXEMPLAR_FILTER, "always_off")

0 commit comments

Comments
 (0)