Skip to content

opentelemetry-instrument and logs SDK cause logs to be swallowed by default #2594

Closed
@aabmass

Description

@aabmass

Linux, python3.9

Steps to reproduce
In a fresh venv

pip install opentelemetry-distro opentelemetry-instrumentation
opentelemetry-instrument python -c 'import logging; logger = logging.getLogger("foo"); logger.error("oh no")'

What is the expected behavior?
See the error printed to the console

What is the actual behavior?
No output

Additional context
I believe the LogHandler is being installed on the root logger, but there is no log processor/exporter. Which causes logging to be no-op!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglogging

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions