Skip to content

fix(node): Restore eslint-disable in vendored tedious instrumentation#21615

Closed
andreiborza wants to merge 1 commit into
developfrom
fix/tedious-no-deprecated-lint
Closed

fix(node): Restore eslint-disable in vendored tedious instrumentation#21615
andreiborza wants to merge 1 commit into
developfrom
fix/tedious-no-deprecated-lint

Conversation

@andreiborza

Copy link
Copy Markdown
Member

The Lint CI job (typescript-eslint(no-deprecated)) has been failing on develop since #21598. It was auto-filed as a flaky test, but the failure is deterministic.

Root cause: The "Streamline tedious instrumentation" refactor (#21598) removed the /* eslint-disable */ directive from packages/node/src/integrations/tracing/tedious/vendored/instrumentation.ts while keeping its imports of the deprecated vendored semconv constants (ATTR_DB_SYSTEM, ATTR_DB_NAME, ATTR_DB_USER, ATTR_DB_STATEMENT, ATTR_DB_SQL_TABLE, ATTR_NET_PEER_NAME, ATTR_NET_PEER_PORT). Those constants carry @deprecated JSDoc tags copied verbatim from upstream OpenTelemetry, so without the directive the no-deprecated rule fires on every usage.

This restores the directive after the header block, matching the documented vendoring convention and every other vendored instrumentation file (mysql, knex, postgres, hapi, mongo). The deliberate use of the legacy db.*/net.* attribute names is unchanged.

Fixes #21614

The "Streamline tedious instrumentation" refactor (#21598) dropped the
`/* eslint-disable */` directive from the vendored instrumentation file
while keeping its imports of the deprecated semconv constants
(`ATTR_DB_SYSTEM`, `ATTR_DB_NAME`, etc.). Without the directive, the
`typescript-eslint(no-deprecated)` rule fires on every usage, breaking
the Lint CI job.

Restore the directive after the header block, matching the documented
vendoring convention and every other vendored instrumentation file
(mysql, knex, postgres, hapi, mongo).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@andreiborza andreiborza requested a review from a team as a code owner June 17, 2026 15:13
@andreiborza andreiborza requested review from JPeer264 and mydea and removed request for a team June 17, 2026 15:13
@andreiborza

Copy link
Copy Markdown
Member Author

Duplicate of #21616

@andreiborza andreiborza marked this as a duplicate of #21616 Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Flaky CI]: Lint - typescript-eslint(no-deprecated)

1 participant