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

Fill the stack trace of ResponseCompleteException when sampled #5972

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Nov 7, 2024

Motivation:

ResponseCompleteException is considered a safe exception for cleaning up request resources. However, it would be a good idea to leave a stack trace in case there is a bug in the implementation or the user wants to know how the error occurred.

Discord thread: https://discord.com/channels/1087271586832318494/1087272728177942629/1303562249629073520

Modifications:

  • Create a new instance if ResponseCompletionException is sampled by verboseExceptionSampler

Result:

You can now sample the stack trace of ResponseCompleteException with verboseExceptionSampler.

…nses = true`

Motivation:

`ResponseCompleteException` is considered a safe exception to clean up
request resources. However, it would be a good idea to leave a
stacktrace in case there is a bug in the implementation or the user
wants to know how the error occurred.

Modifications:

- Create a new instance if `verboseResponse = true` and
  `ResponseCompletionException` is sampled by `verboseExceptionSampler`

Result:

You can now sees the stacktrace of `ResponseCompleteException` when
`Flags.verboseResponse()` is true.
@ikhoon ikhoon added this to the 1.32.0 milestone Nov 7, 2024
@ikhoon ikhoon added the defect label Nov 7, 2024
@ikhoon ikhoon marked this pull request as draft November 13, 2024 01:26
@ikhoon ikhoon changed the title Fill the stack trace of ResponseCompleteException when verboseResponses = true Fill the stack trace of ResponseCompleteException when sampled Nov 22, 2024
@ikhoon ikhoon marked this pull request as ready for review November 22, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants