Commit 19cb740
committed
fix(spring-jakarta): [Queue Instrumentation 23] Install Kafka context before trace setup
Store the lifecycle token in the thread-local context immediately after
makeCurrent() so Spring's failure and clearThreadState callbacks can
always clean it up.
Previously, exceptions from trace continuation or transaction setup could
happen before the context was published, leaving cleanup dependent on
later stale-context handling instead of the normal interceptor callback
path.1 parent 80058bb commit 19cb740
1 file changed
Lines changed: 1 addition & 0 deletions
File tree
- sentry-spring-jakarta/src/main/java/io/sentry/spring/jakarta/kafka
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments