Skip to content

Commit 3919510

Browse files
committed
fix: spanattribute messaging id
1 parent b2d30d2 commit 3919510

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

instrumentation/opentelemetry-instrumentation-aio-pika/tests/test_callback_decorator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
CallbackDecorator,
2121
)
2222
from opentelemetry.semconv._incubating.attributes.messaging_attributes import (
23-
MESSAGING_MESSAGE_CONVERSATION_ID,
2423
MESSAGING_MESSAGE_ID,
2524
MESSAGING_OPERATION,
2625
MESSAGING_SYSTEM,
@@ -55,7 +54,7 @@ class TestInstrumentedQueueAioRmq7(TestCase):
5554
NET_PEER_NAME: SERVER_HOST,
5655
NET_PEER_PORT: SERVER_PORT,
5756
MESSAGING_MESSAGE_ID: MESSAGE_ID,
58-
MESSAGING_MESSAGE_CONVERSATION_ID: CORRELATION_ID,
57+
SpanAttributes.MESSAGING_CONVERSATION_ID: CORRELATION_ID,
5958
MESSAGING_OPERATION: "receive",
6059
}
6160

@@ -95,7 +94,7 @@ class TestInstrumentedQueueAioRmq8(TestCase):
9594
NET_PEER_NAME: SERVER_HOST,
9695
NET_PEER_PORT: SERVER_PORT,
9796
MESSAGING_MESSAGE_ID: MESSAGE_ID,
98-
MESSAGING_MESSAGE_CONVERSATION_ID: CORRELATION_ID,
97+
SpanAttributes.MESSAGING_CONVERSATION_ID: CORRELATION_ID,
9998
MESSAGING_OPERATION: "receive",
10099
}
101100

instrumentation/opentelemetry-instrumentation-aio-pika/tests/test_publish_decorator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
PublishDecorator,
2323
)
2424
from opentelemetry.semconv._incubating.attributes.messaging_attributes import (
25-
MESSAGING_MESSAGE_CONVERSATION_ID,
2625
MESSAGING_MESSAGE_ID,
2726
MESSAGING_SYSTEM,
2827
)
@@ -58,7 +57,7 @@ class TestInstrumentedExchangeAioRmq7(TestCase):
5857
NET_PEER_NAME: SERVER_HOST,
5958
NET_PEER_PORT: SERVER_PORT,
6059
MESSAGING_MESSAGE_ID: MESSAGE_ID,
61-
MESSAGING_MESSAGE_CONVERSATION_ID: CORRELATION_ID,
60+
SpanAttributes.MESSAGING_CONVERSATION_ID: CORRELATION_ID,
6261
SpanAttributes.MESSAGING_TEMP_DESTINATION: True,
6362
}
6463

@@ -137,7 +136,7 @@ class TestInstrumentedExchangeAioRmq8(TestCase):
137136
NET_PEER_NAME: SERVER_HOST,
138137
NET_PEER_PORT: SERVER_PORT,
139138
MESSAGING_MESSAGE_ID: MESSAGE_ID,
140-
MESSAGING_MESSAGE_CONVERSATION_ID: CORRELATION_ID,
139+
SpanAttributes.MESSAGING_CONVERSATION_ID: CORRELATION_ID,
141140
SpanAttributes.MESSAGING_TEMP_DESTINATION: True,
142141
}
143142

0 commit comments

Comments
 (0)