Skip to content

Commit c392487

Browse files
nicohrubecclaude
andauthored
ref(node): Vendor kafkajs instrumentation (#21005)
Vendors `@opentelemetry/instrumentation-kafkajs` into the SDK with no logic changes. Types from kafkajs are inlined as simplified interfaces to avoid requiring the package as a dependency. Closes #20151 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 925ce06 commit c392487

10 files changed

Lines changed: 1077 additions & 10 deletions

File tree

.oxlintrc.base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
"**/integrations/tracing/knex/vendored/**/*.ts",
149149
"**/integrations/tracing/mongo/vendored/**/*.ts",
150150
"**/integrations/tracing/connect/vendored/**/*.ts",
151+
"**/integrations/tracing/kafka/vendored/**/*.ts",
151152
"**/integrations/tracing/tedious/vendored/**/*.ts"
152153
],
153154
"rules": {

packages/node/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"@opentelemetry/instrumentation-graphql": "0.62.0",
7373
"@opentelemetry/instrumentation-hapi": "0.60.0",
7474
"@opentelemetry/instrumentation-http": "0.214.0",
75-
"@opentelemetry/instrumentation-kafkajs": "0.23.0",
7675
"@opentelemetry/instrumentation-koa": "0.62.0",
7776
"@opentelemetry/instrumentation-mongoose": "0.60.0",
7877
"@opentelemetry/instrumentation-mysql": "0.60.0",

packages/node/src/integrations/tracing/kafka.ts renamed to packages/node/src/integrations/tracing/kafka/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { KafkaJsInstrumentation } from '@opentelemetry/instrumentation-kafkajs';
1+
import { KafkaJsInstrumentation } from './vendored/instrumentation';
22
import type { IntegrationFn } from '@sentry/core';
33
import { defineIntegration } from '@sentry/core';
44
import { addOriginToSpan, generateInstrumentOnce } from '@sentry/node-core';

0 commit comments

Comments
 (0)