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
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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