Skip to content

Commit 65dc543

Browse files
committed
fix: spanattribute messaging id
1 parent 59bc139 commit 65dc543

File tree

1 file changed

+1
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-aio-pika/src/opentelemetry/instrumentation/aio_pika

1 file changed

+1
-2
lines changed

instrumentation/opentelemetry-instrumentation-aio-pika/src/opentelemetry/instrumentation/aio_pika/span_builder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
from opentelemetry.instrumentation.utils import is_instrumentation_enabled
1919
from opentelemetry.semconv._incubating.attributes.messaging_attributes import (
20-
MESSAGING_MESSAGE_CONVERSATION_ID,
2120
MESSAGING_MESSAGE_ID,
2221
MESSAGING_OPERATION,
2322
MESSAGING_SYSTEM,
@@ -83,7 +82,7 @@ def set_message(self, message: AbstractMessage):
8382
if properties.message_id:
8483
self._attributes[MESSAGING_MESSAGE_ID] = properties.message_id
8584
if properties.correlation_id:
86-
self._attributes[MESSAGING_MESSAGE_CONVERSATION_ID] = (
85+
self._attributes[SpanAttributes.MESSAGING_CONVERSATION_ID] = (
8786
properties.correlation_id
8887
)
8988

0 commit comments

Comments
 (0)