Move logger handlers to opentelemetry-instrumentation-logging (#4210)
* Move logging integrations into auto-instrumentation * opentelemetry-instrumentation-logging: move the sdk logging handler here And hook it up via entry point * Add header and future annotations import * Rename entry point group to opentelemetry_logging_integrations * Consider setting up the LoggingHandler as a normal instrumentation * Fix typo * Add missing import * Copy handler tests from core * More work towards green tests * Cleanup properly after loggingHandler tests * Quite hard to expect a mock to setup the handler * Call removehandler also on local loggers No change in practice * Fix wrong noop test * Move to our own env var for controlling autoinstrumentation * Copy handler benchmark from sdk * Document the new environment variables * Add changelog * Please pylint * Added warning about coexistence with sdk code * Reword a bit * Assert that the LoggingHandler has not been setup in uninstrumented test * Add manual handling of auto instrumentation and code attributes logging * Update instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py * Apply suggestions from code review Co-authored-by: Pablo Collins <pablo.collins@gmail.com> * Apply more Pablo feedback --------- Co-authored-by: Pablo Collins <pablo.collins@gmail.com>
R
Riccardo Magliocchetti committed
489bca37c5bdd9bfed5af83eec818bc343a64ce6
Parent: c907282
Committed by GitHub <noreply@github.com>
on 3/3/2026, 9:55:30 AM