@@ -68,8 +68,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
6868{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
6969{"type":"event","content_type":"application\/json"}
7070{"timestamp":1597790835,"platform":"php","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
71- TEXT
72- ,
71+ TEXT ,
7372 ];
7473
7574 $ event = Event::createEvent (new EventId ('fc9442f5aef34234bb22b9a615e30ccd ' ));
@@ -186,8 +185,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
186185{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
187186{"type":"event","content_type":"application\/json"}
188187{"timestamp":1597790835,"platform":"php","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]},"message":"My raw message with interpreted strings like this"}
189- TEXT
190- ,
188+ TEXT ,
191189 ];
192190
193191 $ event = Event::createEvent (new EventId ('fc9442f5aef34234bb22b9a615e30ccd ' ));
@@ -211,8 +209,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
211209{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
212210{"type":"event","content_type":"application\/json"}
213211{"timestamp":1597790835,"platform":"php","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]},"message":{"message":"My raw message with interpreted strings like %s","params":["this"],"formatted":"My raw message with interpreted strings like that"}}
214- TEXT
215- ,
212+ TEXT ,
216213 ];
217214
218215 $ span1 = new Span ();
@@ -302,8 +299,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
302299{"timestamp":1597790835,"platform":"php","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]},"transaction":"GET \/","release":"1.0.0","environment":"dev","contexts":{"os":{"name":"macOS","version":"13.2.1","build":"22D68","kernel_version":"Darwin Kernel Version 22.2.0"},"runtime":{"name":"php","sapi":"cli","version":"8.2.3"},"trace":{"trace_id":"21160e9b836d479f81611368b2aa3d2c","span_id":"5dd538dc297544cc"}},"spans":[{"span_id":"5dd538dc297544cc","trace_id":"21160e9b836d479f81611368b2aa3d2c","start_timestamp":1597790835,"origin":"manual"},{"span_id":"b01b9f6349558cd1","trace_id":"1e57b752bc6e4544bbaa246cd1d05dee","start_timestamp":1597790835,"origin":"manual","parent_span_id":"b0e6f15b45c36b12","timestamp":1598659060,"status":"ok","description":"GET \/sockjs-node\/info","op":"http","data":{"url":"http:\/\/localhost:8080\/sockjs-node\/info?t=1588601703755","status_code":200,"type":"xhr","method":"GET"},"tags":{"http.status_code":"200"}}]}
303300{"type":"profile","content_type":"application\/json"}
304301{"device":{"architecture":"aarch64"},"event_id":"fc9442f5aef34234bb22b9a615e30ccd","os":{"name":"macOS","version":"13.2.1","build_number":"22D68"},"platform":"php","release":"1.0.0","environment":"dev","runtime":{"name":"php","sapi":"cli","version":"8.2.3"},"timestamp":"2023-02-28T08:41:00.000+00:00","transaction":{"id":"fc9442f5aef34234bb22b9a615e30ccd","name":"GET \/","trace_id":"21160e9b836d479f81611368b2aa3d2c","active_thread_id":"0"},"version":"1","profile":{"frames":[{"filename":"\/var\/www\/html\/index.php","abs_path":"\/var\/www\/html\/index.php","module":null,"function":"\/var\/www\/html\/index.php","lineno":42},{"filename":"\/var\/www\/html\/function.php","abs_path":"\/var\/www\/html\/function.php","module":"Function","function":"Function::doStuff","lineno":84}],"samples":[{"stack_id":0,"thread_id":"0","elapsed_since_start_ns":1000000},{"stack_id":1,"thread_id":"0","elapsed_since_start_ns":2000000}],"stacks":[[0],[0,1]]}}
305- TEXT
306- ,
302+ TEXT ,
307303 ];
308304
309305 $ event = Event::createTransaction (new EventId ('fc9442f5aef34234bb22b9a615e30ccd ' ));
@@ -316,8 +312,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
316312{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]},"trace":{"public_key":"public","trace_id":"d49d9bf66f13450b81f65bc51cf49c03","sample_rate":"1"}}
317313{"type":"transaction","content_type":"application\/json"}
318314{"timestamp":1597790835,"platform":"php","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]},"spans":[],"transaction_info":{"source":"custom"}}
319- TEXT
320- ,
315+ TEXT ,
321316 ];
322317
323318 $ event = Event::createEvent (new EventId ('fc9442f5aef34234bb22b9a615e30ccd ' ));
@@ -329,8 +324,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
329324{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
330325{"type":"event","content_type":"application\/json"}
331326{"timestamp":1597790835,"platform":"php","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]},"stacktrace":{"frames":[{"filename":"","lineno":0,"in_app":true}]}}
332- TEXT
333- ,
327+ TEXT ,
334328 ];
335329
336330 $ checkinId = SentryUid::generate ();
@@ -352,8 +346,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
352346{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
353347{"type":"check_in","content_type":"application\/json"}
354348{"check_in_id":" $ checkinId","monitor_slug":"my-monitor","status":"ok","duration":10,"release":"1.0.0","environment":"dev"}
355- TEXT
356- ,
349+ TEXT ,
357350 ];
358351
359352 $ checkinId = SentryUid::generate ();
@@ -372,8 +365,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
372365{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
373366{"type":"check_in","content_type":"application\/json"}
374367{"check_in_id":" $ checkinId","monitor_slug":"my-monitor","status":"in_progress","duration":null,"release":"","environment":"production"}
375- TEXT
376- ,
368+ TEXT ,
377369 ];
378370
379371 $ checkinId = SentryUid::generate ();
@@ -407,8 +399,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
407399{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
408400{"type":"check_in","content_type":"application\/json"}
409401{"check_in_id":" $ checkinId","monitor_slug":"my-monitor","status":"ok","duration":10,"release":"1.0.0","environment":"dev","monitor_config":{"schedule":{"type":"crontab","value":"0 0 * * *","unit":""},"checkin_margin":10,"max_runtime":12,"timezone":"Europe\/Amsterdam","failure_issue_threshold":5,"recovery_threshold":10},"contexts":{"trace":{"trace_id":"21160e9b836d479f81611368b2aa3d2c","span_id":"5dd538dc297544cc"}}}
410- TEXT
411- ,
402+ TEXT ,
412403 ];
413404
414405 $ event = Event::createLogs (new EventId ('fc9442f5aef34234bb22b9a615e30ccd ' ));
@@ -423,8 +414,7 @@ public static function serializeAsEnvelopeDataProvider(): iterable
423414{"event_id":"fc9442f5aef34234bb22b9a615e30ccd","sent_at":"2020-08-18T22:47:15Z","dsn":"http:\/\/public@example.com\/sentry\/1","sdk":{"name":"sentry.php","version":" $ sdkVersion","packages":[{"name":"composer:sentry\/sentry","version":" $ sdkVersion"}]}}
424415{"type":"log","item_count":1,"content_type":"application\/vnd.sentry.items.log+json"}
425416{"items":[{"timestamp":1597790835,"trace_id":"21160e9b836d479f81611368b2aa3d2c","level":"info","body":"A log message","attributes":{"foo":{"type":"string","value":"bar"}}}]}
426- TEXT
427- ,
417+ TEXT ,
428418 ];
429419 }
430420}
0 commit comments