We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a2b51 commit d977cdcCopy full SHA for d977cdc
src/Instrumentation/Laravel/tests/Integration/TestCase.php
@@ -222,6 +222,20 @@ protected function printSpans(): void
222
$span->getName(),
223
json_encode($span->getAttributes()->toArray())
224
);
225
+
226
+ // Print events
227
+ $events = $span->getEvents();
228
+ if (count($events) > 0) {
229
+ echo " Events:\n";
230
+ foreach ($events as $eventIndex => $event) {
231
+ echo sprintf(
232
+ " Event %d: %s (attributes: %s)\n",
233
+ $eventIndex,
234
+ $event->getName(),
235
+ json_encode($event->getAttributes()->toArray())
236
+ );
237
+ }
238
239
}
240
241
0 commit comments