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

feat(strawberry): Use operation name as transaction name #3294

Merged
merged 8 commits into from
Jul 16, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
tests
sentrivana committed Jul 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 934b36aa4b22ecb2471035084247d057849a8321
3 changes: 3 additions & 0 deletions tests/integrations/strawberry/test_strawberry.py
Original file line number Diff line number Diff line change
@@ -325,6 +325,7 @@ def test_capture_transaction_on_error(
(_, transaction_event) = events

assert transaction_event["transaction"] == "ErrorQuery"
assert transaction_event["contexts"]["trace"]["op"] == OP.GRAPHQL_QUERY
assert transaction_event["spans"]

query_spans = [
@@ -401,6 +402,7 @@ def test_capture_transaction_on_success(
(transaction_event,) = events

assert transaction_event["transaction"] == "GreetingQuery"
assert transaction_event["contexts"]["trace"]["op"] == OP.GRAPHQL_QUERY
assert transaction_event["spans"]

query_spans = [
@@ -557,6 +559,7 @@ def test_transaction_mutation(
(transaction_event,) = events

assert transaction_event["transaction"] == "Change"
assert transaction_event["contexts"]["trace"]["op"] == OP.GRAPHQL_MUTATION
assert transaction_event["spans"]

query_spans = [