Skip to content
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

Capture servlet request parameters at the end of the request #5019

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Jan 5, 2022

Move capturing servlet request parameters as span attributes from the beginning of the request to the end of the request. Reading request parameters forces parsing of the request body. When we do it at the beginning there is a risk that request will be parsed before request encoding is set which could result in incorrect parameter values.

@laurit laurit requested a review from a team January 5, 2022 17:44
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

I have one question, but it's on pre-existing code, so will explore that separately (#5021)

@laurit
Copy link
Contributor Author

laurit commented Jan 6, 2022

@trask I added a comment, could you see if it helps.

@trask
Copy link
Member

trask commented Jan 6, 2022

@trask I added a comment, could you see if it helps.

thx!

@trask trask merged commit 12c15b2 into open-telemetry:main Jan 6, 2022
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…lemetry#5019)

* Capture servlet request parameters at the end of the request

* add comment
@laurit laurit deleted the capture-request-params-at-end branch July 6, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants