Skip to content

refactor(span)!: gate addLink(spanContext, attributes) legacy overload off in v6#8319

Merged
BridgeAR merged 6 commits into
masterfrom
BridgeAR/2026-05-07-gate-addlink-overload-v6
May 12, 2026
Merged

refactor(span)!: gate addLink(spanContext, attributes) legacy overload off in v6#8319
BridgeAR merged 6 commits into
masterfrom
BridgeAR/2026-05-07-gate-addlink-overload-v6

Conversation

@BridgeAR

@BridgeAR BridgeAR commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

Span.addLink (both the OpenTracing API and the OpenTelemetry bridge) no
longer accepts the positional (spanContext, attributes) shape on v6; only
addLink({ context, attributes }) does. v5 keeps both shapes. The runtime
branch is gated with DD_MAJOR < 6 and the duplicate TS overloads on Span
and the OTel mirror are dropped. Existing tests that called the legacy form
switch to the canonical shape; the one OTel-bridge test specifically
exercising the deprecated shape is gated with DD_MAJOR < 6.

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 5.82 MB
Deduped: 6.66 MB
No deduping: 6.66 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.1 | 82.56 kB | 817.39 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.01%. Comparing base (4ab60e2) to head (5baf8db).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8319   +/-   ##
=======================================
  Coverage   90.01%   90.01%           
=======================================
  Files         838      838           
  Lines       45046    45048    +2     
  Branches     8394     8394           
