Skip to content

fix(config): prefer stable OTel deployment environment - #10050

Merged
BridgeAR merged 3 commits into
masterfrom
brian.marks/otel-deployment-environment-name
Sep 2, 2026
Merged

fix(config): prefer stable OTel deployment environment#10050
BridgeAR merged 3 commits into
masterfrom
brian.marks/otel-deployment-environment-name

Conversation

@bm1549

@bm1549 bm1549 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

@bm1549 bm1549 added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Aug 28, 2026
@dd-octo-sts

dd-octo-sts Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.64 MB
Deduped: 9.31 MB
No deduping: 9.31 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.4.0 | 127.33 kB | 447.04 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

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Aug 28, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.63% (-0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1f96b1b | Docs | View more details | Give us feedback!

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.62%. Comparing base (67c9007) to head (1f96b1b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10050      +/-   ##
==========================================
- Coverage   98.63%   98.62%   -0.01%     
==========================================
  Files         996      996              
  Lines      152275   152277       +2     
  Branches    13356    13243     -113     
==========================================
- Hits       150193   150190       -3     
- Misses       2082     2087       +5     
Flag Coverage Δ
aiguard 63.16% <100.00%> (-0.03%) ⬇️
aiguard-integration 58.96% <33.33%> (-0.01%) ⬇️
apm-bucket-0 62.49% <100.00%> (-0.03%) ⬇️
apm-bucket-1 67.94% <100.00%> (-0.03%) ⬇️
apm-bucket-2 67.50% <100.00%> (-0.03%) ⬇️
apm-bucket-3 64.35% <100.00%> (-0.03%) ⬇️
apm-capabilities-tracing 62.52% <100.00%> (+<0.01%) ⬆️
apm-integrations-aerospike 60.51% <100.00%> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 66.62% <100.00%> (-0.03%) ⬇️
apm-integrations-couchbase 61.03% <100.00%> (-0.02%) ⬇️
apm-integrations-http 66.28% <100.00%> (-0.02%) ⬇️
apm-integrations-kafkajs 67.21% <100.00%> (-0.03%) ⬇️
apm-integrations-next 63.84% <100.00%> (-0.03%) ⬇️
apm-integrations-prisma 61.89% <100.00%> (-0.02%) ⬇️
appsec 76.75% <100.00%> (-0.02%) ⬇️
appsec-express_fastify_graphql 72.71% <100.00%> (-0.02%) ⬇️
appsec-integration 49.56% <33.33%> (-0.01%) ⬇️
appsec-kafka_ldapjs_lodash 67.44% <100.00%> (+0.01%) ⬆️
appsec-mongodb-core_mongoose_mysql 70.66% <100.00%> (-0.02%) ⬇️
appsec-next 57.17% <100.00%> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 70.13% <100.00%> (-0.02%) ⬇️
appsec-sourcing_stripe_template 68.56% <100.00%> (-0.02%) ⬇️
debugger 69.07% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-0 56.07% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-1 64.16% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-10 53.28% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-11 65.68% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-12 61.38% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-13 56.27% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-14 55.72% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-2 56.92% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-3 57.17% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-4 63.78% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-5 56.52% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-6 58.13% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-7 65.65% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-8 62.92% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-9 64.51% <100.00%> (-0.03%) ⬇️
instrumentations-instrumentation-couchbase 54.68% <100.00%> (-0.03%) ⬇️
instrumentations-instrumentation-zlib 55.75% <100.00%> (-0.03%) ⬇️
instrumentations-integration-esbuild 34.53% <33.33%> (+<0.01%) ⬆️
llmobs-ai_anthropic_bedrock 66.71% <100.00%> (-0.02%) ⬇️
llmobs-bucket-1 64.83% <100.00%> (-0.02%) ⬇️
llmobs-openai 66.69% <100.00%> (-0.02%) ⬇️
llmobs-openai-agents_vertex-ai 63.98% <100.00%> (-0.01%) ⬇️
llmobs-sdk 75.90% <100.00%> (-0.03%) ⬇️
master-coverage 98.62% <100.00%> (?)
openfeature 59.58% <33.33%> (-0.01%) ⬇️
openfeature-unit 58.27% <100.00%> (-0.03%) ⬇️
platform-core_esbuild_instrumentations-misc 41.09% <100.00%> (-0.01%) ⬇️
platform-integration 64.80% <100.00%> (+<0.01%) ⬆️
platform-shimmer_unit-guardrails_webpack 38.93% <100.00%> (-0.01%) ⬇️
plugins-browser-bunyan_bullmq_cassandra 66.23% <100.00%> (-0.03%) ⬇️
plugins-bucket-0 60.91% <100.00%> (-0.02%) ⬇️
plugins-bucket-1 58.13% <33.33%> (-0.01%) ⬇️
plugins-bucket-11 67.67% <100.00%> (-0.02%) ⬇️
plugins-bucket-18 65.44% <100.00%> (-0.02%) ⬇️
plugins-bucket-19 64.92% <100.00%> (-0.04%) ⬇️
plugins-bucket-20 68.64% <100.00%> (-0.03%) ⬇️
plugins-bucket-4 61.07% <100.00%> (-0.03%) ⬇️
plugins-cookie_cookie-parser_crypto 55.66% <100.00%> (-0.03%) ⬇️
plugins-fastify_fetch_fs 65.33% <100.00%> (-0.06%) ⬇️
plugins-generic-pool_google-cloud-pubsub_grpc 68.93% <100.00%> (-0.03%) ⬇️
plugins-handlebars_hapi_hono 63.59% <100.00%> (-0.03%) ⬇️
plugins-ioredis_knex_langgraph 61.60% <100.00%> (-0.03%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 63.30% <100.00%> (-0.04%) ⬇️
plugins-lodash_mariadb_memcached 63.79% <100.00%> (-0.03%) ⬇️
plugins-moleculer_mongodb_mongodb-core 66.04% <100.00%> (-0.03%) ⬇️
plugins-mongoose_multer_mysql 63.90% <100.00%> (-0.03%) ⬇️
plugins-mysql2_nats_node-serialize 66.11% <100.00%> (-0.03%) ⬇️
plugins-opensearch_passport-http_pino 64.00% <100.00%> (-0.03%) ⬇️
plugins-postgres_process_pug 63.04% <100.00%> (-0.03%) ⬇️
plugins-redis_router_sequelize 66.61% <100.00%> (-0.03%) ⬇️
plugins-test-and-upstream-rhea_undici_url 65.96% <100.00%> (-0.03%) ⬇️
plugins-valkey_vm_winston 62.37% <100.00%> (-0.03%) ⬇️
plugins-ws 64.42% <100.00%> (-0.03%) ⬇️
profiling 66.20% <100.00%> (-0.03%) ⬇️
serverless-aws-sdk-aws-sdk 55.42% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 55.24% <100.00%> (-0.03%) ⬇️
serverless-aws-sdk-bedrockruntime 58.67% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-client 60.03% <100.00%> (-0.03%) ⬇️
serverless-aws-sdk-dynamodb 59.11% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-eventbridge 57.62% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 63.08% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-lambda 61.04% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-s3 59.15% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-serverless-peer-service 63.64% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-sns 63.96% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-sqs 64.43% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-stepfunctions 59.01% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-util 55.86% <100.00%> (-0.03%) ⬇️
serverless-bucket-0 57.76% <33.33%> (-0.01%) ⬇️
serverless-bucket-1 63.67% <100.00%> (-0.03%) ⬇️
test-optimization-cucumber 70.54% <100.00%> (+0.02%) ⬆️
test-optimization-cypress 64.76% <33.33%> (+0.05%) ⬆️
test-optimization-jest 72.08% <100.00%> (+<0.01%) ⬆️
test-optimization-mocha 71.99% <100.00%> (+0.05%) ⬆️
test-optimization-playwright-playwright-atr 59.81% <33.33%> (-0.03%) ⬇️
test-optimization-playwright-playwright-efd 60.44% <33.33%> (-0.04%) ⬇️
test-optimization-playwright-playwright-final-status 60.05% <33.33%> (-0.08%) ⬇️
test-optimization-playwright-playwright-impacted-tests 60.17% <33.33%> (+0.11%) ⬆️
test-optimization-playwright-playwright-reporting 61.14% <33.33%> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-management 61.22% <33.33%> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-span 59.84% <33.33%> (+0.01%) ⬆️
test-optimization-selenium 58.88% <33.33%> (-0.07%) ⬇️
test-optimization-testopt 61.80% <33.33%> (+0.06%) ⬆️
test-optimization-vitest 72.69% <100.00%> (+0.05%) ⬆️
test-optimization-vitest-browser 58.70% <33.33%> (-0.03%) ⬇️
test-optimization-webdriverio 65.53% <100.00%> (+0.04%) ⬆️

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.

@pr-commenter

pr-commenter Bot commented Aug 28, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-09-01 22:09:54

Comparing candidate commit 1f96b1b in PR branch brian.marks/otel-deployment-environment-name with baseline commit 67c9007 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2297 metrics, 13 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:appsec-appsec-enabled-20

  • unstable max_rss_usage [-28080.612KB; +29374.066KB] or [-15.433%; +16.144%]

scenario:appsec-iast-with-vulnerability-iast-enabled-default-config-20

  • unstable max_rss_usage [-17.402MB; +25.203MB] or [-4.764%; +6.899%]

scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable max_rss_usage [-10.988MB; +15.558MB] or [-4.535%; +6.422%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-511.554ms; +145.145ms] or [-9.937%; +2.820%]
  • unstable execution_time [-511.967ms; +140.955ms] or [-9.797%; +2.697%]
  • unstable throughput [-47020.132op/s; +169743.356op/s] or [-2.934%; +10.590%]

scenario:plugin-aws-sdk-lambda-inject-with-context-24

  • unstable cpu_user_time [-239.210ms; +171.084ms] or [-6.281%; +4.492%]
  • unstable execution_time [-240.537ms; +167.318ms] or [-6.269%; +4.361%]

scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable max_rss_usage [-7.395MB; +15.958MB] or [-5.254%; +11.338%]

scenario:plugin-pg-service-26

  • unstable cpu_usage_percentage [-6.922%; +4.276%]
  • unstable execution_time [-53.333ms; +81.577ms] or [-5.794%; +8.862%]
  • unstable throughput [-458709.512op/s; +308851.932op/s] or [-6.949%; +4.679%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-3.311MB; +6.631MB] or [-4.201%; +8.413%]

@bm1549
bm1549 force-pushed the brian.marks/otel-deployment-environment-name branch from 4d8a558 to 3f1fadb Compare August 28, 2026 17:48
bengl
bengl previously requested changes Sep 1, 2026
Comment thread packages/dd-trace/test/config/index.spec.js Outdated
@bm1549
bm1549 marked this pull request as ready for review September 1, 2026 21:17
@bm1549
bm1549 requested review from a team as code owners September 1, 2026 21:17
@bm1549
bm1549 requested a review from BridgeAR September 1, 2026 21:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T21:59:08.554548Z 1f96b1b New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

The change is LGTM, while I believe this will not really change anything in reality 🤷

@BridgeAR
BridgeAR enabled auto-merge (squash) September 1, 2026 22:39
@bm1549
bm1549 requested a review from bengl September 1, 2026 22:45
@BridgeAR
BridgeAR dismissed bengl’s stale review September 2, 2026 20:50

Request addressed

@BridgeAR
BridgeAR merged commit 6e65a91 into master Sep 2, 2026
728 of 729 checks passed
@BridgeAR
BridgeAR deleted the brian.marks/otel-deployment-environment-name branch September 2, 2026 20:51
This was referenced Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos semver-patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants