Skip to content

Commit 223700d

Browse files
committed
flip messaging span names
1 parent 3d4232a commit 223700d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Instrumentation/Laravel/src/Hooks/Illuminate/Contracts/Queue/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ protected function hookPushRaw(): bool
124124
$span = $this->instrumentation
125125
->tracer()
126126
->spanBuilder(vsprintf('%s %s', [
127-
$attributes[TraceAttributes::MESSAGING_DESTINATION_NAME],
128127
TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE,
128+
$attributes[TraceAttributes::MESSAGING_DESTINATION_NAME],
129129
]))
130130
->setSpanKind(SpanKind::KIND_PRODUCER)
131131
->setAttributes($attributes)

src/Instrumentation/Laravel/src/Hooks/Illuminate/Queue/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ private function hookWorkerGetNextJob(): bool
9898
$span = $this->instrumentation
9999
->tracer()
100100
->spanBuilder(vsprintf('%s %s', [
101-
$attributes[TraceAttributes::MESSAGING_DESTINATION_NAME],
102101
TraceAttributeValues::MESSAGING_OPERATION_TYPE_RECEIVE,
102+
$attributes[TraceAttributes::MESSAGING_DESTINATION_NAME],
103103
]))
104104
->setSpanKind(SpanKind::KIND_CONSUMER)
105105
->setAttributes($attributes)

0 commit comments

Comments
 (0)