open-telemetry / open-telemetry/opentelemetry-python
Segmentation fault with auto instrumentation in asgi applications
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 I am experiencing a segmentation fault when using auto instrumentation with any asgi application. I have tested with both starlette and fastapi.
Steps to reproduce
Can be created with the following repo. Steps in README.md. https://github.com/potatochip/opentelemetry-segfault-example
What is the expected behavior?
No segfault
What is the actual behavior?
Segfault
Additional context
Load testing sometimes needs to happen a couple times before a segfault occurs, but usually happens on the first try.
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 with the reproduction repository linked in the issue and follow its README.md steps using an ASGI application. Reproduce the failure under load, then inspect the auto-instrumentation path in opentelemetry-python. Done means the reproduction no longer segfaults and the behavior is covered by an appropriate regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100