Skip to content

Commit

Permalink
Fix: Handle a list of keys (not just a single key) in Django cache sp…
Browse files Browse the repository at this point in the history
…ans (#2082)

* Just adding the first argument (the key/keys) makes live much easier.
  • Loading branch information
antonpirker committed May 5, 2023
1 parent c267ef4 commit 7fad40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/django/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _instrument_call(cache, method_name, original_method, args, kwargs):
if integration is None or not integration.cache_spans:
return original_method(*args, **kwargs)

description = "{} {}".format(method_name, " ".join(args))
description = "{} {}".format(method_name, args[0])

with hub.start_span(op=OP.CACHE, description=description) as span:
value = original_method(*args, **kwargs)
Expand Down

0 comments on commit 7fad40e

Please sign in to comment.