-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fastapi
auto-instrumentation by removing fastapi-slim
support
#2783
fix: fastapi
auto-instrumentation by removing fastapi-slim
support
#2783
Conversation
162363f
to
6389d14
Compare
Moreover `fastapi-slim` itself is discontinued from maintainers see fastapi/fastapi#11522 (comment) see https://fastapi.tiangolo.com/release-notes/#01120
6389d14
to
6e7f204
Compare
Checks fail because of side flacky test |
Co-authored-by: Emídio Neto <[email protected]>
Co-authored-by: Emídio Neto <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this fix, including issue comments and how to reproduce. The pyproject.toml and helper function changes also fixed my own local setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested pointing one of my workloads to this branch and it's working again.
Description
fastapi-slim
support was introduced via #2683 as a response tofastapi
maintainers adding a no-dependencies package calledfastapi-slim
.The changes over
opentelemetry-instrumentation-fastapi
have broken auto-instrumentation viaopentelemetry-instrument
as reproduced here https://github.com/smoke/fastapi-autoinstrumentation-failscausing
Skipping instrumentation fastapi: DependencyConflict: requested: "fastapi-slim~=0.111.0" but found: "None"
(when used with OTEL_PYTHON_LOG_LEVEL=debug as #1745 is not yet available)The
fastapi-slim
itself is discontinued from maintainers as it caused issues with users of it.Given it causes issues with opentelemetry auto-instrumentation as well, it is removed as most feasible option.
see fastapi/fastapi#11522 (comment)
see https://fastapi.tiangolo.com/release-notes/#01120
Fixes #2683 (comment)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.