6 Commits

Author SHA1 Message Date
0adc58b4bf Introducing ruff as linter and formatter (basic setup) (#2921) 2024-10-23 10:54:14 -07:00
CC
948b47d43c Add NoOpTraceProvider test for opentelemetry-instrumentation-logging (#2649) 2024-07-23 08:54:01 -07:00
890e5dd9b8 Add otelTraceSampled to instrumetation-logging (#1773)
* Add otelTraceSampled to instrumetation-logging

* Updated code with black

* Added to CHANGELOG.md

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-05-03 22:06:25 +05:30
ad15f7bc82 Logging instr hook (#1117) 2022-06-09 14:12:54 +05:30
8d309af49a Logging: Defensively access provider resource (#890)
Now service name is extracted from the provider defensively and lazily.
This accounts for an SDK that does not provide access to "resource" via
TracerProviders and for lazy initialization of TracerProviders.

Fixes #810

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-02-03 12:00:15 -06:00
9ef4410fa8 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.
2021-03-09 21:52:58 -08:00