Skip to content

Add Sentry spans to measure sequential queue command execution time#37

Closed
elirangoshen wants to merge 1 commit into
mainfrom
eliran/sentry-add-sequential-queue-spans
Closed

Add Sentry spans to measure sequential queue command execution time#37
elirangoshen wants to merge 1 commit into
mainfrom
eliran/sentry-add-sequential-queue-spans

Conversation

@elirangoshen
Copy link
Copy Markdown

Summary

  • Adds Sentry spans to SequentialQueue.process() to measure execution time for each API command passing through the queue
  • Each span is named SequentialQueueCommand with a command_name attribute for grouping by command in Sentry
  • Spans are ended at all exit points (success, failure, retry, cancellation)
  • PusherPing is excluded — it fires every 30s as a heartbeat and would spam telemetry

Closes https://github.com/callstack-internal/expensify-issues/issues/2202

Test plan

  • Run the app and verify SequentialQueueCommand spans appear in Sentry with correct command_name attributes
  • Verify PusherPing does not appear in Sentry spans
  • Verify spans appear as children of the ManualAppStartup span during startup

🤖 Generated with Claude Code

Track performance per command name in the sequential queue using Sentry
spans. PusherPing is excluded to avoid heartbeat noise in telemetry.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant