Skip to content

Commit

Permalink
feat(backend): Add event type to span data (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric authored Jan 14, 2025
1 parent 99d8c3b commit efc3553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/EventsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function index(): Response
$span->setData([
'gibpotato.potatoes.event_processing_time' => microtime(true) - $startTimestamp,
'gibpotato.potatoes.event_size' => mb_strlen(serialize($this->request->getData()), '8bit'),
'gibpotato.event_type' => $event->type,
]);
}

Expand Down
1 change: 1 addition & 0 deletions src/Service/AwardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private function gibToUser(
if ($span !== null) {
$span->setData([
'gibpotato.potatoes.given_out' => $event->amount,
'gibpotato.event_type' => $event->type,
]);
}
}
Expand Down

0 comments on commit efc3553

Please sign in to comment.