Skip to content

Commit ea2e4bb

Browse files
Laravel: use updated TraceAttributeValues::MESSAGING_OPERATION_TYPE_* constants from sem-conv 1.26.
1 parent e494ac2 commit ea2e4bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function hookBulk(HookManagerInterface $hookManager, TracerInterface $
5757
->spanBuilder(vsprintf('%s %s', [
5858
/** @phan-suppress-next-line PhanUndeclaredMethod */
5959
method_exists($queue, 'getQueue') ? $queue->getQueue($params[2] ?? null) : $queue->getConnectionName(),
60-
TraceAttributeValues::MESSAGING_OPERATION_PUBLISH,
60+
TraceAttributeValues::MESSAGING_OPERATION_TYPE_PUBLISH,
6161
]))
6262
->setSpanKind(SpanKind::KIND_PRODUCER)
6363
->setAttributes($attributes)
@@ -129,7 +129,7 @@ protected function hookPushRaw(HookManagerInterface $hookManager, TracerInterfac
129129
$span = $tracer
130130
->spanBuilder(vsprintf('%s %s', [
131131
$attributes[TraceAttributes::MESSAGING_DESTINATION_NAME],
132-
TraceAttributeValues::MESSAGING_OPERATION_CREATE,
132+
TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE,
133133
]))
134134
->setSpanKind(SpanKind::KIND_PRODUCER)
135135
->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
@@ -104,7 +104,7 @@ private function hookWorkerGetNextJob(HookManagerInterface $hookManager, TracerI
104104
$span = $tracer
105105
->spanBuilder(vsprintf('%s %s', [
106106
$attributes[TraceAttributes::MESSAGING_DESTINATION_NAME],
107-
TraceAttributeValues::MESSAGING_OPERATION_RECEIVE,
107+
TraceAttributeValues::MESSAGING_OPERATION_TYPE_RECEIVE,
108108
]))
109109
->setSpanKind(SpanKind::KIND_CONSUMER)
110110
->setAttributes($attributes)

0 commit comments

Comments
 (0)