open-telemetry / open-telemetry/opentelemetry-python

Logs example does not export info or debug logs

Open
#4,650 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2.6k
Forks
1k
Avg merge
4d 15h
Merged PRs (30d)
19

Description

Describe your environment

OS: macOS Sequoia 15.5
Python version: 3.13.5
SDK version: 1.34.1/0.55b1
API version: 1.34.1/0.55b1

env vars:
OTEL_LOG_LEVEL=debug
OTEL_PYTHON_LOG_LEVEL=debug

What happened?

When following the logs example instructions and then running the example I do not see the debug or info logs exporter, only the warning and error logs. If I switch the exporter to the console exporter I get the same results.

Steps to Reproduce

Set export OTEL_LOG_LEVEL=debug and export OTEL_PYTHON_LOG_LEVEL=debug.

Then follow the logs example instructions

Expected Result

Info and debug logs exported

Actual Result

Only warning and error logs exported

Additional context

I am seeing this issue in other examples locally, as is an associate from a different company on their machine.

Would you like to implement a fix?

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the logs example in docs/examples/logs and reproduce it with OTEL_LOG_LEVEL=debug and OTEL_PYTHON_LOG_LEVEL=debug. Trace the example's logging and exporter configuration, then verify that both info and debug logs are exported rather than only warnings and errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.