Skip to content

[Due for payment 2026-09-19][Metrics] Split ManualSendMessageVisible into phase subspans #100288

Closed

Description

@cristipaval

Problem

ManualSendMessageVisible is a single number, from composer submit to the sent row's onLayout. When it reads 2s we know the user waited 2s, and nothing else. We still see many sends in the 1-2s range, but we cannot say which part of the send owns that time, so we don't know where to look in a performance trace.

Solution

Add child spans that split the parent, so a slow send tells us which stage was slow:

  • ManualSendMessagePropagate - from the API write being enqueued to the sent row's layout effect. Onyx applies the write, notifies subscribers, React renders and commits the row.
  • ManualSendMessagePostCommit - from the row's layout effect to its onLayout. The rest of the commit, passive effects, the derived value recomputes, the re-render of everything subscribed to them, and last the browser or Yoga layout.
  • Submit has no span. It is the time from the parent start to Propagate start, and it measured 2 to 13ms on both a light and a heavy account, so a third span would only cost quota.
  • OnyxDerivedCompute spans that fire while a send is active now nest under that send instead of being dropped, and get a triggeredKeys attribute naming the dependency that fired them.

Both render side boundaries are keyed on the sent message's own reportActionID, marked by a component that already receives it. Phases are ended or cancelled before the parent, because Sentry drops a child that is still running when its parent ends.

Fixed in

#98043

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    Reviewing
    Weekly
    and removed
    Daily
    on Sep 4, 2026
  2. added
    Daily
    and removed
    Reviewing
    Weekly
    on Sep 11, 2026
  3. melvin-bot commented on Sep 11, 2026

    @melvin-bot

    @Julesssss / @cristipaval @LukasMod

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

  4. melvin-bot commented on Sep 14, 2026

    @melvin-bot

    @LukasMod Whoops! This issue is 2 days overdue. Let's get this updated quick!

  5. melvin-bot commented on Sep 15, 2026

    @melvin-bot

    @cristipaval — to hire @marufsharifi on Upwork, add the External label so a job is created and the offer is sent automatically.

  6. 11 remaining items

  7. melvin-bot commented on Sep 18, 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
  8. melvin-bot commented on Sep 21, 2026

    @melvin-bot

    @mallenexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

  9. mallenexpensify commented on Sep 22, 2026

    @mallenexpensify
    Contributor

    Claude posting on behalf of Matt:

    $375 to @marufsharifi (Contributor+), ie. 150% of the $250 job price, and $375 is outstanding. @LukasMod is a Callstack agency contractor, so no per-issue payment is due to him.

    One increase factor applies, ie. a core-flow change. The PR adds span marks inside the send-message path and a layout effect in the comment fragment that every message row renders.

    Nobody reported a regression in the 7-day window, so no cut applies.

    @cristipaval please confirm $375 before I pay.


    Claude posting on behalf of Matt. PAYRUBRICTEST v1

  10. cristipaval commented on Sep 23, 2026

    @cristipaval
    ContributorAuthor

    @mallenexpensify I think $250 is appropriate here. This PR adds instrumentation without changing the message-sending behavior, and it didn't require QA. I don't think touching the send-message path qualifies as a core-flow change that warrants an increase.

  11. added
    External
    on Sep 24, 2026
  12. melvin-bot commented on Sep 24, 2026

    @melvin-bot

    Current assignee @marufsharifi is eligible for the External assigner, not assigning anyone new.

  13. melvin-bot commented on Sep 24, 2026

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  14. mallenexpensify commented on Sep 24, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @marufsharifi paid $250 via Upwork

    @marufsharifi can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022103200985655547912

  15. marufsharifi commented on Sep 24, 2026

    @marufsharifi
    Contributor

    @mallenexpensify, I've accepted the offer. thanks.

  16. mallenexpensify commented on Sep 24, 2026

    @mallenexpensify
    Contributor

    @marufsharifi paid, summary updated above. Thx.

  17. mallenexpensify commented on Sep 24, 2026

    @mallenexpensify
    Contributor

    @marufsharifi I accidentally created two jobs here so closed one at $0 payment

  18. marufsharifi commented on Sep 24, 2026

    @marufsharifi
    Contributor

    @mallenexpensify this was the job you said accept it

    #93272 (comment)

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

Metadata

Metadata

Labels

Awaiting PaymentDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions