Commit ed004a0
Fix guarded CONTEXT_ATTRIBUTE_KEY removal in error and streaming paths
- handleLastHttpContent error path: use guarded removal (check identity
before removing) to avoid orphaning the next keep-alive request's span
- handleHttpResponse: clear CONTEXT_ATTRIBUTE_KEY after moving context to
STREAMING_CONTEXT_KEY to avoid double-processing in channelInactive
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 80f3573 commit ed004a0
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- dd-java-agent/instrumentation/netty/netty-4.1/src/main/java/datadog/trace/instrumentation/netty41/server
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
0 commit comments