Skip to content

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

Merged
trask merged 2 commits into
open-telemetry:mainfrom
laurit:capture-request-params-at-end
Jan 6, 2022
Merged

Capture servlet request parameters at the end of the request#5019
trask merged 2 commits into
open-telemetry:mainfrom
laurit:capture-request-params-at-end

Conversation

@laurit

@laurit laurit commented Jan 5, 2022

Copy link
Copy Markdown
Contributor

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

@trask trask left a comment

Copy link
Copy Markdown
Member

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

laurit commented Jan 6, 2022

Copy link
Copy Markdown
Contributor Author

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

@trask

trask commented Jan 6, 2022

Copy link
Copy Markdown
Member

@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