-
Notifications
You must be signed in to change notification settings - Fork 222
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
Better "capture_body" flag support #1549
Conversation
Hi @frnkvieira! Thanks for opening the PR, this looks great! From what I see, we have a pretty similar approach to handling the body in the new generic ASGI middleware (#1528). Can you point me towards the change that ignores encoding errors? I would have suspected that you added
|
🌐 Coverage report
|
Hi @beniwohli, to be clear, the intent of this pull request is closing #1545, but as a side effect, this fixes non-UTF-8 errors in ignored paths, only ignored ones, thanks to the ignore path checkup being done way earlier (which seems a good choice to me but maybe I'm missing something). (https://github.com/frnkvieira/apm-agent-python/blob/main/elasticapm/contrib/starlette/__init__.py#L134) Btw, I don't think crashing on non-utf-8 data is a good thing, but I didn't feel confident enough to keep changing stuff =P |
Hi @beniwohli, any idea on when you might merge this PR and publish it to pypi? |
Also update encoding.long_field to handle bytes
@frnkvieira looks like you've turned off "allow maintainer edits" so I opened a PR instead: https://github.com/frnkvieira/apm-agent-python/pull/1 @julianogv apologies for the delay here! |
/test |
Updates to #1549
I'm probably missing something because the flag seems to be checked. |
/test |
/test linters |
What does this pull request do?
I'm still wrapping my head around how this agent works so my apologies in advance if I made any wrong assumptions =)
Related issues
closes #1545