Commit 5ec2d86
authored
Preserve stack trace for
Motivation:
When a `CancelledSubscriptionException` was raised, it was created without a stack trace for performance reasons. This made it difficult for developers to debug the root cause of a subscription cancellation.
Modifications:
- Used `CancelledSubscriptionException.get()` when creating a `CloseEvent`.
- This method leverages the configured `verboseExceptionSampler` to determine whether a full stack trace should be captured and preserved.
Result:
- Developers can now obtain a full stack trace for `CancelledSubscriptionException` by configuring the `verboseExceptionSampler`.CancelledSubscriptionException (#6525)1 parent 64d2a0f commit 5ec2d86
File tree
1 file changed
+2
-2
lines changed- core/src/main/java/com/linecorp/armeria/common/stream
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
0 commit comments