Skip to content

Commit 54010f7

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 2ad24c4 commit 54010f7

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

tests/ext/crashtracker_segfault.phpt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,20 @@ $rr->waitForRequest(function ($request) {
7070
%A{
7171
"message": {
7272
%A
73+
"data_schema_version": "1.6",
7374
"error": {
74-
%A
75+
"is_crash": true,
76+
"kind": "UnixSignal",
77+
"message": "Process terminated with SI_USER (SIGSEGV)",
78+
"thread_name": "%s",
7579
"source_type": "Crashtracking",
80+
"stack": {
81+
"format": "Datadog Crashtracker 1.0",
82+
"frames": [
7683
%A
84+
],
85+
"incomplete": false
86+
}
7787
},
7888
"experimental": {
7989
"runtime_stack": {
@@ -101,6 +111,9 @@ $rr->waitForRequest(function ($request) {
101111
]
102112
}
103113
},
114+
"files": {
115+
%A
116+
},
104117
%A
105118
"incomplete": false,
106119
"metadata": {

0 commit comments

Comments
 (0)