Skip to content

[Due for payment 2026-03-30] ManualCreateExpenseSubmit telemetry span includes GPS wait time, making the metric unreliable #85695

@marcaaron

Description

@marcaaron

Problem

When a user submits an expense that requires geolocation, the ManualCreateExpenseSubmit telemetry span includes the full GPS wait time (typically 5-30 seconds). This makes the metric useless for measuring actual submit performance, since the real submit logic only takes a couple milliseconds.

Solution

End the ManualCreateExpenseSubmit span right after the submit is dispatched, before the GPS lookup begins. Track GPS latency separately under a new ManualGeolocationWait child span so it can be measured independently. This applies to both the track expense and request money code paths.

Issue OwnerCurrent Issue Owner: @BartekObudzinski

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions