Skip to content

Commit 7fad40e

Browse files
authored
Fix: Handle a list of keys (not just a single key) in Django cache spans (#2082)
* Just adding the first argument (the key/keys) makes live much easier.
1 parent c267ef4 commit 7fad40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/django/caching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _instrument_call(cache, method_name, original_method, args, kwargs):
3131
if integration is None or not integration.cache_spans:
3232
return original_method(*args, **kwargs)
3333

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

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

0 commit comments

Comments
 (0)