Move logger handlers to opentelemetry-instrumentation-logging#4210
Move logger handlers to opentelemetry-instrumentation-logging#4210xrmx wants to merge 23 commits intoopen-telemetry:mainfrom
Conversation
...n/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/handler.py
Show resolved
Hide resolved
pmcollins
left a comment
There was a problem hiding this comment.
Looks nice -- added a couple of questions.
opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/_load.py
Outdated
Show resolved
Hide resolved
instrumentation/opentelemetry-instrumentation-logging/pyproject.toml
Outdated
Show resolved
Hide resolved
instrumentation/opentelemetry-instrumentation-logging/tests/test_handler.py
Show resolved
Hide resolved
.../opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py
Outdated
Show resolved
Hide resolved
And hook it up via entry point
No change in practice
1002797 to
267f85b
Compare
.../opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py
Outdated
Show resolved
Hide resolved
|
Added tests, fixed leaks and a wrong test in the copied sdk tests 😓 Added the removal of the handler on uninstrument() if it was instrumented. |
...n/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/handler.py
Show resolved
Hide resolved
.../opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py
Show resolved
Hide resolved
.../opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py
Show resolved
Hide resolved
|
Genai examples updated in #4263 |
...opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py
Show resolved
Hide resolved
| thread.start() | ||
|
|
||
|
|
||
| _STD_TO_OTEL = { |
There was a problem hiding this comment.
can't we reference this piece of code from here
There was a problem hiding this comment.
The instrumentations does not have a dependency on the sdk and that code in the sdk will be removed in the future. Likely we are going to move some of this code into another package if this is going to be shared by handlers for other log libraries.
...opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py
Outdated
Show resolved
Hide resolved
.../opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py
Show resolved
Hide resolved
...opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py
Outdated
Show resolved
Hide resolved
| thread.start() | ||
|
|
||
|
|
||
| _STD_TO_OTEL = { |
There was a problem hiding this comment.
The instrumentations does not have a dependency on the sdk and that code in the sdk will be removed in the future. Likely we are going to move some of this code into another package if this is going to be shared by handlers for other log libraries.
…telemetry/instrumentation/logging/constants.py
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
Thanks for all the adjustments. Lgtm
Description
PR for sketching LoggingHandler move outside of sdk.
Refs open-telemetry/opentelemetry-python#4330
Fixes open-telemetry/opentelemetry-python#4316
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.