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

ref(ingest): more telemetry in event consumer #79206

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

mjq
Copy link
Member

@mjq mjq commented Oct 16, 2024

  • add the event's type to the transaction, so that we can filter by it in Sentry
  • wrap two more operations near the end of the transaction in spans, to help fill in an area that is blank in our existing instrumentation

- add the event's `type` to the transaction, so that we can filter by it in
  Sentry
- wrap two more operations near the end of the transaction, to help fill in an
  area that is blank in our existing instrumentation
@mjq mjq requested a review from a team as a code owner October 16, 2024 17:44
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2024
@@ -272,10 +274,15 @@ def process_event(
)

# remember for an 1 hour that we saved this event (deduplication protection)
cache.set(deduplication_key, "", CACHE_TIMEOUT)
with sentry_sdk.start_span(op="cache.set") as span:
span.set_data("deduplication_key", deduplication_key)
Copy link
Member

Choose a reason for hiding this comment

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

curious what this one is for.. do we actually need that?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it was a "just-in-case" for debugging but yeah probably not useful. Removed it.

@mjq mjq merged commit 2877e6a into master Oct 17, 2024
49 checks passed
@mjq mjq deleted the mjq-more-event-processor-spans branch October 17, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants