-
Notifications
You must be signed in to change notification settings - Fork 628
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
feat: add header extraction parameters to FastAPIInstrumentor().instrument_app
#2241
Merged
ocelotl
merged 9 commits into
open-telemetry:main
from
samuelcolvin:fastapi-header-parameters
Aug 1, 2024
Merged
feat: add header extraction parameters to FastAPIInstrumentor().instrument_app
#2241
ocelotl
merged 9 commits into
open-telemetry:main
from
samuelcolvin:fastapi-header-parameters
Aug 1, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samuelcolvin
commented
Feb 16, 2024
xrmx
reviewed
Feb 19, 2024
instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py
Outdated
Show resolved
Hide resolved
sorry about that, linting fixed hopefully. |
srikanthccv
approved these changes
Feb 20, 2024
Lgtm too. Please could you fix the Changelog merge conflict that popped up after the 1.23.0 release. |
samuelcolvin
force-pushed
the
fastapi-header-parameters
branch
from
March 7, 2024 10:07
be08067
to
d7f370b
Compare
Thanks, done. |
lzchen
reviewed
Mar 7, 2024
.../opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py
Outdated
Show resolved
Hide resolved
lzchen
reviewed
Mar 7, 2024
.../opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py
Show resolved
Hide resolved
@lzchen I've corrected those things. |
lzchen
approved these changes
Mar 18, 2024
ocelotl
force-pushed
the
fastapi-header-parameters
branch
from
March 22, 2024 23:44
e7ee41f
to
1e8ba91
Compare
auto-merge was automatically disabled
March 22, 2024 23:49
Pull Request is not mergeable
ocelotl
force-pushed
the
fastapi-header-parameters
branch
from
August 1, 2024 22:07
1e8ba91
to
f4bcaa8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Continuing from the work done in #2026 by @adriangb, this adds three new keyword parameters to
FastAPIInstrumentor().instrument_app
:http_capture_headers_server_request
http_capture_headers_server_response
http_capture_headers_sanitize_fields
All of course have the same meaning and behavior as in the asgi
OpenTelemetryMiddleware
- they're just passed straight through to that middleware.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Added
TestHTTPAppWithCustomHeadersParameters
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.