Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EventListener/MessengerProfilerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function getSubscribedEvents()

public function onInvoke(WorkerMessageReceivedEvent $event): void
{
$transactionName = \get_class($event->getEnvelope()->getMessage());
$transactionName = str_replace('\\', '/', \get_class($event->getEnvelope()->getMessage()));

$this->profiler->stop();
$this->profiler->start($transactionName, 'messenger');
Expand Down
2 changes: 1 addition & 1 deletion src/Messenger/ProfilerMiddleware.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(ProfilerInterface $profiler, ?RequestStack $requestS

public function handle(Envelope $envelope, StackInterface $stack): Envelope
{
$transactionName = \get_class($envelope->getMessage());
$transactionName = str_replace('\\', '/', \get_class($envelope->getMessage()));

$skip = false;
if (null !== $this->requestStack
Expand Down
1 change: 1 addition & 0 deletions src/Profiler/SymfonyProfiler.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function start(string $name, ?string $kind = null): void
$kind = 'custom';
}

$name = str_replace('\\', '/', $name);
$uri = sprintf('http://%s/%s', $kind, $name);

$this->request = Request::create($uri, $kind);
Expand Down
Loading