open-telemetry / open-telemetry/opentelemetry-python

Invalid type _FixedFindCallerLogger for attribute '_logger' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types

Open
#4,401 5 comments 2 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

python = "^3.11"

opentelemetry-api = "^1.29.0"
opentelemetry-sdk = "^1.29.0"
opentelemetry-distro = {extras = ["otlp"], version = "^0.50b0"}
opentelemetry-instrumentation = "^0.50b0"
opentelemetry-semantic-conventions = "^0.50b0"

What happened?

fix https://github.com/open-telemetry/opentelemetry-python/issues/3649

I get the same multiple logs. This significantly increases the size of my logs. I use structlog + open-telemetry.
Maybe it's worth creating customizable log attribute filters via the environment that would do the DROP_ATTRIBUTES logic from the example above?

Steps to Reproduce

Use opentelemetry-python + structlog

Expected Result

Logs come without repetitions

Actual Result

As a result, we get a large volume of logs with repeating content

Additional context

No response

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 by reproducing the issue with Python 3.11, the listed OpenTelemetry package versions, and structlog, then inspect how log attributes are handled. Done means repeated log content is removed and the invalid _FixedFindCallerLogger attribute error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.