Skip to content

Commit 75be960

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 2516805 commit 75be960

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
@@ -159,7 +159,8 @@
159159
"**/integrations/tracing/amqplib/vendored/**/*.ts",
160160
"**/integrations/tracing/prisma/vendored/**/*.ts",
161161
"**/integrations/tracing/graphql/vendored/**/*.ts",
162-
"**/integrations/tracing/postgres/vendored/**/*.ts"
162+
"**/integrations/tracing/postgres/vendored/**/*.ts",
163+
"**/integrations/tracing/fastify/vendored/**/*.ts"
163164
],
164165
"rules": {
165166
"typescript/no-explicit-any": "off"

packages/node/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"@opentelemetry/sql-common": "^0.41.2",
7373
"@opentelemetry/sdk-trace-base": "^2.6.1",
7474
"@opentelemetry/semantic-conventions": "^1.40.0",
75-
"@fastify/otel": "0.18.0",
7675
"@sentry/core": "10.53.1",
7776
"@sentry/node-core": "10.53.1",
7877
"@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)