Skip to content

fix: bumped @opentelemetry/instrumentation-tedious from 0.28.0 to 0.40.0 - #2679

Draft
abhilash-sivan wants to merge 7 commits into
mainfrom
fix-tedious-esm
Draft

fix: bumped @opentelemetry/instrumentation-tedious from 0.28.0 to 0.40.0#2679
abhilash-sivan wants to merge 7 commits into
mainfrom
fix-tedious-esm

Conversation

@abhilash-sivan

@abhilash-sivan abhilash-sivan commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

refs https://jsw.ibm.com/browse/INSTA-97288

Summary

  1. Updated @opentelemetry/instrumentation-tedious from 0.28.0 to 0.40.0.
  2. Updated import-in-the-middle from 2.0.5 to 3.3.2 to maintain compatibility with the newer OpenTelemetry instrumentation.

Reason

@opentelemetry/instrumentation-tedious@0.40.0 depends on a newer @opentelemetry/instrumentation version that requires import-in-the-middle@^3. Keeping import-in-the-middle@2.x caused npm to install multiple IITM versions, which broke ESM module interception and prevented Tedious instrumentation from patching correctly.

Fix

Pinned import-in-the-middle to 3.3.2, ensuring all instrumentation uses a single shared IITM instance, restoring ESM tracing while remaining compatible with the updated OpenTelemetry instrumentation.

PR body

  • bumped @opentelemetry/instrumentation-tedious from 0.28.0 to 0.40.0
  • bumped import-in-the-middle from 2.0.5 to 3.3.2

@abhilash-sivan
abhilash-sivan force-pushed the fix-tedious-esm branch 2 times, most recently from 6dafe24 to b5cbce4 Compare July 31, 2026 11:36
expect(span.data.tags['db.user']).to.eql('admin@instana@nodejs-team-db-server');
expect(span.data.tags['db.statement']).to.eql(expectedStatement);
expect(span.data.tags['net.peer.name']).to.eql('nodejs-team-db-server.database.windows.net');
expect(span.data.tags['db.system.name']).to.eql('microsoft.sql_server');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed assertions to adapt new semconv

The stable OpenTelemetry semantic conventions (v1.33.0+) are supported starting with @opentelemetry/instrumentation-tedious v0.39.0. See the Semantic Conventions section

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.

1 participant