mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 12:43:39 +08:00
Use OTLP log exporter by default in otel-distro (#3042)
* Use OTLP log exporter by default in otel-distro * changelog * sort imports
This commit is contained in:
@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Added
|
||||
|
||||
- `opentelemetry-distro` default to OTLP log exporter.
|
||||
([#3042](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3042))
|
||||
- `opentelemetry-instrumentation-sqlalchemy` Update unit tests to run with SQLALchemy 2
|
||||
([#2976](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2976))
|
||||
- Add `opentelemetry-instrumentation-openai-v2` to `opentelemetry-bootstrap`
|
||||
|
@ -15,6 +15,7 @@
|
||||
import os
|
||||
|
||||
from opentelemetry.environment_variables import (
|
||||
OTEL_LOGS_EXPORTER,
|
||||
OTEL_METRICS_EXPORTER,
|
||||
OTEL_TRACES_EXPORTER,
|
||||
)
|
||||
@ -37,4 +38,5 @@ class OpenTelemetryDistro(BaseDistro):
|
||||
def _configure(self, **kwargs):
|
||||
os.environ.setdefault(OTEL_TRACES_EXPORTER, "otlp")
|
||||
os.environ.setdefault(OTEL_METRICS_EXPORTER, "otlp")
|
||||
os.environ.setdefault(OTEL_LOGS_EXPORTER, "otlp")
|
||||
os.environ.setdefault(OTEL_EXPORTER_OTLP_PROTOCOL, "grpc")
|
||||
|
Reference in New Issue
Block a user