=======================================
+ Hits        40547    40550    +3     
+ Misses       4499     4498    -1     
Flag Coverage Δ
aiguard-integration-active 40.68% <33.33%> (+<0.01%) ⬆️
aiguard-integration-latest 40.63% <33.33%> (+<0.01%) ⬆️
aiguard-integration-maintenance 40.68% <33.33%> (+<0.01%) ⬆️
aiguard-macos 35.40% <50.00%> (-0.08%) ⬇️
aiguard-ubuntu 35.50% <50.00%> (-0.08%) ⬇️
aiguard-windows 35.31% <50.00%> (-0.08%) ⬇️
apm-capabilities-tracing-macos 49.06% <50.00%> (+<0.01%) ⬆️
apm-capabilities-tracing-ubuntu-active 49.08% <50.00%> (-0.18%) ⬇️
apm-capabilities-tracing-ubuntu-latest 49.05% <50.00%> (+<0.01%) ⬆️
apm-capabilities-tracing-ubuntu-maintenance 49.08% <50.00%> (-0.18%) ⬇️
apm-capabilities-tracing-ubuntu-oldest 49.25% <50.00%> (+<0.01%) ⬆️
apm-capabilities-tracing-windows 48.88% <50.00%> (-0.20%) ⬇️
apm-integrations-aerospike-18-gte.5.2.0 34.47% <50.00%> (-0.08%) ⬇️
apm-integrations-aerospike-20-gte.5.5.0 34.49% <50.00%> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.5.12.1 34.49% <50.00%> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.6.0.0 34.49% <50.00%> (-0.08%) ⬇️
apm-integrations-aerospike-eol- 34.39% <50.00%> (-0.08%) ⬇️
apm-integrations-child-process 35.45% <50.00%> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-18 41.27% <100.00%> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-20 41.28% <100.00%> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-22 41.28% <100.00%> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-24 41.22% <100.00%> (-0.09%) ⬇️
apm-integrations-couchbase-18 34.64% <50.00%> (-0.08%) ⬇️
apm-integrations-couchbase-eol 34.75% <50.00%> (+<0.01%) ⬆️
apm-integrations-dns 34.34% <50.00%> (-0.08%) ⬇️
apm-integrations-elasticsearch 35.11% <33.33%> (-0.08%) ⬇️
apm-integrations-http-latest 42.26% <33.33%> (-0.07%) ⬇️
apm-integrations-http-maintenance 42.32% <33.33%> (-0.07%) ⬇️
apm-integrations-http-oldest 42.33% <33.33%> (-0.07%) ⬇️
apm-integrations-http2 39.74% <50.00%> (-0.08%) ⬇️
apm-integrations-kafkajs-latest 41.15% <100.00%> (-0.12%) ⬇️
apm-integrations-kafkajs-oldest 41.21% <100.00%> (-0.08%) ⬇️
apm-integrations-net 35.03% <50.00%> (-0.08%) ⬇️
apm-integrations-next-11.1.4 29.14% <33.33%> (-0.07%) ⬇️
apm-integrations-next-13.2.0 30.83% <33.33%> (-0.08%) ⬇️
apm-integrations-next-gte.10.2.0.and.lt.11 25.41% <ø> (ø)
apm-integrations-next-gte.11.0.0.and.lt.13 30.84% <33.33%> (-0.08%) ⬇️
apm-integrations-next-gte.13.0.0.and.lt.14 31.08% <33.33%> (-0.08%) ⬇️
apm-integrations-next-gte.14.0.0.and.lte.14.2.6 30.90% <33.33%> (-0.08%) ⬇️
apm-integrations-next-gte.14.2.7.and.lt.15 30.90% <33.33%> (-0.08%) ⬇️
apm-integrations-next-gte.15.0.0 30.96% <33.33%> (-0.08%) ⬇️
apm-integrations-oracledb 34.76% <33.33%> (-0.08%) ⬇️
apm-integrations-prisma-18-gte.6.16.0.and.lt.7.0.0 36.73% <33.33%> (-0.08%) ⬇️
apm-integrations-prisma-latest-all 35.55% <33.33%> (-0.08%) ⬇️
apm-integrations-restify 36.51% <33.33%> (-0.08%) ⬇️
apm-integrations-sharedb 34.01% <50.00%> (-0.08%) ⬇️
apm-integrations-tedious 34.56% <33.33%> (-0.08%) ⬇️
appsec-express 51.99% <33.33%> (-0.09%) ⬇️
appsec-fastify 48.70% <33.33%> (-0.06%) ⬇️
appsec-graphql 48.93% <33.33%> (-0.06%) ⬇️
appsec-integration-active 36.97% <33.33%> (+<0.01%) ⬆️
appsec-integration-latest 36.94% <33.33%> (+<0.01%) ⬆️
appsec-integration-maintenance 36.96% <33.33%> (+<0.01%) ⬆️
appsec-integration-oldest 36.96% <33.33%> (+<0.01%) ⬆️
appsec-kafka 41.59% <33.33%> (-0.03%) ⬇️
appsec-ldapjs 40.77% <33.33%> (-0.07%) ⬇️
appsec-lodash 40.88% <33.33%> (-0.07%) ⬇️
appsec-macos 55.82% <33.33%> (-0.06%) ⬇️
appsec-mongodb-core 45.20% <33.33%> (-0.07%) ⬇️
appsec-mongoose 46.04% <33.33%> (-0.07%) ⬇️
appsec-mysql 48.08% <33.33%> (-0.06%) ⬇️
appsec-next-latest-11.1.4 29.25% <33.33%> (-0.07%) ⬇️
appsec-next-latest-13.2.0 30.97% <33.33%> (-0.08%) ⬇️
appsec-next-latest-gte.10.2.0.and.lt.11 29.46% <ø> (ø)
appsec-next-latest-gte.11.0.0.and.lt.13 30.95% <33.33%> (-0.08%) ⬇️
appsec-next-latest-gte.13.0.0.and.lt.14 31.20% <33.33%> (-0.09%) ⬇️
appsec-next-latest-gte.14.0.0.and.lte.14.2.6 31.04% <33.33%> (-0.08%) ⬇️
appsec-next-latest-gte.14.2.7.and.lt.15 31.04% <33.33%> (-0.08%) ⬇️
appsec-next-latest-gte.15.0.0 31.04% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-11.1.4 29.26% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-13.2.0 31.25% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-gte.10.2.0.and.lt.11 29.58% <ø> (ø)
appsec-next-oldest-gte.11.0.0.and.lt.13 30.97% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-gte.13.0.0.and.lt.14 31.43% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-gte.14.0.0.and.lte.14.2.6 31.28% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-gte.14.2.7.and.lt.15 31.28% <33.33%> (-0.08%) ⬇️
appsec-next-oldest-gte.15.0.0 31.28% <33.33%> (-0.08%) ⬇️
appsec-node-serialize 40.10% <33.33%> (-0.07%) ⬇️
appsec-passport 43.81% <33.33%> (-0.07%) ⬇️
appsec-postgres 47.65% <33.33%> (-0.06%) ⬇️
appsec-sourcing 39.45% <33.33%> (-0.07%) ⬇️
appsec-stripe 41.61% <33.33%> (-0.06%) ⬇️
appsec-template 40.25% <33.33%> (-0.07%) ⬇️
appsec-ubuntu 55.90% <33.33%> (-0.06%) ⬇️
appsec-windows 55.75% <33.33%> (-0.05%) ⬇️
debugger-ubuntu-active 43.31% <33.33%> (+<0.01%) ⬆️
debugger-ubuntu-latest 43.26% <33.33%> (+<0.01%) ⬆️
debugger-ubuntu-maintenance 43.32% <33.33%> (+<0.01%) ⬆️
debugger-ubuntu-oldest 43.76% <33.33%> (+<0.01%) ⬆️
instrumentations-instrumentation-bluebird 29.37% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-body-parser 37.04% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 34.94% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-cookie-parser 31.20% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-express 31.41% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 31.32% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-express-session 36.74% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-fs 29.06% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-generic-pool 30.22% <ø> (ø)
instrumentations-instrumentation-http 36.40% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-knex 29.35% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-light-my-request 36.67% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 30.46% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-multer 36.83% <33.33%> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 34.97% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-passport 40.47% <33.33%> (-0.07%) ⬇️
instrumentations-instrumentation-passport-http 40.25% <33.33%> (-0.07%) ⬇️
instrumentations-instrumentation-passport-local 40.73% <33.33%> (-0.07%) ⬇️
instrumentations-instrumentation-pg 34.55% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-promise 29.31% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-promise-js 29.32% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-q 29.34% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-url 29.31% <50.00%> (-0.08%) ⬇️
instrumentations-instrumentation-when 29.33% <50.00%> (-0.08%) ⬇️
instrumentations-integration-esbuild-active 19.49% <33.33%> (+<0.01%) ⬆️
instrumentations-integration-esbuild-latest 19.47% <33.33%> (+<0.01%) ⬆️
instrumentations-integration-esbuild-maintenance 19.49% <33.33%> (+<0.01%) ⬆️
instrumentations-integration-esbuild-oldest 19.48% <33.33%> (+<0.01%) ⬆️
llmobs-ai 37.86% <50.00%> (-0.08%) ⬇️
llmobs-anthropic 37.91% <33.33%> (-0.08%) ⬇️
llmobs-bedrock 36.62% <33.33%> (-0.07%) ⬇️
llmobs-google-genai 36.93% <33.33%> (-0.08%) ⬇️
llmobs-langchain 36.62% <33.33%> (-0.07%) ⬇️
llmobs-openai 40.66% <33.33%> (-0.07%) ⬇️
llmobs-sdk-active 45.51% <50.00%> (-0.08%) ⬇️
llmobs-sdk-latest 45.44% <50.00%> (-0.08%) ⬇️
llmobs-sdk-maintenance 45.51% <50.00%> (-0.08%) ⬇️
llmobs-sdk-oldest 45.49% <50.00%> (-0.08%) ⬇️
llmobs-vertex-ai 37.08% <33.33%> (-0.08%) ⬇️
openfeature-macos 38.03% <33.33%> (-0.06%) ⬇️
openfeature-ubuntu 38.16% <33.33%> (+<0.01%) ⬆️
openfeature-unit-active 49.12% <ø> (ø)
openfeature-unit-latest 48.96% <ø> (ø)
openfeature-unit-maintenance 49.12% <ø> (ø)
openfeature-unit-oldest 49.12% <ø> (ø)
openfeature-windows 37.96% <33.33%> (+<0.01%) ⬆️
platform-core 37.27% <ø> (ø)
platform-esbuild 40.61% <ø> (ø)
platform-instrumentations-misc 30.84% <33.33%> (+<0.01%) ⬆️
platform-integration-active 47.12% <33.33%> (+<0.01%) ⬆️
platform-integration-latest 47.04% <33.33%> (+<0.01%) ⬆️
platform-integration-maintenance 47.14% <33.33%> (+<0.01%) ⬆️
platform-integration-oldest 47.30% <33.33%> (+<0.01%) ⬆️
platform-shimmer 42.29% <ø> (ø)
platform-unit-guardrails 36.12% <ø> (ø)
platform-webpack 20.62% <33.33%> (+<0.01%) ⬆️
plugins-azure-durable-functions 37.09% <25.00%> (+<0.01%) ⬆️
plugins-azure-event-hubs 34.95% <100.00%> (-0.01%) ⬇️
plugins-azure-service-bus 35.41% <75.00%> (-0.01%) ⬇️
plugins-bullmq 40.29% <50.00%> (+0.02%) ⬆️
plugins-cassandra 34.77% <33.33%> (-0.21%) ⬇️
plugins-cookie 29.37% <ø> (ø)
plugins-cookie-parser 29.17% <ø> (ø)
plugins-crypto 27.69% <ø> (ø)
plugins-dd-trace-api 34.85% <100.00%> (-0.10%) ⬇️
plugins-express-mongo-sanitize 29.28% <ø> (ø)
plugins-express-session 29.13% <ø> (ø)
plugins-fastify 38.80% <33.33%> (-0.08%) ⬇️
plugins-fetch 35.14% <33.33%> (-0.08%) ⬇️
plugins-fs 35.22% <50.00%> (-0.08%) ⬇️
plugins-generic-pool 28.31% <ø> (ø)
plugins-google-cloud-pubsub 42.50% <100.00%> (-0.08%) ⬇️
plugins-grpc 37.57% <33.33%> (-0.08%) ⬇️
plugins-handlebars 29.32% <ø> (ø)
plugins-hapi 36.71% <33.33%> (-0.08%) ⬇️
plugins-hono 36.99% <33.33%> (-0.08%) ⬇️
plugins-ioredis 35.34% <50.00%> (-0.08%) ⬇️
plugins-knex 28.89% <ø> (ø)
plugins-langgraph 34.57% <50.00%> (-0.08%) ⬇️
plugins-ldapjs 26.86% <ø> (ø)
plugins-light-my-request 28.70% <ø> (ø)
plugins-limitd-client 29.61% <50.00%> (-0.08%) ⬇️
plugins-lodash 28.41% <ø> (ø)
plugins-mariadb 36.25% <50.00%> (-0.02%) ⬇️
plugins-memcached 34.96% <50.00%> (-0.08%) ⬇️
plugins-microgateway-core 35.84% <33.33%> (-0.08%) ⬇️
plugins-modelcontextprotocol-sdk 33.87% <50.00%> (-0.08%) ⬇️
plugins-moleculer 37.66% <33.33%> (-0.08%) ⬇️
plugins-mongodb 36.17% <33.33%> (-0.08%) ⬇️
plugins-mongodb-core 35.91% <50.00%> (-0.08%) ⬇️
plugins-mongoose 35.65% <33.33%> (-0.18%) ⬇️
plugins-multer 29.13% <ø> (ø)
plugins-mysql 35.98% <50.00%> (+0.05%) ⬆️
plugins-mysql2 36.06% <50.00%> (-0.08%) ⬇️
plugins-node-serialize 29.42% <ø> (ø)
plugins-opensearch 34.65% <33.33%> (-0.08%) ⬇️
plugins-passport-http 29.14% <ø> (ø)
plugins-pino 31.31% <50.00%> (-0.08%) ⬇️
plugins-postgres 34.10% <50.00%> (-0.08%) ⬇️
plugins-process 27.69% <ø> (ø)
plugins-pug 29.37% <ø> (ø)
plugins-redis 35.33% <50.00%> (-0.14%) ⬇️
plugins-router 39.14% <33.33%> (-0.08%) ⬇️
plugins-sequelize 28.09% <ø> (ø)
plugins-test-and-upstream-amqp10 35.07% <50.00%> (-0.08%) ⬇️
plugins-test-and-upstream-amqplib 40.34% <50.00%> (-0.11%) ⬇️
plugins-test-and-upstream-apollo 36.05% <33.33%> (-0.07%) ⬇️
plugins-test-and-upstream-avsc 34.54% <50.00%> (-0.08%) ⬇️
plugins-test-and-upstream-bunyan 30.68% <50.00%> (-0.08%) ⬇️
plugins-test-and-upstream-connect 37.37% <33.33%> (-0.08%) ⬇️
plugins-test-and-upstream-graphql 36.92% <50.00%> (-0.11%) ⬇️
plugins-test-and-upstream-koa 36.97% <33.33%> (-0.08%) ⬇️
plugins-test-and-upstream-protobufjs 34.75% <50.00%> (-0.08%) ⬇️
plugins-test-and-upstream-rhea 40.38% <50.00%> (-0.08%) ⬇️
plugins-undici 35.86% <33.33%> (-0.08%) ⬇️
plugins-url 27.69% <ø> (ø)
plugins-valkey 34.98% <50.00%> (-0.08%) ⬇️
plugins-vm 27.69% <ø> (ø)
plugins-winston 31.19% <33.33%> (-0.08%) ⬇️
plugins-ws 38.48% <66.66%> (-0.07%) ⬇️
profiling-macos 42.83% <33.33%> (-0.01%) ⬇️
profiling-ubuntu 43.19% <33.33%> (-0.06%) ⬇️
profiling-windows 40.10% <33.33%> (-0.06%) ⬇️
serverless-aws-sdk-latest-aws-sdk 34.82% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-bedrockruntime 33.18% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-client 24.82% <ø> (ø)
serverless-aws-sdk-latest-dynamodb 35.74% <66.66%> (-0.12%) ⬇️
serverless-aws-sdk-latest-eventbridge 28.86% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-kinesis 38.69% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-lambda 35.97% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-s3 33.94% <66.66%> (-0.07%) ⬇️
serverless-aws-sdk-latest-serverless-peer-service 40.05% <66.66%> (-0.08%) ⬇️
serverless-aws-sdk-latest-sns 39.89% <33.33%> (+0.04%) ⬆️
serverless-aws-sdk-latest-sqs 39.06% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-stepfunctions 34.55% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-latest-util 48.92% <ø> (ø)
serverless-aws-sdk-oldest-aws-sdk 34.91% <33.33%> (-0.06%) ⬇️
serverless-aws-sdk-oldest-bedrockruntime 33.45% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-client 25.17% <ø> (ø)
serverless-aws-sdk-oldest-dynamodb 35.86% <66.66%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-eventbridge 28.91% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-kinesis 38.82% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-lambda 36.05% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-s3 34.01% <66.66%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-serverless-peer-service 40.11% <66.66%> (-0.08%) ⬇️
serverless-aws-sdk-oldest-sns 39.98% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-sqs 38.95% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-stepfunctions 34.62% <33.33%> (-0.07%) ⬇️
serverless-aws-sdk-oldest-util 49.23% <ø> (ø)
serverless-azure-functions-eventhubs 38.56% <80.00%> (-0.01%) ⬇️
serverless-azure-functions-servicebus 38.62% <80.00%> (-0.01%) ⬇️
serverless-lambda 34.52% <50.00%> (-0.08%) ⬇️
test-optimization-cucumber-latest-7.0.0 50.37% <33.33%> (+0.12%) ⬆️
test-optimization-cucumber-latest-latest 53.07% <33.33%> (+0.12%) ⬆️
test-optimization-cucumber-oldest-7.0.0 50.40% <33.33%> (+0.12%) ⬆️
test-optimization-cypress-latest-12.0.0-commonJS 48.76% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-latest-12.0.0-esm 48.79% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-latest-14.5.4-commonJS 48.82% <33.33%> (+0.29%) ⬆️
test-optimization-cypress-latest-14.5.4-esm 48.63% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-commonJS 49.10% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-esm 49.13% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-commonJS 48.79% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-esm 48.82% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-commonJS 48.64% <33.33%> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-esm 48.67% <33.33%> (+0.07%) ⬆️
test-optimization-jest-latest-latest 54.82% <33.33%> (+0.08%) ⬆️
test-optimization-jest-latest-oldest 53.64% <33.33%> (+0.08%) ⬆️
test-optimization-jest-oldest-latest 54.83% <33.33%> (+0.08%) ⬆️
test-optimization-jest-oldest-oldest 53.57% <33.33%> (+0.08%) ⬆️
test-optimization-mocha-latest-latest 53.37% <33.33%> (+0.09%) ⬆️
test-optimization-mocha-latest-oldest 50.98% <33.33%> (+0.09%) ⬆️
test-optimization-mocha-oldest-latest 53.43% <33.33%> (+0.09%) ⬆️
test-optimization-mocha-oldest-oldest 50.92% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-latest-latest-playwright-active-test-span 44.30% <33.33%> (+0.28%) ⬆️
test-optimization-playwright-latest-latest-playwright-atr 43.07% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-latest-latest-playwright-efd 43.49% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-latest-latest-playwright-final-status 43.51% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-latest-latest-playwright-impacted-tests 43.00% <33.33%> (+<0.01%) ⬆️
test-optimization-playwright-latest-latest-playwright-reporting 42.94% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-latest-latest-playwright-test-management 44.72% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-latest-oldest-playwright-active-test-span 44.36% <33.33%> (+0.28%) ⬆️
test-optimization-playwright-latest-oldest-playwright-atr 43.28% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-latest-oldest-playwright-efd 43.55% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-final-status 43.57% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-impacted-tests 43.05% <33.33%> (+<0.01%) ⬆️
test-optimization-playwright-latest-oldest-playwright-reporting 43.01% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-test-management 44.79% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-active-test-span 44.31% <33.33%> (+0.26%) ⬆️
test-optimization-playwright-oldest-latest-playwright-atr 43.10% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-efd 43.50% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-oldest-latest-playwright-final-status 43.55% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-impacted-tests 43.04% <33.33%> (+<0.01%) ⬆️
test-optimization-playwright-oldest-latest-playwright-reporting 42.95% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-oldest-latest-playwright-test-management 44.73% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-active-test-span 44.40% <33.33%> (+0.28%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-atr 43.32% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-efd 43.56% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-final-status 43.60% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-impacted-tests 43.08% <33.33%> (+<0.01%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-reporting 43.02% <33.33%> (+0.09%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-test-management 44.81% <33.33%> (+0.11%) ⬆️
test-optimization-selenium-latest 45.67% <33.33%> (+0.07%) ⬆️
test-optimization-selenium-oldest 45.17% <33.33%> (+0.07%) ⬆️
test-optimization-testopt-active 46.98% <33.33%> (+0.13%) ⬆️
test-optimization-testopt-latest 46.94% <33.33%> (+0.13%) ⬆️
test-optimization-testopt-maintenance 46.98% <33.33%> (+0.13%) ⬆️
test-optimization-testopt-oldest 47.85% <33.33%> (+0.15%) ⬆️
test-optimization-vitest-latest 51.03% <33.33%> (+0.11%) ⬆️
test-optimization-vitest-oldest 48.04% <33.33%> (+0.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented May 7, 2026

Copy link
Copy Markdown

Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 1 Test failed

Plugin aerospike with aerospike >=4.0.0 <5.2.0 (4.0.0) without configuration "before all" hook in "without configuration" from without configuration   View in Datadog   (Fix with Cursor)
Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/dd-trace-js/dd-trace-js/packages/datadog-plugin-aerospike/test/index.spec.js)

Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/dd-trace-js/dd-trace-js/packages/datadog-plugin-aerospike/test/index.spec.js)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 80.00%
Overall Coverage: 86.81% (-0.01%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5baf8db | Docs | Datadog PR Page | Give us feedback!

Comment thread index.d.ts
* @param {Object} attributes An optional key value pair of arbitrary values.
* @returns {void}
*/
addLink (context: SpanContext, attributes?: Object): void;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Needs a review from @zacharycmontoya, if we have a rule how these should be handled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if we have a rule how these should be handled.

What do you mean? I think what you're doing is fine, as it's been marked as deprecated in the previous version and in the new version we are removing the API

@BridgeAR
BridgeAR marked this pull request as ready for review May 8, 2026 10:57
@BridgeAR
BridgeAR requested review from a team as code owners May 8, 2026 10:57
@BridgeAR
BridgeAR requested review from khanayan123 and removed request for a team May 8, 2026 10:57
@BridgeAR

BridgeAR commented May 8, 2026

Copy link
Copy Markdown
Member Author

System tests need an update

Comment thread MIGRATING.md Outdated
BridgeAR added a commit that referenced this pull request May 9, 2026
v6 has not shipped yet, so the unqualified heading suggested a
released migration.

Refs: #8319 (comment)
@pr-commenter

pr-commenter Bot commented May 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-12 16:04:12

Comparing candidate commit 5baf8db in PR branch BridgeAR/2026-05-07-gate-addlink-overload-v6 with baseline commit 4ab60e2 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1509 metrics, 84 unstable metrics.

BridgeAR added 3 commits May 9, 2026 20:10
…d off in v6

v5 keeps the OpenTracing-style positional shape; v6 only accepts `addLink({ context, attributes })` on both the OpenTracing `Span` and the OpenTelemetry bridge. Tests that exercised the legacy form switch to the canonical shape (works on both versions) or are gated with `DD_MAJOR < 6`.
`addLink(spanContext, attrs)` no longer works on v6 — the legacy
positional overload now TypeErrors on `context._ddContext`. Several
plugins (`kafkajs`, `google-cloud-pubsub`, `azure-*`), the OTel
`addSpanPointer` helper, and the `dd-trace-api` plugin spec still
passed that shape. They switch to `addLink({ context, attributes })`,
which also works on v5. `docs/test.ts` drops the two legacy-form
lines that no longer compile against the updated type definitions, and
the `version` import in `opentracing/span.js` moves above
`./span_context` to satisfy `import/order`. A `DD_MAJOR < 6`-gated
regression test on the OpenTracing `Span` pins the legacy v5 path so
v5 coverage stays after the canonical-only conversion in the
surrounding tests.
v6 has not shipped yet, so the unqualified heading suggested a
released migration.

Refs: #8319 (comment)
@BridgeAR
BridgeAR force-pushed the BridgeAR/2026-05-07-gate-addlink-overload-v6 branch from 400e8f7 to 005c2dc Compare May 9, 2026 18:12
Comment thread MIGRATING.md
@BridgeAR BridgeAR removed the blocked label May 12, 2026

@zacharycmontoya zacharycmontoya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes look good to me. I support aligning with the OTel AddLink method signature that takes a single Link argument

@BridgeAR
BridgeAR merged commit 9428253 into master May 12, 2026
1409 of 1413 checks passed
@BridgeAR
BridgeAR deleted the BridgeAR/2026-05-07-gate-addlink-overload-v6 branch May 12, 2026 16:07
@rochdev rochdev added this to the 6.0.0 milestone May 27, 2026
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants