File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
opentelemetry-instrumentation-openai-v2/examples/zero-code
opentelemetry-instrumentation-vertexai/examples/zero-code Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ OPENAI_API_KEY=sk-YOUR_API_KEY
12
12
13
13
OTEL_SERVICE_NAME = opentelemetry-python-openai
14
14
15
- # Change to 'false' to disable logging
15
+ # Change to 'false' to disable collection of python logging logs
16
16
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED = true
17
- # 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
19
- OTEL_LOGS_EXPORTER = otlp
17
+
18
+ # Uncomment if your OTLP endpoint doesn't support logs
19
+ # OTEL_LOGS_EXPORTER=console
20
+
20
21
# Change to 'false' to hide prompt and completion content
21
22
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT = true
Original file line number Diff line number Diff line change 4
4
5
5
OTEL_SERVICE_NAME = opentelemetry-python-vertexai
6
6
7
- # Change to 'false' to disable logging
7
+ # Change to 'false' to disable collection of python logging logs
8
8
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED = true
9
- # Change to 'console' if your OTLP endpoint doesn't support logs
10
- # TODO: this should not be necessary once https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3042 is released
11
- OTEL_LOGS_EXPORTER = otlp
9
+
10
+ # Uncomment if your OTLP endpoint doesn't support logs
11
+ # OTEL_LOGS_EXPORTER=console
12
+
12
13
# Change to 'false' to hide prompt and completion content
13
14
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT = true
You can’t perform that action at this time.
0 commit comments