Skip to content

Commit c8cec29

Browse files
comments
1 parent e3df7e7 commit c8cec29

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging

instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@
102102
103103
.. envvar:: OTEL_PYTHON_LOG_HANDLER_LEVEL
104104
105-
Set this env var to configure the log level of the ``LoggingHandler`` installed by this instrumentation.
105+
Set this env var to filter which log records are exported by OpenTelemetry``LoggingHandler`` instrumentation.
106106
Accepts case-insensitive level names: ``notset``, ``debug``, ``info``, ``warning``, ``error``.
107-
Unrecognized values fall back to ``notset``.
107+
Only records at or above this level will be exported.
108+
For example, setting this to warning means DEBUG and INFO logs are still handled by your normal logging setup,
109+
but they are not exported as OTel logs. Unrecognized values fall back to ``notset``.
108110
109111
Alternatively, the level can be set via the ``log_handler_level`` argument:
110112

0 commit comments

Comments
 (0)