Skip to content

Commit 03f60fb

Browse files
nicohrubecclaude
andauthored
ref(node): Vendor mysql instrumentation (#21016)
Vendors `@opentelemetry/instrumentation-mysql@0.64.0` into the SDK with no logic changes. Types from the `mysql` package are inlined as simplified interfaces to avoid requiring it as a dependency. Closes #20159 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3ec31dd commit 03f60fb

9 files changed

Lines changed: 773 additions & 12 deletions

File tree

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-hapi": "0.60.0",
7474
"@opentelemetry/instrumentation-http": "0.214.0",
7575
"@opentelemetry/instrumentation-mongoose": "0.60.0",
76-
"@opentelemetry/instrumentation-mysql": "0.60.0",
7776
"@opentelemetry/sql-common": "^0.41.2",
7877
"@opentelemetry/instrumentation-pg": "0.66.0",
7978
"@opentelemetry/sdk-trace-base": "^2.6.1",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MySQLInstrumentation } from '@opentelemetry/instrumentation-mysql';
1+
import { MySQLInstrumentation } from './vendored/instrumentation';
22
import type { IntegrationFn } from '@sentry/core';
33
import { defineIntegration } from '@sentry/core';
44
import { generateInstrumentOnce } from '@sentry/node-core';
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* NOTICE from the Sentry authors:
17+
* - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-mysql
18+
* - Upstream version: @opentelemetry/instrumentation-mysql@0.64.0
19+
*/
20+
/* eslint-disable */
21+
22+
// Mysql specific attributes not covered by semantic conventions
23+
export enum AttributeNames {
24+
MYSQL_VALUES = 'db.mysql.values',
25+
}

0 commit comments

Comments
 (0)