Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Kombu instrumentation import #1340

Merged
merged 1 commit into from
Mar 28, 2025
Merged
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
5 changes: 3 additions & 2 deletions newrelic/hooks/messagebroker_kombu.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
from newrelic.api.message_transaction import MessageTransaction
from newrelic.api.time_trace import current_trace, notice_error
from newrelic.api.transaction import current_transaction
from newrelic.common.object_wrapper import ObjectProxy, function_wrapper, wrap_function_wrapper
from newrelic.common.object_wrapper import wrap_function_wrapper
from newrelic.common.package_version_utils import get_package_version
from newrelic.common.signature import bind_args
from newrelic.core.config import global_settings

_logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -201,7 +202,7 @@ def wrap_serialize(wrapped, instance, args, kwargs):
if message_trace:
exchange = message_trace.destination_name

group = f"MessageBroker/Kombu/Exchange"
group = "MessageBroker/Kombu/Exchange"
name = f"Named/{exchange}/Serialization/Value"

with FunctionTrace(name=name, group=group) as ft:
Expand Down
Loading