Skip to content

fix(otel): OTel updateName now updates the Datadog span's resource name#8864

Closed
zacharycmontoya wants to merge 6 commits into
masterfrom
zach.montoya/fix-otel-trace
Closed

fix(otel): OTel updateName now updates the Datadog span's resource name#8864
zacharycmontoya wants to merge 6 commits into
masterfrom
zach.montoya/fix-otel-trace

Conversation

@zacharycmontoya

@zacharycmontoya zacharycmontoya commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Previously, the updateName function in the OTel Bridge (which, as the name suggests, updates the OpenTelemetry span's name after span creation) would update the Datadog span's operation name, which is incorrect. The corresponding field in the Datadog span is the resource name, so this PR fixes the implementation to update the DD span's resource name.

Note: This is a breaking change for users of this API because the "operation name" displayed in the UI will change. However, OpenTelemetry instrumentation libraries like opentelemetry-instrumentation-express use this to update the span's name to match the endpoint, so this is behavior now aligns with expectations.

Motivation

Exploratory testing of OpenTelemetry Instrumentation Libraries is being conducted via https://github.com/DataDog/evalya/pull/798 which exposed this bug. This issue appears regardless of the trace format (MsgPack or OTLP) so it should be fixed unconditionally in the OTel Tracing API layer.

Note: After testing in the linked evalya branch with this local change, the name fields of the corresponding OTLP spans between the two SDKs now match.

Additional Notes

N/A

… to update the DD span's resource name. Previously, this updated the operation name which was a bug
@zacharycmontoya
zacharycmontoya requested a review from BridgeAR June 11, 2026 00:14
@zacharycmontoya
zacharycmontoya requested a review from a team as a code owner June 11, 2026 00:14
@dd-octo-sts

dd-octo-sts Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.2 MB
Deduped: 7.24 MB
No deduping: 7.24 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.2 | 85.93 kB | 825.11 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 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 Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.79%. Comparing base (2691ba1) to head (d8efa10).
⚠️ Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8864      +/-   ##
==========================================
- Coverage   93.10%   91.79%   -1.31%     
==========================================
  Files         862      862              
  Lines       49615    49641      +26     
  Branches     9400     9409       +9     
==========================================
- Hits        46194    45569     -625     
- Misses       3421     4072     +651     
Flag Coverage Δ
aiguard-integration-active 41.25% <ø> (-0.12%) ⬇️
aiguard-integration-latest 41.39% <ø> (+0.01%) ⬆️
aiguard-integration-maintenance 41.47% <ø> (+0.01%) ⬆️
aiguard-macos 33.29% <ø> (-0.08%) ⬇️
aiguard-ubuntu 33.45% <ø> (-0.08%) ⬇️
aiguard-windows 33.11% <ø> (-0.08%) ⬇️
apm-capabilities-tracing-macos 48.37% <100.00%> (-0.01%) ⬇️
apm-capabilities-tracing-ubuntu-active 48.37% <100.00%> (-0.01%) ⬇️
apm-capabilities-tracing-ubuntu-latest 48.37% <100.00%> (+<0.01%) ⬆️
apm-capabilities-tracing-ubuntu-maintenance 48.60% <100.00%> (+0.18%) ⬆️
apm-capabilities-tracing-ubuntu-oldest 48.60% <100.00%> (+<0.01%) ⬆️
apm-capabilities-tracing-windows 48.33% <100.00%> (-0.04%) ⬇️
apm-integrations-aerospike-18-gte.5.2.0 33.02% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-20-gte.5.5.0 33.04% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.5.12.1 33.05% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.6.0.0 33.05% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-eol- 32.95% <ø> (-0.08%) ⬇️
apm-integrations-child-process 33.96% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-18 40.06% <ø> (?)
apm-integrations-confluentinc-kafka-javascript-20 40.07% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-22 40.08% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-24 39.97% <ø> (-0.09%) ⬇️
apm-integrations-couchbase-18 ?
apm-integrations-couchbase-eol 33.08% <ø> (-0.08%) ⬇️
apm-integrations-dns 32.96% <ø> (-0.08%) ⬇️
apm-integrations-elasticsearch 33.99% <ø> (-0.08%) ⬇️
apm-integrations-http-latest 41.22% <ø> (-0.07%) ⬇️
apm-integrations-http-maintenance 41.31% <ø> (-0.07%) ⬇️
apm-integrations-http-oldest 41.24% <ø> (-0.07%) ⬇️
apm-integrations-http2 38.34% <ø> (-0.09%) ⬇️
apm-integrations-kafkajs-latest 40.17% <ø> (-0.09%) ⬇️
apm-integrations-kafkajs-oldest 40.26% <ø> (+0.02%) ⬆️
apm-integrations-net 33.66% <ø> (-0.09%) ⬇️
apm-integrations-next-11.1.4 36.57% <ø> (ø)
apm-integrations-next-12.3.7 36.57% <ø> (ø)
apm-integrations-next-13.0.0 28.99% <ø> (-0.08%) ⬇️
apm-integrations-next-13.2.0 28.99% <ø> (-0.08%) ⬇️
apm-integrations-next-13.5.11 29.13% <ø> (-0.08%) ⬇️
apm-integrations-next-14.0.0 29.05% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.35 29.05% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.6 29.05% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.7 29.05% <ø> (-0.08%) ⬇️
apm-integrations-next-15.0.0 29.05% <ø> (-0.12%) ⬇️
apm-integrations-next-15.4.0 29.13% <ø> (-0.08%) ⬇️
apm-integrations-next-latest 29.09% <ø> (-0.08%) ⬇️
apm-integrations-oracledb 34.10% <ø> (+0.14%) ⬆️
apm-integrations-prisma-18-gte.6.16.0.and.lt.7.0.0 ?
apm-integrations-prisma-latest-all 34.16% <ø> (-0.08%) ⬇️
apm-integrations-restify 35.08% <ø> (-0.08%) ⬇️
apm-integrations-sharedb 32.37% <ø> (-0.08%) ⬇️
apm-integrations-tedious 33.29% <ø> (-0.08%) ⬇️
appsec-express 51.12% <ø> (-0.10%) ⬇️
appsec-fastify 47.89% <ø> (-0.06%) ⬇️
appsec-graphql 47.88% <ø> (-0.05%) ⬇️
appsec-integration-active ?
appsec-integration-latest 35.91% <ø> (+<0.01%) ⬆️
appsec-integration-maintenance 35.97% <ø> (+<0.01%) ⬆️
appsec-integration-oldest 35.97% <ø> (+<0.01%) ⬆️
appsec-kafka 40.32% <ø> (-0.07%) ⬇️
appsec-ldapjs 39.74% <ø> (-0.05%) ⬇️
appsec-lodash 39.77% <ø> (-0.05%) ⬇️
appsec-macos 57.13% <ø> (+<0.01%) ⬆️
appsec-mongodb-core 43.97% <ø> (-0.06%) ⬇️
appsec-mongoose 44.82% <ø> (-0.06%) ⬇️
appsec-mysql 47.09% <ø> (-0.11%) ⬇️
appsec-next-latest-11.1.4 27.26% <ø> (-0.07%) ⬇️
appsec-next-latest-12.3.7 27.58% <ø> (-0.07%) ⬇️
appsec-next-latest-13.0.0 29.06% <ø> (-0.08%) ⬇️
appsec-next-latest-13.2.0 29.09% <ø> (-0.08%) ⬇️
appsec-next-latest-13.5.11 29.18% <ø> (-0.08%) ⬇️
appsec-next-latest-14.0.0 29.11% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.35 29.11% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.6 29.11% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.7 29.11% <ø> (-0.08%) ⬇️
appsec-next-latest-15.0.0 29.11% <ø> (-0.08%) ⬇️
appsec-next-latest-latest 29.12% <ø> (-0.08%) ⬇️
appsec-next-oldest-11.1.4 27.31% <ø> (-0.08%) ⬇️
appsec-next-oldest-12.3.7 29.12% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.0.0 29.12% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.2.0 29.38% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.5.11 ?
appsec-next-oldest-14.0.0 29.42% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.35 29.42% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.6 29.42% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.7 29.42% <ø> (-0.08%) ⬇️
appsec-next-oldest-15.0.0 29.42% <ø> (-0.08%) ⬇️
appsec-next-oldest-latest 27.79% <ø> (-0.07%) ⬇️
appsec-node-serialize 39.08% <ø> (-0.05%) ⬇️
appsec-passport 42.65% <ø> (-0.07%) ⬇️
appsec-postgres 46.82% <ø> (-0.06%) ⬇️
appsec-sourcing 38.49% <ø> (-0.05%) ⬇️
appsec-stripe 40.41% <ø> (-0.07%) ⬇️
appsec-template 39.31% <ø> (-0.05%) ⬇️
appsec-ubuntu 57.17% <ø> (-0.07%) ⬇️
appsec-windows 56.89% <ø> (-0.09%) ⬇️
debugger-ubuntu-active 43.55% <ø> (-0.01%) ⬇️
debugger-ubuntu-latest 43.55% <ø> (-0.01%) ⬇️
debugger-ubuntu-maintenance ?
debugger-ubuntu-oldest 43.98% <ø> (-0.01%) ⬇️
instrumentations-instrumentation-ai 42.49% <ø> (ø)
instrumentations-instrumentation-aws-sdk 44.65% <ø> (ø)
instrumentations-instrumentation-bluebird 27.41% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-body-parser 35.58% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 33.34% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-cookie-parser 29.31% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-couchbase-18 45.77% <ø> (ø)
instrumentations-instrumentation-couchbase-eol 45.77% <ø> (ø)
instrumentations-instrumentation-crypto 27.46% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express 29.51% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 29.42% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-multi-version 41.54% <ø> (ø)
instrumentations-instrumentation-express-session 35.36% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-fastify 47.65% <ø> (ø)
instrumentations-instrumentation-fetch 44.84% <ø> (ø)
instrumentations-instrumentation-fs 27.10% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-generic-pool 26.96% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-hono 28.62% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-http 35.01% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-http-client-options 37.53% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-kafkajs 48.74% <ø> (ø)
instrumentations-instrumentation-knex 27.39% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-light-my-request 35.21% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 28.51% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-multer 35.25% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 33.37% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-openai-aiguard 47.66% <ø> (ø)
instrumentations-instrumentation-otel-sdk-trace 25.20% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-passport 39.13% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-http 38.83% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-local 39.29% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-pg 33.09% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise 27.35% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise-js 27.36% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-q 27.39% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-router 42.86% <ø> (ø)
instrumentations-instrumentation-stripe 27.89% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-url 27.29% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-when 27.37% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-zlib 27.34% <ø> (-0.08%) ⬇️
instrumentations-integration-esbuild-0.16.12-active 18.33% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-0.16.12-latest 18.33% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-0.16.12-maintenance 18.35% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-0.16.12-oldest 18.34% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-active 18.33% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-latest 18.33% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-maintenance 18.35% <ø> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-oldest 18.34% <ø> (-0.01%) ⬇️
llmobs-ai 34.76% <ø> (-0.07%) ⬇️
llmobs-anthropic 36.48% <ø> (-0.08%) ⬇️
llmobs-bedrock ?
llmobs-google-genai 35.76% <ø> (-0.08%) ⬇️
llmobs-langchain 34.40% <ø> (-0.07%) ⬇️
llmobs-openai-latest 38.90% <ø> (-0.08%) ⬇️
llmobs-openai-oldest 38.98% <ø> (-0.08%) ⬇️
llmobs-sdk-active 43.48% <ø> (-0.09%) ⬇️
llmobs-sdk-latest 43.48% <ø> (-0.09%) ⬇️
llmobs-sdk-maintenance 43.58% <ø> (-0.09%) ⬇️
llmobs-sdk-oldest 43.57% <ø> (-0.09%) ⬇️
llmobs-vertex-ai ?
master-coverage 91.79% <100.00%> (?)
openfeature-macos 37.40% <ø> (-0.01%) ⬇️
openfeature-ubuntu 37.54% <ø> (-0.01%) ⬇️
openfeature-unit-active 49.97% <ø> (-0.17%) ⬇️
openfeature-unit-latest 49.97% <ø> (-0.17%) ⬇️
openfeature-unit-maintenance 50.34% <ø> (-0.17%) ⬇️
openfeature-unit-oldest 50.34% <ø> (-0.17%) ⬇️
openfeature-windows ?
platform-core 46.06% <ø> (ø)
platform-esbuild 46.70% <ø> (ø)
platform-instrumentations-misc 30.46% <ø> (-0.01%) ⬇️
platform-integration-active 46.63% <83.33%> (+0.03%) ⬆️
platform-integration-latest 46.58% <83.33%> (-0.06%) ⬇️
platform-integration-maintenance 46.73% <83.33%> (-0.01%) ⬇️
platform-integration-oldest 46.89% <83.33%> (+0.04%) ⬆️
platform-shimmer 47.12% <ø> (ø)
platform-unit-guardrails 44.11% <ø> (ø)
platform-webpack 17.88% <ø> (-0.01%) ⬇️
plugins-axios 35.33% <ø> (-0.01%) ⬇️
plugins-azure-cosmos 35.81% <ø> (-0.08%) ⬇️
plugins-azure-event-hubs 34.66% <ø> (-0.01%) ⬇️
plugins-azure-service-bus 35.14% <ø> (-0.01%) ⬇️
plugins-body-parser 36.34% <ø> (-0.01%) ⬇️
plugins-bullmq 38.83% <ø> (-0.09%) ⬇️
plugins-cassandra 33.50% <ø> (-0.08%) ⬇️
plugins-cookie 40.35% <ø> (ø)
plugins-cookie-parser 40.18% <ø> (ø)
plugins-crypto 42.43% <ø> (ø)
plugins-dd-trace-api 33.19% <ø> (-0.08%) ⬇️
plugins-express-mongo-sanitize 40.23% <ø> (ø)
plugins-express-session 40.09% <ø> (ø)
plugins-fastify 37.66% <ø> (-0.08%) ⬇️
plugins-fetch 33.93% <ø> (-0.08%) ⬇️
plugins-fs 33.58% <ø> (-0.06%) ⬇️
plugins-generic-pool 39.66% <ø> (ø)
plugins-google-cloud-pubsub 41.34% <ø> (-0.08%) ⬇️
plugins-grpc 36.42% <ø> (-0.08%) ⬇️
plugins-handlebars 40.23% <ø> (ø)
plugins-hapi 35.48% <ø> (-0.08%) ⬇️
plugins-hono 35.82% <ø> (-0.08%) ⬇️
plugins-ioredis ?
plugins-jest 27.12% <ø> (-0.05%) ⬇️
plugins-knex 39.71% <ø> (ø)
plugins-langgraph 32.22% <ø> (-0.08%) ⬇️
plugins-ldapjs 38.68% <ø> (ø)
plugins-light-my-request 39.80% <ø> (ø)
plugins-limitd-client 27.78% <ø> (-0.02%) ⬇️
plugins-lodash 39.84% <ø> (ø)
plugins-mariadb 35.02% <ø> (-0.08%) ⬇️
plugins-memcached 33.57% <ø> (-0.08%) ⬇️
plugins-microgateway-core 34.58% <ø> (-0.08%) ⬇️
plugins-modelcontextprotocol-sdk 32.17% <ø> (-0.08%) ⬇️
plugins-moleculer 36.48% <ø> (?)
plugins-mongodb 35.73% <ø> (-0.07%) ⬇️
plugins-mongodb-core 35.31% <ø> (-0.08%) ⬇️
plugins-mongoose 34.36% <ø> (+0.08%) ⬆️
plugins-multer 40.15% <ø> (ø)
plugins-mysql 34.50% <ø> (-0.08%) ⬇️
plugins-mysql2 34.83% <ø> (?)
plugins-nats 36.22% <ø> (-0.09%) ⬇️
plugins-node-serialize 40.37% <ø> (ø)
plugins-opensearch 33.44% <ø> (-0.08%) ⬇️
plugins-passport-http 39.97% <ø> (ø)
plugins-pino 29.65% <ø> (-0.08%) ⬇️
plugins-postgres 34.54% <ø> (-0.08%) ⬇️
plugins-process 42.43% <ø> (ø)
plugins-pug 40.35% <ø> (ø)
plugins-redis 34.10% <ø> (-0.15%) ⬇️
plugins-router 37.90% <ø> (-0.08%) ⬇️
plugins-sequelize 39.62% <ø> (ø)
plugins-test-and-upstream-amqp10 33.71% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-amqplib 38.92% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-apollo 34.67% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-avsc 33.59% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-bunyan 28.87% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-connect 36.16% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-graphql ?
plugins-test-and-upstream-koa 35.66% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-protobufjs 33.82% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-rhea 39.05% <ø> (-0.09%) ⬇️
plugins-undici 34.43% <ø> (-0.08%) ⬇️
plugins-url 42.43% <ø> (ø)
plugins-valkey 33.53% <ø> (-0.22%) ⬇️
plugins-vm 42.43% <ø> (ø)
plugins-winston 29.52% <ø> (-0.08%) ⬇️
plugins-ws 36.96% <ø> (-0.08%) ⬇️
profiling-macos 43.07% <ø> (-0.04%) ⬇️
profiling-ubuntu 43.55% <ø> (?)
profiling-windows 40.82% <ø> (-0.05%) ⬇️
serverless-aws-sdk-latest-aws-sdk 32.96% <ø> (?)
serverless-aws-sdk-latest-bedrockruntime 31.64% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-client 36.07% <ø> (ø)
serverless-aws-sdk-latest-dynamodb ?
serverless-aws-sdk-latest-eventbridge 26.80% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-kinesis 36.93% <ø> (?)
serverless-aws-sdk-latest-lambda 34.30% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-s3 32.20% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-serverless-peer-service 39.19% <ø> (-0.09%) ⬇️
serverless-aws-sdk-latest-sns 38.11% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-sqs ?
serverless-aws-sdk-latest-stepfunctions 32.87% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-util 46.46% <ø> (?)
serverless-aws-sdk-oldest-aws-sdk 33.07% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-bedrockruntime 31.94% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-client 36.63% <ø> (ø)
serverless-aws-sdk-oldest-dynamodb 33.93% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-eventbridge 26.88% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-kinesis 37.10% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-lambda 34.40% <ø> (?)
serverless-aws-sdk-oldest-s3 32.33% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-serverless-peer-service 39.28% <ø> (-0.09%) ⬇️
serverless-aws-sdk-oldest-sns 38.21% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-sqs 37.53% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-stepfunctions 32.97% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-util 47.21% <ø> (ø)
serverless-azure-durable-functions 36.61% <ø> (-0.01%) ⬇️
serverless-azure-functions-eventhubs 38.25% <ø> (-0.01%) ⬇️
serverless-azure-functions-servicebus 38.31% <ø> (-0.01%) ⬇️
serverless-lambda 34.24% <ø> (-0.20%) ⬇️
test-optimization-cucumber-latest-7.0.0 49.98% <ø> (+0.12%) ⬆️
test-optimization-cucumber-latest-latest ?
test-optimization-cucumber-oldest-7.0.0 50.06% <ø> (+0.12%) ⬆️
test-optimization-cypress-latest-12.0.0-commonJS 47.90% <ø> (-1.35%) ⬇️
test-optimization-cypress-latest-12.0.0-esm 48.04% <ø> (-1.24%) ⬇️
test-optimization-cypress-latest-14.5.4-commonJS 49.18% <ø> (+0.08%) ⬆️
test-optimization-cypress-latest-14.5.4-esm 49.21% <ø> (+0.14%) ⬆️
test-optimization-cypress-latest-latest-commonJS 49.16% <ø> (-0.43%) ⬇️
test-optimization-cypress-latest-latest-esm 49.64% <ø> (+0.02%) ⬆️
test-optimization-cypress-oldest-12.0.0-commonJS 48.91% <ø> (-0.43%) ⬇️
test-optimization-cypress-oldest-12.0.0-esm 46.56% <ø> (-2.80%) ⬇️
test-optimization-cypress-oldest-14.5.4-commonJS 49.17% <ø> (-0.01%) ⬇️
test-optimization-cypress-oldest-14.5.4-esm 49.29% <ø> (+0.11%) ⬆️
test-optimization-jest-latest-latest 55.43% <ø> (+0.08%) ⬆️
test-optimization-jest-latest-oldest 52.06% <ø> (-2.20%) ⬇️
test-optimization-jest-oldest-latest 55.48% <ø> (+0.08%) ⬆️
test-optimization-jest-oldest-oldest 54.36% <ø> (+0.08%) ⬆️
test-optimization-mocha-latest-latest 53.67% <ø> (+0.09%) ⬆️
test-optimization-mocha-latest-oldest 51.22% <ø> (+0.09%) ⬆️
test-optimization-mocha-oldest-latest 53.78% <ø> (+0.09%) ⬆️
test-optimization-mocha-oldest-oldest 51.21% <ø> (+0.07%) ⬆️
test-optimization-playwright-latest-latest-playwright-active-test-span 44.27% <ø> (+0.28%) ⬆️
test-optimization-playwright-latest-latest-playwright-atr ?
test-optimization-playwright-latest-latest-playwright-efd 43.31% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-final-status 43.40% <ø> (+0.14%) ⬆️
test-optimization-playwright-latest-latest-playwright-impacted-tests 42.86% <ø> (+0.01%) ⬆️
test-optimization-playwright-latest-latest-playwright-reporting ?
test-optimization-playwright-latest-latest-playwright-test-management 44.54% <ø> (+0.11%) ⬆️
test-optimization-playwright-latest-oldest-playwright-active-test-span 44.08% <ø> (+0.28%) ⬆️
test-optimization-playwright-latest-oldest-playwright-atr 42.97% <ø> (+0.12%) ⬆️
test-optimization-playwright-latest-oldest-playwright-efd ?
test-optimization-playwright-latest-oldest-playwright-final-status ?
test-optimization-playwright-latest-oldest-playwright-impacted-tests 42.78% <ø> (+0.01%) ⬆️
test-optimization-playwright-latest-oldest-playwright-reporting 42.74% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-test-management 44.49% <ø> (+0.14%) ⬆️
test-optimization-playwright-oldest-latest-playwright-active-test-span 44.35% <ø> (+0.12%) ⬆️
test-optimization-playwright-oldest-latest-playwright-atr 42.97% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-latest-playwright-efd 43.39% <ø> (?)
test-optimization-playwright-oldest-latest-playwright-final-status 43.46% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-latest-playwright-impacted-tests 42.94% <ø> (+0.01%) ⬆️
test-optimization-playwright-oldest-latest-playwright-reporting 42.98% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-latest-playwright-test-management 44.62% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-active-test-span 44.17% <ø> (+0.28%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-atr 43.05% <ø> (+0.12%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-efd 43.33% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-final-status 43.39% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-impacted-tests 42.87% <ø> (+0.01%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-reporting 42.80% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-test-management 44.55% <ø> (+0.09%) ⬆️
test-optimization-selenium-latest 45.22% <ø> (+0.08%) ⬆️
test-optimization-selenium-oldest 44.80% <ø> (-0.18%) ⬇️
test-optimization-testopt-active ?
test-optimization-testopt-latest 48.32% <ø> (+0.13%) ⬆️
test-optimization-testopt-maintenance ?
test-optimization-testopt-oldest 49.42% <ø> (+0.11%) ⬆️
test-optimization-vitest-latest 49.76% <ø> (-0.91%) ⬇️
test-optimization-vitest-oldest 47.99% <ø> (+0.33%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79a728ab79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/dd-trace/src/opentelemetry/span.js
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jun 11, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

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

@pr-commenter

pr-commenter Bot commented Jun 11, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-12 22:15:34

Comparing candidate commit d8efa10 in PR branch zach.montoya/fix-otel-trace with baseline commit 2691ba1 in branch master.

📊 Benchmarking dashboard

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

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:debugger-line-probe-with-snapshot-default-20

  • unstable max_rss_usage [-10.068MB; +12.326MB] or [-5.364%; +6.567%]

scenario:log-skip-log-24

  • unstable cpu_user_time [-2954.104µs; +3760.904µs] or [-6.103%; +7.770%]

scenario:log-without-log-20

  • unstable cpu_user_time [-1.537ms; +4.596ms] or [-2.856%; +8.538%]

scenario:log-without-log-24

  • unstable cpu_user_time [-2520.994µs; +3652.694µs] or [-5.507%; +7.980%]

scenario:plugin-graphql-long-with-depth-and-collapse-off-24

  • unstable cpu_user_time [-342.410ms; +268.945ms] or [-7.527%; +5.912%]
  • unstable execution_time [-372.630ms; +290.105ms] or [-7.633%; +5.942%]
  • unstable max_rss_usage [-39.635MB; +31.279MB] or [-7.668%; +6.052%]

scenario:plugin-graphql-long-with-depth-off-20

  • unstable max_rss_usage [-8314.442KB; +9392.842KB] or [-6.050%; +6.835%]

scenario:spans-finish-later-20

  • unstable cpu_user_time [-936.143ms; +325.618ms] or [-17.393%; +6.050%]
  • unstable execution_time [-1288.923ms; +410.595ms] or [-20.894%; +6.656%]
  • unstable instructions [-2311.4M instructions; +652.2M instructions] or [-10.220%; +2.884%]

scenario:spans-finish-later-24

  • unstable cpu_user_time [-482.915ms; +174.926ms] or [-20.454%; +7.409%]
  • unstable execution_time [-495.941ms; +186.297ms] or [-19.627%; +7.373%]
  • unstable max_rss_usage [-26.709MB; +23.381MB] or [-8.856%; +7.753%]

scenario:spans-finish-later-26

  • unstable cpu_user_time [-111.625ms; +135.047ms] or [-5.492%; +6.645%]
  • unstable execution_time [-113.187ms; +139.329ms] or [-5.264%; +6.480%]

Comment thread packages/dd-trace/src/opentelemetry/span.js Outdated

@BridgeAR BridgeAR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can not say much about the domain specific parts, you will know those better :)

The code is LGTM when we use a private property

link04
link04 previously approved these changes Jun 12, 2026

@link04 link04 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM with some edge case and another cosmetic change.

Comment thread packages/dd-trace/src/opentelemetry/span.js
Comment thread packages/dd-trace/src/opentelemetry/span.js
@zacharycmontoya

Copy link
Copy Markdown
Contributor Author

After further consideration, this update to the API should be behind a feature flag. I'll close this PR and leave the implementation in #8894 which already includes the fix and also introduces the feature flag.

@zacharycmontoya
zacharycmontoya deleted the zach.montoya/fix-otel-trace branch June 16, 2026 21:54
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