Commit 1eee393
committed
Avoid double snapshots for Exception Replay
As Exception replay is supported by default for intermediate spans
we can end up in a situation where 2 spans are attaching the same
exception with the snapshots. in that case
DebuggerContext::handleException is called twice, once for each span
and we are also sending the same snapshots to the backend while only
one version is necessary and we tag it to the according spans.
We can just make sure we are sending the snapshots only once.1 parent ae1aa30 commit 1eee393
File tree
2 files changed
+13
-1
lines changed- dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/exception
2 files changed
+13
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
209 | 218 | | |
210 | 219 | | |
0 commit comments