mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-03 04:10:48 +08:00
Added logging instrumentation to enable log - trace correlation (#345)
This commit adds a new logging instrumentation. The instrumentation patches standard library logging module to inject tracing context variables (otelSpanID, otelTraceID, otelServiceName) into log record objects. It also optionally calls `logging.basicConfig()` and sets a logging format that makes use of these vars if instructed by the user.
This commit is contained in:
7
docs/instrumentation/logging/logging.rst
Normal file
7
docs/instrumentation/logging/logging.rst
Normal file
@ -0,0 +1,7 @@
|
||||
OpenTelemetry Logging Instrumentation
|
||||
=====================================
|
||||
|
||||
.. automodule:: opentelemetry.instrumentation.logging
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
Reference in New Issue
Block a user