Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
Span ops are now a smaller, framework-neutral set.

- The Cohere integration now emits `gen_ai.chat` instead of `ai.chat_completions.create.cohere`, and `gen_ai.embeddings` instead of `ai.embeddings.create.cohere`.
- The Django integration now emits `view.render` instead of `view.response.render`, and `view` instead of `view.authenticate`.

#### Django

Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def sentry_patched_render(self: "SimpleTemplateResponse") -> "Any":
with sentry_sdk.start_span(
name="serialize response",
attributes={
"sentry.op": OP.VIEW_RESPONSE_RENDER,
"sentry.op": OP.VIEW_RENDER,
"sentry.origin": DjangoIntegration.origin,
},
):
Expand Down
5 changes: 2 additions & 3 deletions tests/integrations/django/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,8 @@ def test_response_trace(
sentry_sdk.flush()
spans = [item.payload for item in items]

assert (
'- sentry.op="view.response.render": name="serialize response"'
in render_span_tree(spans)
assert '- sentry.op="view.render": name="serialize response"' in render_span_tree(
spans
)


Expand Down
Loading