Skip to content

Commit dfd5b9f

Browse files
andreiborzaclaude
andauthored
ref(node): Remove vendored Hapi instrumentation (#22750)
## What Removes the dead OpenTelemetry `HapiInstrumentation` (and `instrumentHapi`) plus its vendored code from `@sentry/node`. Keeps `setupHapiErrorHandler`. ## Why The Hapi integration is now provided by the channel-based implementation in `@sentry/server-utils` (the default since #22501). The vendored instrumentation is no longer wired up; only the Sentry-specific error handler remains user-facing. Ref: #22346 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 45b7c96 commit dfd5b9f

7 files changed

Lines changed: 0 additions & 698 deletions

File tree

packages/node/src/integrations/tracing/hapi/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { HapiInstrumentation } from './vendored/instrumentation';
21
import { captureException, debug, getDefaultIsolationScope, getIsolationScope, SDK_VERSION } from '@sentry/core';
3-
import { generateInstrumentOnce } from '../../../otel/instrument';
42
import { ensureIsWrapped } from '../../../utils/ensureIsWrapped';
53
import { DEBUG_BUILD } from '../../../debug-build';
64
import type { Request, RequestEvent, Server } from './types';
75

8-
const INTEGRATION_NAME = 'Hapi' as const;
9-
10-
export const instrumentHapi = generateInstrumentOnce(INTEGRATION_NAME, () => new HapiInstrumentation());
11-
126
function isErrorEvent(event: unknown): event is RequestEvent {
137
return !!(event && typeof event === 'object' && 'error' in event && event.error);
148
}

packages/node/src/integrations/tracing/hapi/vendored/enums/AttributeNames.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/node/src/integrations/tracing/hapi/vendored/hapi-types.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)