@@ -38,20 +38,20 @@ protected function hookBulk(): bool
3838 'bulk ' ,
3939 pre: function (QueueContract $ queue , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) {
4040 $ attributes = array_merge ([
41- TraceAttributes::CODE_FUNCTION => $ function ,
41+ TraceAttributes::CODE_FUNCTION_NAME => $ function ,
4242 TraceAttributes::CODE_NAMESPACE => $ class ,
4343 TraceAttributes::CODE_FILEPATH => $ filename ,
44- TraceAttributes::CODE_LINENO => $ lineno ,
44+ TraceAttributes::CODE_LINE_NUMBER => $ lineno ,
4545 TraceAttributes::MESSAGING_BATCH_MESSAGE_COUNT => count ($ params [0 ] ?? []),
4646 ], $ this ->contextualMessageSystemAttributes ($ queue , []));
4747
4848 /** @psalm-suppress ArgumentTypeCoercion */
4949 $ span = $ this ->instrumentation
5050 ->tracer ()
5151 ->spanBuilder (vsprintf ('%s %s ' , [
52+ TraceAttributeValues::MESSAGING_OPERATION_TYPE_SEND ,
5253 /** @phan-suppress-next-line PhanUndeclaredMethod */
5354 method_exists ($ queue , 'getQueue ' ) ? $ queue ->getQueue ($ params [2 ] ?? null ) : $ queue ->getConnectionName (),
54- TraceAttributeValues::MESSAGING_OPERATION_PUBLISH ,
5555 ]))
5656 ->setSpanKind (SpanKind::KIND_PRODUCER )
5757 ->setAttributes ($ attributes )
@@ -81,20 +81,20 @@ protected function hookLater(): bool
8181 };
8282
8383 $ attributes = [
84- TraceAttributes::CODE_FUNCTION => $ function ,
84+ TraceAttributes::CODE_FUNCTION_NAME => $ function ,
8585 TraceAttributes::CODE_NAMESPACE => $ class ,
8686 TraceAttributes::CODE_FILEPATH => $ filename ,
87- TraceAttributes::CODE_LINENO => $ lineno ,
87+ TraceAttributes::CODE_LINE_NUMBER => $ lineno ,
8888 'messaging.message.delivery_timestamp ' => $ estimateDeliveryTimestamp ,
8989 ];
9090
9191 /** @psalm-suppress ArgumentTypeCoercion */
9292 $ span = $ this ->instrumentation
9393 ->tracer ()
9494 ->spanBuilder (vsprintf ('%s %s ' , [
95+ TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE ,
9596 /** @phan-suppress-next-line PhanUndeclaredMethod */
9697 method_exists ($ queue , 'getQueue ' ) ? $ queue ->getQueue ($ params [2 ] ?? null ) : $ queue ->getConnectionName (),
97- 'create ' ,
9898 ]))
9999 ->setSpanKind (SpanKind::KIND_PRODUCER )
100100 ->setAttributes ($ attributes )
@@ -124,8 +124,8 @@ protected function hookPushRaw(): bool
124124 $ span = $ this ->instrumentation
125125 ->tracer ()
126126 ->spanBuilder (vsprintf ('%s %s ' , [
127+ TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE ,
127128 $ attributes [TraceAttributes::MESSAGING_DESTINATION_NAME ],
128- TraceAttributeValues::MESSAGING_OPERATION_CREATE ,
129129 ]))
130130 ->setSpanKind (SpanKind::KIND_PRODUCER )
131131 ->setAttributes ($ attributes )
0 commit comments