Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def multiply(x, y):
from opentelemetry.instrumentation.remoulade.package import _instruments
from opentelemetry.instrumentation.remoulade.version import __version__
from opentelemetry.propagate import extract, inject
from opentelemetry.semconv.trace import SpanAttributes
from opentelemetry.semconv._incubating.attributes import messaging_attributes

_REMOULADE_MESSAGE_TAG_KEY = "remoulade.action"
_REMOULADE_MESSAGE_SEND = "send"
Expand Down Expand Up @@ -112,7 +112,7 @@ def after_process_message(
{
_REMOULADE_MESSAGE_TAG_KEY: _REMOULADE_MESSAGE_RUN,
_REMOULADE_MESSAGE_NAME_KEY: message.actor_name,
SpanAttributes.MESSAGING_MESSAGE_ID: message.message_id,
messaging_attributes.MESSAGING_MESSAGE_ID: message.message_id,
}
)

Expand All @@ -137,7 +137,7 @@ def before_enqueue(self, _broker, message, delay):
{
_REMOULADE_MESSAGE_TAG_KEY: _REMOULADE_MESSAGE_SEND,
_REMOULADE_MESSAGE_NAME_KEY: message.actor_name,
SpanAttributes.MESSAGING_MESSAGE_ID: message.message_id,
messaging_attributes.MESSAGING_MESSAGE_ID: message.message_id,
}
)

Expand Down