Skip to content

Commit efc3553

Browse files
authored
feat(backend): Add event type to span data (#233)
1 parent 99d8c3b commit efc3553

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Controller/EventsController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function index(): Response
3636
$span->setData([
3737
'gibpotato.potatoes.event_processing_time' => microtime(true) - $startTimestamp,
3838
'gibpotato.potatoes.event_size' => mb_strlen(serialize($this->request->getData()), '8bit'),
39+
'gibpotato.event_type' => $event->type,
3940
]);
4041
}
4142

src/Service/AwardService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ private function gibToUser(
6565
if ($span !== null) {
6666
$span->setData([
6767
'gibpotato.potatoes.given_out' => $event->amount,
68+
'gibpotato.event_type' => $event->type,
6869
]);
6970
}
7071
}

0 commit comments

Comments
 (0)