Skip to content

[Due for payment 2026-03-02] Add Sentry spans for expense creation flow #82993

Description

@marcaaron

Problem

When analyzing expense creation performance in Sentry, all expense flows (request money, distance, split, track, invoice) are mixed under one broad span. This makes it hard to identify which specific flow has performance issues and to measure the full round-trip including server response time.

Solution

Add granular Sentry spans to the expense creation flow:

  • Add ManualSubmitExpense span measuring confirm tap → API dispatch, tagged with scenario attribute (e.g. request_money_manual, distance, split, track_expense, invoice) to distinguish flows
  • Add ManualNavigateAfterExpenseCreate span measuring post-submit navigation to the Search page
  • Add SentryServerTiming middleware that creates a ManualExpenseServerResponse span for expense write commands

PR: #82287

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions