You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configure.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,15 @@ EDOT Python supports all configuration options listed in the [OpenTelemetry Gene
36
36
37
37
#### Logs
38
38
39
-
Exporting logs from the Python `logging` module is disabled by default and gated under a configuration environment variable:
39
+
Instrument Python `logging` module to format and forward logs in OTLP format is disabled by default and gated under a configuration environment variable:
> Enabling this will make any call to [logging.basicConfig](https://docs.python.org/3/library/logging.html#logging.basicConfig) from your application a no-op.
47
+
45
48
#### Differences from OpenTelemetry Python
46
49
47
50
EDOT Python uses different defaults than OpenTelemetry Python for the following configuration options:
Copy file name to clipboardExpand all lines: docs/troubleshooting.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,3 +44,13 @@ To disable the underlying OpenTelemetry SDK you set the following environment va
44
44
45
45
If only a subset of instrumentation are causing disruptions you can disable them with the `OTEL_PYTHON_DISABLED_INSTRUMENTATIONS`
46
46
environment variable. It accepts a list of comma separated instrumentations to disable, see [OpenTelemetry zero code documentation](https://opentelemetry.io/docs/zero-code/python/configuration/#disabling-specific-instrumentations)
47
+
48
+
## Missing logs
49
+
50
+
Enabling the Python logging module auto-instrumentation with `OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true` calls the
51
+
[logging.basicConfig](https://docs.python.org/3/library/logging.html#logging.basicConfig) method that will make your own application calls
52
+
to it a no-op. The side effect of this is that you won't see your application logs in the console anymore.
53
+
54
+
If you are already shipping logs by other means you don't need to enable this.
55
+
56
+
<!-- TODO: when available add link to to propose other option https://elastic.github.io/opentelemetry/use-cases/logs/ -->
0 commit comments