Skip to content

Commit 6a0443d

Browse files
committed
fix(tests): update crashtracker_segfault EXPECTF for libdatadog 1.6 schema
- runtime_stack moved to message.experimental.runtime_stack - new error block with native crash stack (Datadog Crashtracker 1.0 format) - data_schema_version bumped to 1.6 - signal message changed to "Process terminated with SI_USER (SIGSEGV)"
1 parent ba4596a commit 6a0443d

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

tests/ext/crashtracker_segfault.phpt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ $rr->waitForRequest(function ($request) {
7070
%A{
7171
"message": {
7272
%A
73+
"data_schema_version": "1.6",
74+
"error": {
75+
"is_crash": true,
76+
"kind": "UnixSignal",
77+
"message": "Process terminated with SI_USER (SIGSEGV)",
78+
"thread_name": "%s",
79+
"source_type": "Crashtracking",
80+
"stack": {
81+
"format": "Datadog Crashtracker 1.0",
82+
"frames": [
83+
%A
84+
],
85+
"incomplete": false
86+
}
87+
},
88+
"experimental": {
7389
"runtime_stack": {
7490
"format": "Datadog Runtime Callback 1.0",
7591
"frames": [
@@ -94,7 +110,7 @@ $rr->waitForRequest(function ($request) {
94110
}
95111
]
96112
}
97-
%A
113+
},
98114
"files": {
99115
%A
100116
},

0 commit comments

Comments
 (0)