Skip to content

[Due for payment 2026-07-23] [Metrics] Add send_message_source attribute to ManualSendMessage spans #95709

Closed

Description

@cristipaval

Context

Part of #95584 (idea #3).

We still see many ManualSendMessage spans in the ~1-2s range, but so far we only have one blended number. Most of the focus was on chat from the inbox, so we can't tell which send path is the slowest one. Without that, it's hard to pick where to optimize next.

What we want

Tag every ManualSendMessage span with where the message was sent from, using a new attribute send_message_source. Then we can slice the metric by scenario in Sentry and answer: which send path is slow the most often, and where should we focus?

The value is built from the tab + the report type + how the report was opened, for example inbox_expense_transaction_thread_rhp_from_report:

  • tab_ — the tab behind the screen: home_ / inbox_ / spend_ / settings_ / other_
  • _single / _multi — expense report with one transaction vs many
  • _rhp — the report is open in the Right-Hand Panel
  • _from_report — an RHP screen was drilled into from its parent expense report

Dashboard

Add a table to the Sentry dashboard grouped by send_message_source, so we get a % distribution per path and can drill into a specific user to see if certain paths are consistently slower.

Parent

Part of #77176

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. self-assigned this
    on Jul 9, 2026
  2. added
    Reviewing
    Weekly
    and removed
    Weekly
    on Jul 9, 2026
  3. added
    Daily
    and removed
    Reviewing
    Weekly
    on Jul 16, 2026
  4. changed the title [-][Metrics] Add send_message_source attribute to ManualSendMessage spans[/-] [+][Due for payment 2026-07-23] [Metrics] Add send_message_source attribute to ManualSendMessage spans[/+] on Jul 16, 2026
  5. melvin-bot commented on Jul 16, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  6. melvin-bot commented on Jul 16, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.35-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-07-23. 🎊

    For reference, here are some details about the assignees on this issue:

    • @LukasMod does not require payment (Contractor)
  7. 3 remaining items

  8. LukasMod commented on Jul 21, 2026

    @LukasMod
    Contributor

    PR was merged and deployed, so this can probably be closed. cc @cristipaval

    We already have some useful data: https://expensify.sentry.io/dashboard/166325/?statsPeriod=7d

    The Spend tab and transaction_thread_rhp_from_report are the scenarios with the lowest percentage of messages completing within the 300 ms target at the moment. This matches our current direction of preventing rerenders on blurred screens (transaction_thread_rhp_from_report)

    Image
  9. cristipaval commented on Jul 21, 2026

    @cristipaval
    ContributorAuthor

    thanks for working on this one 🙏

  10. suneox commented on Sep 13, 2026

    @suneox
    Contributor

    @cristipaval I've reviewed this PR so could you please assign me to this issue for payment? Thanks!

  11. added
    Awaiting Payment
    on Sep 14, 2026
  12. melvin-bot commented on Sep 14, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  13. melvin-bot commented on Sep 14, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  14. mallenexpensify commented on Sep 15, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @suneox due $250 via NewDot

    @suneox @cristipaval I'm assuming this qualifies for testing in lieu of vids, comment/reopen if not and I can lower pay to $125

    Image
  15. garrettmknight commented on Sep 22, 2026

    @garrettmknight
    Contributor

    $250 approved for @suneox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDaily

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions