Remove unnecessary configuration of logs exporter in Gen AI samples (#3141)
It is no longer necessary since we now set up the logging pipeline by default with OTLP exporter.
This commit is contained in:
parent
b03bf0037f
commit
5fd648eac4
|
|
@ -12,10 +12,11 @@ OPENAI_API_KEY=sk-YOUR_API_KEY
|
||||||
|
|
||||||
OTEL_SERVICE_NAME=opentelemetry-python-openai
|
OTEL_SERVICE_NAME=opentelemetry-python-openai
|
||||||
|
|
||||||
# Change to 'false' to disable logging
|
# Change to 'false' to disable collection of python logging logs
|
||||||
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
|
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
|
||||||
# Change to 'console' if your OTLP endpoint doesn't support logs
|
|
||||||
# TODO: this should not be necessary once https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3042 is released
|
# Uncomment if your OTLP endpoint doesn't support logs
|
||||||
OTEL_LOGS_EXPORTER=otlp
|
# OTEL_LOGS_EXPORTER=console
|
||||||
|
|
||||||
# Change to 'false' to hide prompt and completion content
|
# Change to 'false' to hide prompt and completion content
|
||||||
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
|
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,11 @@
|
||||||
|
|
||||||
OTEL_SERVICE_NAME=opentelemetry-python-vertexai
|
OTEL_SERVICE_NAME=opentelemetry-python-vertexai
|
||||||
|
|
||||||
# Change to 'false' to disable logging
|
# Change to 'false' to disable collection of python logging logs
|
||||||
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
|
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
|
||||||
# Change to 'console' if your OTLP endpoint doesn't support logs
|
|
||||||
# TODO: this should not be necessary once https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3042 is released
|
# Uncomment if your OTLP endpoint doesn't support logs
|
||||||
OTEL_LOGS_EXPORTER=otlp
|
# OTEL_LOGS_EXPORTER=console
|
||||||
|
|
||||||
# Change to 'false' to hide prompt and completion content
|
# Change to 'false' to hide prompt and completion content
|
||||||
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
|
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue