We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc0a9c commit e242760Copy full SHA for e242760
1 file changed
tests/ext/telemetry/process_tags.phpt
@@ -33,8 +33,16 @@ for ($i = 0; $i < 300; ++$i) {
33
foreach (file(__DIR__ . '/process-tags-telemetry.out') as $l) {
34
if ($l) {
35
$json = json_decode($l, true);
36
- var_dump($json["application"]["process_tags"]);
37
- break 2;
+ if (!is_array($json)) {
+ continue;
38
+ }
39
+ $batch = (isset($json["request_type"]) && $json["request_type"] == "message-batch") ? $json["payload"] : [$json];
40
+ foreach ($batch as $entry) {
41
+ if (isset($entry["application"]["process_tags"])) {
42
+ var_dump($entry["application"]["process_tags"]);
43
+ break 3;
44
45
46
}
47
48
0 commit comments