Skip to content

Commit 79ac210

Browse files
authored
fix exception replay snapshot (#7317)
1 parent 160baa9 commit 79ac210

2 files changed

Lines changed: 192 additions & 10 deletions

File tree

manifests/java.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2982,15 +2982,15 @@ manifest:
29822982
- declaration: bug (DEBUG-3285)
29832983
component_version: <1.46.0
29842984
tests/debugger/test_debugger_exception_replay.py::Test_Debugger_Exception_Replay::test_exception_replay_firsthit: missing_feature (Implemented only for dotnet)
2985-
tests/debugger/test_debugger_exception_replay.py::Test_Debugger_Exception_Replay::test_exception_replay_inner:
2986-
- declaration: bug (DEBUG-3285)
2987-
component_version: <1.46.0
2988-
# Added by easy win activation script
2989-
- weblog_declaration:
2990-
spring-boot-undertow: missing_feature
2991-
spring-boot-openliberty: missing_feature
2992-
spring-boot-jetty: missing_feature
2993-
spring-boot-payara: missing_feature
2985+
tests/debugger/test_debugger_exception_replay.py::Test_Debugger_Exception_Replay::test_exception_replay_inner: bug (DEBUG-5838)
2986+
# - declaration: bug (DEBUG-3285)
2987+
# component_version: <1.46.0
2988+
# Added by easy win activation script
2989+
# - weblog_declaration:
2990+
# spring-boot-undertow: missing_feature
2991+
# spring-boot-openliberty: missing_feature
2992+
# spring-boot-jetty: missing_feature
2993+
# spring-boot-payara: missing_feature
29942994
tests/debugger/test_debugger_exception_replay.py::Test_Debugger_Exception_Replay::test_exception_replay_multiframe:
29952995
- declaration: bug (DEBUG-3285)
29962996
component_version: <1.46.0

tests/debugger/utils/approvals/java/1.5.0/exception_replay_inner_snapshots_expected.json

Lines changed: 183 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,189 @@
1313
"fields": {}
1414
}
1515
},
16-
"locals": {},
16+
"locals": {
17+
"ex": {
18+
"type": "org.springframework.web.server.ResponseStatusException",
19+
"fields": {
20+
"status": {
21+
"type": "int",
22+
"value": "500"
23+
},
24+
"reason": {
25+
"type": "java.lang.String",
26+
"value": "Inner exception"
27+
},
28+
"backtrace": {
29+
"type": "java.lang.Object[]",
30+
"elements": [
31+
{
32+
"type": "short[]",
33+
"elements": "<scrubbed>",
34+
"size": "32"
35+
},
36+
{
37+
"type": "int[]",
38+
"elements": "<scrubbed>",
39+
"size": "32"
40+
},
41+
{
42+
"type": "java.lang.Object[]",
43+
"elements": [
44+
{
45+
"type": "java.lang.Class",
46+
"value": "com.datadoghq.system_tests.springboot.debugger.ExceptionReplayController"
47+
},
48+
{
49+
"<runtime>": "<scrubbed>"
50+
}
51+
],
52+
"size": "32"
53+
},
54+
{
55+
"type": "long[]",
56+
"elements": "<scrubbed>",
57+
"size": "32"
58+
},
59+
{
60+
"type": "java.lang.Object[]",
61+
"elements": [
62+
{
63+
"type": "short[]",
64+
"notCapturedReason": "depth"
65+
},
66+
{
67+
"type": "int[]",
68+
"notCapturedReason": "depth"
69+
},
70+
{
71+
"type": "java.lang.Object[]",
72+
"notCapturedReason": "depth"
73+
},
74+
{
75+
"type": "long[]",
76+
"notCapturedReason": "depth"
77+
},
78+
{
79+
"type": "java.lang.Object[]",
80+
"notCapturedReason": "depth"
81+
},
82+
{
83+
"<runtime>": "<scrubbed>"
84+
}
85+
],
86+
"size": "5"
87+
},
88+
{
89+
"<runtime>": "<scrubbed>"
90+
}
91+
],
92+
"size": "5"
93+
},
94+
"detailMessage": {
95+
"type": "java.lang.String",
96+
"isNull": true
97+
},
98+
"cause": {
99+
"type": "java.lang.Throwable",
100+
"isNull": true
101+
},
102+
"stackTrace": {
103+
"type": "java.lang.StackTraceElement[]",
104+
"elements": [
105+
{
106+
"type": "java.lang.StackTraceElement",
107+
"fields": {
108+
"declaringClassObject": {
109+
"type": "java.lang.Class",
110+
"isNull": true
111+
},
112+
"classLoaderName": {
113+
"type": "java.lang.String",
114+
"isNull": true
115+
},
116+
"moduleName": {
117+
"type": "java.lang.String",
118+
"isNull": true
119+
},
120+
"moduleVersion": "<scrubbed>",
121+
"declaringClass": {
122+
"type": "java.lang.String",
123+
"value": "com.datadoghq.system_tests.springboot.debugger.ExceptionReplayController"
124+
},
125+
"methodName": {
126+
"type": "java.lang.String",
127+
"value": "exceptionReplayInner"
128+
},
129+
"fileName": {
130+
"type": "java.lang.String",
131+
"value": "ExceptionReplayController.java"
132+
},
133+
"lineNumber": {
134+
"type": "java.lang.Integer",
135+
"value": "32"
136+
},
137+
"format": {
138+
"type": "byte",
139+
"value": "0"
140+
}
141+
}
142+
},
143+
{
144+
"type": "java.lang.StackTraceElement",
145+
"fields": {
146+
"declaringClassObject": {
147+
"type": "java.lang.Class",
148+
"isNull": true
149+
},
150+
"classLoaderName": {
151+
"type": "java.lang.String",
152+
"isNull": true
153+
},
154+
"moduleName": {
155+
"type": "java.lang.String",
156+
"isNull": true
157+
},
158+
"moduleVersion": "<scrubbed>",
159+
"declaringClass": {
160+
"type": "java.lang.String",
161+
"value": "datadog.trace.instrumentation.springweb.HandlerMappingResourceNameFilter"
162+
},
163+
"methodName": {
164+
"type": "java.lang.String",
165+
"value": "doFilterInternal"
166+
},
167+
"fileName": {
168+
"type": "java.lang.String",
169+
"value": "HandlerMappingResourceNameFilter.java"
170+
},
171+
"lineNumber": {
172+
"type": "java.lang.Integer",
173+
"value": "57"
174+
},
175+
"format": {
176+
"type": "byte",
177+
"value": "0"
178+
}
179+
}
180+
},
181+
{
182+
"<runtime>": "<scrubbed>"
183+
}
184+
],
185+
"size": "94"
186+
},
187+
"depth": {
188+
"type": "int",
189+
"value": "94"
190+
},
191+
"suppressedExceptions": {
192+
"type": "java.lang.Throwable[]",
193+
"elements": [],
194+
"size": "0"
195+
}
196+
}
197+
}
198+
},
17199
"staticFields": {},
18200
"throwable": {
19201
"type": "org.springframework.web.server.ResponseStatusException",

0 commit comments

Comments
 (0)