Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Fix symfony app handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed Sep 17, 2019
1 parent 1327147 commit 1d57573
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Trace/Integrations/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ public static function load()
];
});

// public function dispatch($eventName, Event $event = null)
opencensus_trace_method(EventDispatcher::class, 'dispatch', function ($dispatcher, $eventName) {
// public function dispatch($event/*, string $eventName = null*/);
opencensus_trace_method(EventDispatcher::class, 'dispatch', function ($dispatcher, $event, $eventName = null) {
if (null === $eventName) {
$eventName = \is_object($event) ? \get_class($event) : $event;
}
return [
'name' => $eventName,
'attributes' => ['eventName' => $eventName]
Expand Down

0 comments on commit 1d57573

Please sign in to comment.