Skip to content

Commit f2bdbfe

Browse files
committed
consistency
1 parent 951712c commit f2bdbfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/django/templates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ def rendered_content(self):
7373
name=_get_template_name_description(self.template_name),
7474
origin=DjangoIntegration.origin,
7575
) as span:
76-
context_data = {}
76+
new_context = {}
7777
for k, v in self.context_data.items():
7878
# Only include primitive types to avoid
7979
# large payloads and long serialization times
8080
if type(v) in (str, int, float, bool, list, dict):
81-
context_data[k] = v
81+
new_context[k] = v
8282

83-
span.set_data("context", context_data)
83+
span.set_data("context", new_context)
8484

8585
return real_rendered_content.fget(self)
8686

0 commit comments

Comments
 (0)