From 5fd648eac49350f4522df36c940b2d8f50c691c3 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Mon, 23 Dec 2024 14:29:50 -0500 Subject: [PATCH] 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. --- .../examples/zero-code/.env | 9 +++++---- .../examples/zero-code/.env | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/.env b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/.env index 7dfa745e3b..8f2dd62b91 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/.env +++ b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/.env @@ -12,10 +12,11 @@ OPENAI_API_KEY=sk-YOUR_API_KEY 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 -# 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 -OTEL_LOGS_EXPORTER=otlp + +# Uncomment if your OTLP endpoint doesn't support logs +# OTEL_LOGS_EXPORTER=console + # Change to 'false' to hide prompt and completion content OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true diff --git a/instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/zero-code/.env b/instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/zero-code/.env index 8874bc5e29..eefbd59500 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/zero-code/.env +++ b/instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/zero-code/.env @@ -4,10 +4,11 @@ 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 -# 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 -OTEL_LOGS_EXPORTER=otlp + +# Uncomment if your OTLP endpoint doesn't support logs +# OTEL_LOGS_EXPORTER=console + # Change to 'false' to hide prompt and completion content OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true