File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code
opentelemetry-distro/src/opentelemetry/distro Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ OTEL_SERVICE_NAME=opentelemetry-python-openai
1515# Change to 'false' to disable logging
1616OTEL_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
1819OTEL_LOGS_EXPORTER = otlp
1920# Change to 'false' to hide prompt and completion content
2021OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT = true
Original file line number Diff line number Diff line change 1717from opentelemetry .environment_variables import (
1818 OTEL_METRICS_EXPORTER ,
1919 OTEL_TRACES_EXPORTER ,
20- OTEL_LOGS_EXPORTER
2120)
2221from opentelemetry .instrumentation .distro import BaseDistro
2322from 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" )
You can’t perform that action at this time.
0 commit comments