Wraps a fetch so its attempts are counted for the local diagnostics
connector (M98n).
Calling this IS the opt-in: build the helper only when a devtool
composition is present, and register plugin in that application. The
wrapper records that an attempt started, whether it resolved or failed,
the response's status class and its time to headers — nothing else. It
never reads the URL, headers, body, signal or error.
Deliberate departure: a wrapped fetch that throws SYNCHRONOUSLY is rethrown
synchronously, although the return type is a promise — the wrapper must
not change the behavior of the application code it wraps.
Wraps a fetch so its attempts are counted for the local diagnostics connector (M98n).
Calling this IS the opt-in: build the helper only when a devtool composition is present, and register
pluginin that application. The wrapper records that an attempt started, whether it resolved or failed, the response's status class and its time to headers — nothing else. It never reads the URL, headers, body, signal or error.Deliberate departure: a wrapped fetch that throws SYNCHRONOUSLY is rethrown synchronously, although the return type is a promise — the wrapper must not change the behavior of the application code it wraps.