Skip to content

Commit 043def0

Browse files
committed
docs: cite configuration to enabled logs exporting
1 parent fab4e9e commit 043def0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/configure.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ Because the Elastic Distribution of OpenTelemetry Python is an extension of Open
3434

3535
EDOT Python supports all configuration options listed in the [OpenTelemetry General SDK Configuration documentation](https://opentelemetry.io/docs/languages/sdk-configuration/general/) and [OpenTelemetry Python](https://opentelemetry.io/docs/languages/python).
3636

37+
#### Logs
38+
39+
Exporting logs from the Python `logging` module is disabled by default and gated under a configuration environment variable:
40+
41+
```sh
42+
export OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
43+
```
44+
45+
#### Differences from OpenTelemetry Python
46+
3747
EDOT Python uses different defaults than OpenTelemetry Python for the following configuration options:
3848

3949
| Option | EDOT Python default | OpenTelemetry Python default |
4050
|---|---|---|
4151
| `OTEL_EXPERIMENTAL_RESOURCE_DETECTORS` | `process_runtime,os,otel,telemetry_distro` | `otel` |
4252

43-
4453
### Configuration options that are _only_ available in EDOT Python
4554

4655
`ELASTIC_OTEL_` options are specific to Elastic and will always live in EDOT Python (they will _not_ be added upstream):

0 commit comments

Comments
 (0)