Skip to content

Commit e1767a2

Browse files
authored
platforms/kubernetes: update logging documentation for Python SDK bump (#9666)
1 parent be06f91 commit e1767a2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

content/en/docs/platforms/kubernetes/operator/automatic.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,10 @@ in the previous step.
459459
460460
#### Auto-instrumenting Python logs
461461

462-
By default, Python logs auto-instrumentation is disabled. If you would like to
463-
enable this feature, you must to set
464-
`OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED` environment variable as
465-
follows:
462+
By default, Python logs auto-instrumentation is enabled by the
463+
`opentelemetry-instrumentation-logging` package. If you would like to disable
464+
this feature, you must to set `OTEL_PYTHON_LOG_AUTO_INSTRUMENTATION` environment
465+
variable as follows:
466466

467467
```yaml
468468
apiVersion: opentelemetry.io/v1alpha1
@@ -479,12 +479,13 @@ spec:
479479
- baggage
480480
python:
481481
env:
482-
- name: OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
483-
value: 'true'
482+
- name: OTEL_PYTHON_LOG_AUTO_INSTRUMENTATION
483+
value: 'false'
484484
```
485485
486-
> As of operator v0.111.0 setting `OTEL_LOGS_EXPORTER` to `otlp` is not required
487-
> anymore.
486+
> Before operator v0.149.0 this was handled by
487+
> `OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED` that was set to `false` by
488+
> default
488489

489490
#### Excluding auto-instrumentation {#python-excluding-auto-instrumentation}
490491

0 commit comments

Comments
 (0)