Skip to content

Conversation

@kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Nov 27, 2025

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

@opentelemetry/sdk-trace-base v2 supports >= 18.19.
We cannot merge that into main.

@kirrg001 kirrg001 mentioned this pull request Nov 27, 2025
23 tasks
@aryamohanan aryamohanan added the v5 v5 release items label Nov 28, 2025
@kirrg001 kirrg001 force-pushed the bump-sdk-trace-base-v5 branch from 637603a to 4388d65 Compare November 28, 2025 07:49
// NOTE: This assignment is necessary to display the database name in the UI.
// In the backend, for OpenTelemetry, the service name is based on the OpenTelemetry span attribute service.name.
if (otelSpan.attributes && 'db.name' in otelSpan.attributes) {
otelSpan.resource._attributes['service.name'] = otelSpan.attributes['db.name'];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

otelSpan.resource._attributes no longer exists in v2.
I tested tedious manually. Works fine. I am not sure why we had to add this earlier, but seems like we don't need this anymore.

Copy link
Contributor

@aryamohanan aryamohanan Dec 3, 2025

Choose a reason for hiding this comment

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

Yes agree. This is something not needed as we already fixed the issue in wrap.js
Nice cleanup.

if (!otelSpan || !otelSpan.instrumentationLibrary) {
// TODO: remove instrumentationLibrary in next major release
// instrumentationScope was introduced in OpenTelemetry v2
if (!otelSpan || (!otelSpan.instrumentationScope && !otelSpan.instrumentationLibrary)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See open-telemetry/opentelemetry-js@97bc632

Leaving both names for now.

@kirrg001 kirrg001 marked this pull request as ready for review November 28, 2025 13:50
@kirrg001 kirrg001 requested a review from a team as a code owner November 28, 2025 13:50
@kirrg001 kirrg001 marked this pull request as draft November 28, 2025 14:10
expect(response.otelspan.instrumentationLibrary).to.be.an('object');
expect(response.otelspan.instrumentationLibrary.name).to.eql('otel-sdk-app-tracer');
expect(response.otelspan.instrumentationScope).to.be.an('object');
expect(response.otelspan.instrumentationScope.name).to.eql('otel-sdk-app-tracer');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure why this is not instrumentationLibrary 🤔

@kirrg001 kirrg001 marked this pull request as ready for review November 28, 2025 14:30
@kirrg001 kirrg001 changed the base branch from v5-release to main November 28, 2025 15:06
@kirrg001
Copy link
Contributor Author

@copilot squash all commits into one with the following single commit

fix: bumped @opentelemetry/sdk-trace-base to v2
refs https://jsw.ibm.com/browse/INSTA-66063

Copy link

Copilot AI commented Nov 28, 2025

@kirrg001 I've opened a new pull request, #2200, to work on those changes. Once the pull request is ready, I'll request review from you.

@kirrg001 kirrg001 changed the base branch from main to v5-release November 28, 2025 15:09
Copy link
Contributor

@aryamohanan aryamohanan left a comment

Choose a reason for hiding this comment

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

LGTM

@kirrg001 kirrg001 changed the base branch from v5-release to main December 4, 2025 07:20
@kirrg001 kirrg001 changed the base branch from main to v5-release December 4, 2025 07:20
@kirrg001 kirrg001 force-pushed the bump-sdk-trace-base-v5 branch from e26f4f3 to e45b5c9 Compare December 4, 2025 07:24
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2025

@kirrg001 kirrg001 merged commit cf9d7ea into v5-release Dec 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v5 v5 release items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants