Skip to content

Commit 1737ee6

Browse files
author
Liudmila Molkova
authored
Use OTLP log exporter by default in otel-distro (#3042)
* Use OTLP log exporter by default in otel-distro * changelog * sort imports
1 parent 5c5fc73 commit 1737ee6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

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

1414
### Added
1515

16+
- `opentelemetry-distro` default to OTLP log exporter.
17+
([#3042](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3042))
1618
- `opentelemetry-instrumentation-sqlalchemy` Update unit tests to run with SQLALchemy 2
1719
([#2976](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2976))
1820
- Add `opentelemetry-instrumentation-openai-v2` to `opentelemetry-bootstrap`

opentelemetry-distro/src/opentelemetry/distro/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import os
1616

1717
from opentelemetry.environment_variables import (
18+
OTEL_LOGS_EXPORTER,
1819
OTEL_METRICS_EXPORTER,
1920
OTEL_TRACES_EXPORTER,
2021
)
@@ -37,4 +38,5 @@ class OpenTelemetryDistro(BaseDistro):
3738
def _configure(self, **kwargs):
3839
os.environ.setdefault(OTEL_TRACES_EXPORTER, "otlp")
3940
os.environ.setdefault(OTEL_METRICS_EXPORTER, "otlp")
41+
os.environ.setdefault(OTEL_LOGS_EXPORTER, "otlp")
4042
os.environ.setdefault(OTEL_EXPORTER_OTLP_PROTOCOL, "grpc")

0 commit comments

Comments
 (0)