Skip to content

Commit fe9e876

Browse files
nicohrubecclaude
andcommitted
ref(node): Vendor @fastify/otel
Vendors `@fastify/otel@0.18.1` into the SDK, removing the runtime dependency. The source was converted from JavaScript to TypeScript with minimal type annotations. The `ignorePaths` / `minimatch` code path was removed as it is not used by the Sentry integration. Closes #20162 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f1723da commit fe9e876

5 files changed

Lines changed: 511 additions & 41 deletions

File tree

.oxlintrc.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@
158158
"**/integrations/tracing/mongoose/vendored/**/*.ts",
159159
"**/integrations/tracing/amqplib/vendored/**/*.ts",
160160
"**/integrations/tracing/prisma/vendored/**/*.ts",
161-
"**/integrations/tracing/graphql/vendored/**/*.ts"
161+
"**/integrations/tracing/graphql/vendored/**/*.ts",
162+
"**/integrations/tracing/fastify/vendored/**/*.ts"
162163
],
163164
"rules": {
164165
"typescript/no-explicit-any": "off"

packages/node/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"@opentelemetry/instrumentation-pg": "0.66.0",
7474
"@opentelemetry/sdk-trace-base": "^2.6.1",
7575
"@opentelemetry/semantic-conventions": "^1.40.0",
76-
"@fastify/otel": "0.18.0",
7776
"@sentry/core": "10.53.1",
7877
"@sentry/node-core": "10.53.1",
7978
"@sentry/opentelemetry": "10.53.1",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as diagnosticsChannel from 'node:diagnostics_channel';
2-
import { FastifyOtelInstrumentation } from '@fastify/otel';
2+
import { FastifyOtelInstrumentation } from './vendored/instrumentation';
33
import type { Instrumentation, InstrumentationConfig } from '@opentelemetry/instrumentation';
44
import type { IntegrationFn, Span } from '@sentry/core';
55
import {

0 commit comments

Comments
 (0)