Skip to content

Commit b16159d

Browse files
author
Liudmila Molkova
committed
move distro fix to another PR
1 parent b442f8f commit b16159d

File tree

2 files changed

+1
-2
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code
  • opentelemetry-distro/src/opentelemetry/distro

2 files changed

+1
-2
lines changed

instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ OTEL_SERVICE_NAME=opentelemetry-python-openai
1515
# Change to 'false' to disable logging
1616
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
1717
# Change to 'console' if your OTLP endpoint doesn't support logs
18+
# TODO: this should not be necessary once https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3042 is released
1819
OTEL_LOGS_EXPORTER=otlp
1920
# Change to 'false' to hide prompt and completion content
2021
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from opentelemetry.environment_variables import (
1818
OTEL_METRICS_EXPORTER,
1919
OTEL_TRACES_EXPORTER,
20-
OTEL_LOGS_EXPORTER
2120
)
2221
from opentelemetry.instrumentation.distro import BaseDistro
2322
from opentelemetry.sdk._configuration import _OTelSDKConfigurator
@@ -38,5 +37,4 @@ class OpenTelemetryDistro(BaseDistro):
3837
def _configure(self, **kwargs):
3938
os.environ.setdefault(OTEL_TRACES_EXPORTER, "otlp")
4039
os.environ.setdefault(OTEL_METRICS_EXPORTER, "otlp")
41-
os.environ.setdefault(OTEL_LOGS_EXPORTER, "otlp")
4240
os.environ.setdefault(OTEL_EXPORTER_OTLP_PROTOCOL, "grpc")

0 commit comments

Comments
 (0)