()
| 53 | /** Start a timer for the changeset apply path. Call the returned function when done. |
| 54 | * Returns a no-op stopper when the feature flag is off. */ |
| 55 | export const recordChangesetApply = (): (() => void) => { |
| 56 | if (!enabled()) return () => {}; |
| 57 | return changesetApplyDuration.startTimer(); |
| 58 | }; |
| 59 | |
| 60 | /** Increment the socket-emit counter for the given message type. |
| 61 | * No-op when the feature flag is off. Unknown/missing types are bucketed as |
no test coverage detected