Skip to content

Commit 2c237b9

Browse files
committed
segment types
1 parent fac8d15 commit 2c237b9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/Doctrine/Middleware/InspectorSQLSegmentTracer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function startQuery($sql, ?array $params = null, ?array $types = null): v
4242
return;
4343
}
4444

45-
$this->segment = $this->inspector->startSegment("doctrine:{$this->connectionName}", $sql);
45+
$this->segment = $this->inspector->startSegment("db.doctrine:{$this->connectionName}", $sql);
4646

4747
$context = ['sql' => $sql];
4848

src/Listeners/ConsoleEventsSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function onConsoleStart(ConsoleCommandEvent $event): void
7676
'options' => $event->getInput()->getOptions(),
7777
]);
7878
} elseif ($this->inspector->canAddSegments()) {
79-
$this->segments[$commandName] = $this->inspector->startSegment('command', $commandName);
79+
$this->segments[$commandName] = $this->inspector->startSegment('cli.command', $commandName);
8080
}
8181
}
8282

src/Listeners/KernelEventsSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class KernelEventsSubscriber implements EventSubscriberInterface
3030

3131
protected const SEGMENT_TYPE_CONTROLLER = 'controller';
3232
protected const SEGMENT_TYPE_PROCESS = 'process';
33-
protected const SEGMENT_TYPE_TEMPLATE = 'template';
33+
protected const SEGMENT_TYPE_TEMPLATE = 'view';
3434

3535
/**
3636
* @var string[]

src/Listeners/MessengerEventsSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function onWorkerMessageReceived(WorkerMessageReceivedEvent $event)
5858
if (!$this->inspector->hasTransaction() ) {
5959
$this->inspector->startTransaction($class)->setType('message');
6060
} elseif ($this->inspector->canAddSegments()) {
61-
$this->segments[$class] = $this->inspector->startSegment('message', $class);
61+
$this->segments[$class] = $this->inspector->startSegment('job.message', $class);
6262
}
6363
}
6464

src/Messenger/MessengerMonitoringMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function beforeHandle($class): void
7070
if (!$this->inspector->hasTransaction()) {
7171
$this->inspector->startTransaction($class)->setType('message');
7272
} elseif ($this->inspector->canAddSegments()) {
73-
$this->segment = $this->inspector->startSegment('message', $class);
73+
$this->segment = $this->inspector->startSegment('job.message', $class);
7474
}
7575
}
7676

src/Twig/TwigTracer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function enter(Profile $profile): void
4949
$label = $this->getLabelTitle($profile);
5050

5151
if ($profile->isRoot() || $profile->isTemplate()) {
52-
$this->segments[$profile->getTemplate()] = $this->inspector->startSegment('twig', $label);
52+
$this->segments[$profile->getTemplate()] = $this->inspector->startSegment('view.twig', $label);
5353
}
5454
}
5555

0 commit comments

Comments
 (0)