MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / earlyPatchHono

Function earlyPatchHono

packages/hono/src/shared/applyPatches.ts:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 * Collecting sub-app references early ensures nothing is missed if sub-apps are mounted synchronously before the `sentry()` middleware is registered.
15 */
16export function earlyPatchHono(): void {
17 _routeHook ??= installRouteHookOnPrototype();
18}
19
20/**
21 * Instruments a Hono app instance for Sentry tracing in middleware and route handlers.

Callers 5

index.bun.tsFile · 0.90
index.node.tsFile · 0.90
index.deno.tsFile · 0.90

Calls 1

Tested by

no test coverage detected