File tree Expand file tree Collapse file tree
dev-packages/e2e-tests/test-applications/hono-4/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,6 @@ import { APP_NAME, isNode } from './constants';
55
66// In Node, @sentry/node/preload eagerly activates the OTel HonoInstrumentation,
77// which wraps all Hono instance methods at construction time via WrappedHono.
8- //
9- // For the *root app*, patchAppUse's Proxy wraps handlers before OTel does
10- // (Proxy → OTel → Hono internals), so the inner Sentry span preserves the
11- // original function name and has origin 'auto.middleware.hono'.
12- //
13- // For *sub-apps*, OTel wraps handlers at registration time (inside WrappedHono
14- // constructor) before patchRoute runs at mount time. So patchRoute sees anonymous
15- // OTel wrappers. The OTel spans carry the correct function names with origin
16- // 'auto.http.otel.hono'.
178const MIDDLEWARE_ORIGIN = 'auto.middleware.hono' ;
189const OTEL_ORIGIN = 'auto.http.otel.hono' ;
1910
You can’t perform that action at this time.
0 commit comments