mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-27 04:03:09 +08:00

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.
8 lines
188 B
ReStructuredText
8 lines
188 B
ReStructuredText
OpenTelemetry Logging Instrumentation
|
|
=====================================
|
|
|
|
.. automodule:: opentelemetry.instrumentation.logging
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|