Skip to content

Commit 46f78a2

Browse files
committed
remove comment
1 parent a41d39b commit 46f78a2

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

dev-packages/e2e-tests/test-applications/hono-4/tests/middleware.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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'.
178
const MIDDLEWARE_ORIGIN = 'auto.middleware.hono';
189
const OTEL_ORIGIN = 'auto.http.otel.hono';
1910

0 commit comments

Comments
 (0)