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(graphene): Add span for grapqhl operation #2788

Merged
merged 8 commits into from
Jul 25, 2024

Conversation

czyber
Copy link
Contributor

@czyber czyber commented Mar 5, 2024

This commit adds a span for a graphql operation to the graphene integration

Fixes #2765


General Notes

Thank you for contributing to sentry-python!

Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. Some tests (AWS Lambda) additionally require a maintainer to add a special label to run and will fail if the label is not present.

For maintainers

Sensitive test suites require maintainer review to ensure that tests do not compromise our secrets. This review must be repeated after any code revisions.

Before running sensitive test suites, please carefully check the PR. Then, apply the Trigger: tests using secrets label. The label will be removed after any code changes to enforce our policy requiring maintainers to review all code revisions before running sensitive tests.

This commit adds a span for a graphql operation to the graphene integration
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, and thanks for your patience as we work through our backlog of community PRs!

I noticed that your PR is still using our old, deprecated Hub APIs. We are going to need to replace these with the new corresponding Scope APIs before we can merge this PR. More information on how to do this is available in our Migration Guide.

Is this a change you are comfortable with making yourself, or do you need us to take over the PR?

@szokeasaurusrex szokeasaurusrex changed the title feat(integrations): Add span for grapqhl operation #2765 feat(integrations): Add span for grapqhl operation Jul 2, 2024
@szokeasaurusrex szokeasaurusrex changed the title feat(integrations): Add span for grapqhl operation feat(graphene): Add span for grapqhl operation Jul 2, 2024
@antonpirker
Copy link
Member

I take the freedom to remove the hubs from the pr

@antonpirker antonpirker added the Trigger: tests using secrets PR code is safe; run CI label Jul 25, 2024
@github-actions github-actions bot removed the Trigger: tests using secrets PR code is safe; run CI label Jul 25, 2024
@antonpirker antonpirker added the Trigger: tests using secrets PR code is safe; run CI label Jul 25, 2024
Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think is is looking good now!

sentry_sdk/integrations/graphene.py Outdated Show resolved Hide resolved
sentry_sdk/integrations/graphene.py Outdated Show resolved Hide resolved
@szokeasaurusrex
Copy link
Member

Mostly looks good, see above

@szokeasaurusrex szokeasaurusrex dismissed their stale review July 25, 2024 12:04

Changes addressed mostly

antonpirker and others added 2 commits July 25, 2024 14:08
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
@github-actions github-actions bot removed the Trigger: tests using secrets PR code is safe; run CI label Jul 25, 2024
@antonpirker
Copy link
Member

Committed your suggestions! Thanks a lot for the quick review!

@antonpirker antonpirker enabled auto-merge (squash) July 25, 2024 12:10
@antonpirker antonpirker added the Trigger: tests using secrets PR code is safe; run CI label Jul 25, 2024
@antonpirker antonpirker merged commit 18015e9 into getsentry:master Jul 25, 2024
124 of 127 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GrapheneIntegration: Enhance Transaction Naming for Errors in Graphene GraphQL Operations
3 participants