Skip to content

Commit 8fd3929

Browse files
committed
instrumentation/remoulade: stop using deprecated SpanAttributes
1 parent b36ca33 commit 8fd3929

File tree

1 file changed

+3
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-remoulade/src/opentelemetry/instrumentation/remoulade

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-remoulade/src/opentelemetry/instrumentation/remoulade/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def multiply(x, y):
5555
from opentelemetry.instrumentation.remoulade.package import _instruments
5656
from opentelemetry.instrumentation.remoulade.version import __version__
5757
from opentelemetry.propagate import extract, inject
58-
from opentelemetry.semconv.trace import SpanAttributes
58+
from opentelemetry.semconv._incubating.attributes import messaging_attributes
5959

6060
_REMOULADE_MESSAGE_TAG_KEY = "remoulade.action"
6161
_REMOULADE_MESSAGE_SEND = "send"
@@ -112,7 +112,7 @@ def after_process_message(
112112
{
113113
_REMOULADE_MESSAGE_TAG_KEY: _REMOULADE_MESSAGE_RUN,
114114
_REMOULADE_MESSAGE_NAME_KEY: message.actor_name,
115-
SpanAttributes.MESSAGING_MESSAGE_ID: message.message_id,
115+
messaging_attributes.MESSAGING_MESSAGE_ID: message.message_id,
116116
}
117117
)
118118

@@ -137,7 +137,7 @@ def before_enqueue(self, _broker, message, delay):
137137
{
138138
_REMOULADE_MESSAGE_TAG_KEY: _REMOULADE_MESSAGE_SEND,
139139
_REMOULADE_MESSAGE_NAME_KEY: message.actor_name,
140-
SpanAttributes.MESSAGING_MESSAGE_ID: message.message_id,
140+
messaging_attributes.MESSAGING_MESSAGE_ID: message.message_id,
141141
}
142142
)
143143

0 commit comments

Comments
 (0)