Skip to content

[test optimization] Add error tag for library settings request#7590

Merged
juan-fernandez merged 4 commits intomasterfrom
juan-fernandez/add-error-information-tags
Feb 25, 2026
Merged

[test optimization] Add error tag for library settings request#7590
juan-fernandez merged 4 commits intomasterfrom
juan-fernandez/add-error-information-tags

Conversation

@juan-fernandez
Copy link
Copy Markdown
Collaborator

@juan-fernandez juan-fernandez commented Feb 20, 2026

What does this PR do?

Send a hidden tag _dd.ci.library_configuration_error whenever there has been a communication error between the library and datadog's API for the library settings request. This triggers a warning message in the UI.

Motivation

Let users know that there was a communication error between the library and datadog's backend and advanced features would not work.

Additional Notes

We'll start with the library settings request which is the most impactful one. We'll expand to other requests later on.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 20, 2026

Overall package size

Self size: 4.79 MB
Deduped: 5.64 MB
No deduping: 5.64 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 816.75 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 7.89474% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.24%. Comparing base (e52cd32) to head (152f602).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
packages/dd-trace/src/plugins/ci_plugin.js 0.00% 21 Missing ⚠️
packages/dd-trace/src/plugins/util/test.js 30.00% 7 Missing ⚠️
packages/datadog-plugin-jest/src/index.js 0.00% 2 Missing ⚠️
packages/datadog-plugin-playwright/src/index.js 0.00% 2 Missing ⚠️
packages/datadog-plugin-cucumber/src/index.js 0.00% 1 Missing ⚠️
packages/datadog-plugin-mocha/src/index.js 0.00% 1 Missing ⚠️
packages/datadog-plugin-vitest/src/index.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7590      +/-   ##
==========================================
- Coverage   80.29%   80.24%   -0.06%     
==========================================
  Files         733      733              
  Lines       31561    31591      +30     
==========================================
+ Hits        25343    25351       +8     
- Misses       6218     6240      +22     
Flag Coverage Δ
aiguard-macos ?
aiguard-ubuntu 39.08% <ø> (-0.08%) ⬇️
aiguard-windows 38.81% <ø> (-0.08%) ⬇️
apm-capabilities-tracing-macos 48.57% <7.89%> (-0.03%) ⬇️
apm-capabilities-tracing-ubuntu 48.61% <7.89%> (-0.03%) ⬇️
apm-capabilities-tracing-windows 48.30% <7.89%> (-0.03%) ⬇️
apm-integrations-child-process 38.53% <ø> (-0.08%) ⬇️
apm-integrations-couchbase-18 37.45% <ø> (+0.07%) ⬆️
apm-integrations-couchbase-eol 37.93% <ø> (+0.07%) ⬆️
apm-integrations-oracledb 37.76% <ø> (-0.08%) ⬇️
appsec-express 55.54% <ø> (-0.06%) ⬇️
appsec-fastify 51.86% <ø> (-0.06%) ⬇️
appsec-graphql 52.04% <ø> (-0.06%) ⬇️
appsec-kafka 44.48% <ø> (-0.07%) ⬇️
appsec-ldapjs 44.11% <ø> (-0.07%) ⬇️
appsec-lodash 43.80% <ø> (-0.07%) ⬇️
appsec-macos 58.60% <30.00%> (-0.08%) ⬇️
appsec-mongodb-core 48.97% <ø> (-0.07%) ⬇️
appsec-mongoose 49.66% <ø> (-0.07%) ⬇️
appsec-mysql 51.02% <ø> (-0.07%) ⬇️
appsec-node-serialize 43.31% <ø> (-0.07%) ⬇️
appsec-passport 47.80% <ø> (-0.07%) ⬇️
appsec-postgres 50.78% <ø> (-0.04%) ⬇️
appsec-sourcing 42.66% <ø> (-0.07%) ⬇️
appsec-template 43.48% <ø> (-0.07%) ⬇️
appsec-ubuntu 58.68% <30.00%> (-0.08%) ⬇️
appsec-windows 58.46% <30.00%> (-0.08%) ⬇️
instrumentations-instrumentation-bluebird 32.23% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-body-parser 40.54% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 37.85% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-cookie-parser 34.27% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-express 34.61% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 34.40% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-express-session 40.16% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-fs 31.84% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-generic-pool 29.82% <30.00%> (+0.06%) ⬆️
instrumentations-instrumentation-http 39.88% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-knex 32.24% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 33.40% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-multer 40.28% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 38.32% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-passport 44.11% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-http 43.78% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-local 44.33% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-pg 37.74% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise 32.16% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise-js 32.17% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-q 32.21% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-url 32.13% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-when 32.18% <ø> (-0.08%) ⬇️
llmobs-ai 41.36% <ø> (-0.08%) ⬇️
llmobs-anthropic 40.35% <ø> (-0.07%) ⬇️
llmobs-bedrock 39.28% <ø> (-0.07%) ⬇️
llmobs-google-genai 39.87% <ø> (-0.07%) ⬇️
llmobs-langchain 39.45% <ø> (-0.06%) ⬇️
llmobs-openai 44.16% <ø> (-0.07%) ⬇️
llmobs-vertex-ai 40.14% <ø> (-0.07%) ⬇️
platform-core 29.71% <ø> (ø)
platform-esbuild 32.89% <ø> (ø)
platform-instrumentations-misc 40.53% <ø> (ø)
platform-shimmer 36.14% <ø> (ø)
platform-unit-guardrails 31.27% <ø> (ø)
plugins-azure-event-hubs 24.02% <ø> (ø)
plugins-azure-service-bus 23.42% <ø> (ø)
plugins-bullmq 43.73% <ø> (+0.02%) ⬆️
plugins-cassandra 37.80% <ø> (-0.08%) ⬇️
plugins-cookie 25.08% <ø> (ø)
plugins-cookie-parser 24.87% <ø> (ø)
plugins-crypto 24.72% <ø> (ø)
plugins-dd-trace-api 38.39% <ø> (-0.08%) ⬇️
plugins-express-mongo-sanitize 25.04% <ø> (ø)
plugins-express-session 24.83% <ø> (ø)
plugins-fastify 42.30% <ø> (-0.07%) ⬇️
plugins-fetch 38.35% <ø> (-0.07%) ⬇️
plugins-fs 38.64% <ø> (-0.08%) ⬇️
plugins-generic-pool 24.06% <ø> (ø)
plugins-google-cloud-pubsub 45.48% <ø> (-0.07%) ⬇️
plugins-grpc 40.99% <ø> (-0.07%) ⬇️
plugins-handlebars 25.08% <ø> (ø)
plugins-hapi 40.17% <ø> (-0.08%) ⬇️
plugins-hono 40.44% <ø> (-0.08%) ⬇️
plugins-ioredis 38.44% <ø> (-0.08%) ⬇️
plugins-knex 24.80% <ø> (ø)
plugins-ldapjs 22.61% <ø> (ø)
plugins-light-my-request 24.48% <ø> (ø)
plugins-limitd-client 32.53% <ø> (-0.08%) ⬇️
plugins-lodash 24.13% <ø> (ø)
plugins-mariadb 39.52% <ø> (-0.08%) ⬇️
plugins-memcached 38.18% <ø> (-0.08%) ⬇️
plugins-microgateway-core 39.20% <ø> (-0.08%) ⬇️
plugins-moleculer 40.55% <ø> (-0.08%) ⬇️
plugins-mongodb 39.23% <ø> (-0.08%) ⬇️
plugins-mongodb-core 39.06% <ø> (-0.08%) ⬇️
plugins-mongoose 38.88% <ø> (-0.08%) ⬇️
plugins-multer 24.83% <ø> (ø)
plugins-mysql 39.20% <ø> (-0.05%) ⬇️
plugins-mysql2 39.30% <ø> (-0.08%) ⬇️
plugins-node-serialize 25.12% <ø> (ø)
plugins-opensearch 37.63% <ø> (-0.08%) ⬇️
plugins-passport-http 24.91% <ø> (ø)
plugins-postgres 35.72% <30.00%> (-0.07%) ⬇️
plugins-process 24.72% <ø> (ø)
plugins-pug 25.08% <ø> (ø)
plugins-redis 38.92% <ø> (-0.07%) ⬇️
plugins-router 43.05% <ø> (-0.08%) ⬇️
plugins-sequelize 23.66% <ø> (ø)
plugins-test-and-upstream-amqp10 38.36% <ø> (-0.23%) ⬇️
plugins-test-and-upstream-amqplib 43.93% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-apollo 39.05% <ø> (-0.07%) ⬇️
plugins-test-and-upstream-avsc 38.73% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-bunyan 33.83% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-connect 40.84% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-graphql 40.18% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-koa 40.42% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-protobufjs 38.96% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-rhea 44.13% <ø> (-0.08%) ⬇️
plugins-undici 39.14% <ø> (-0.07%) ⬇️
plugins-url 24.72% <ø> (ø)
plugins-valkey 38.07% <ø> (-0.11%) ⬇️
plugins-vm 24.72% <ø> (ø)
plugins-winston 34.03% <ø> (-0.08%) ⬇️
plugins-ws 41.94% <ø> (-0.08%) ⬇️
profiling-macos 39.87% <ø> (-0.08%) ⬇️
profiling-ubuntu 40.00% <ø> (-0.08%) ⬇️
profiling-windows 41.60% <ø> (+0.30%) ⬆️
serverless-azure-functions-client 23.75% <ø> (ø)
serverless-azure-functions-eventhubs 23.75% <ø> (ø)
serverless-azure-functions-servicebus 23.75% <ø> (ø)

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-datadog-prod-us1

This comment has been minimized.

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Feb 20, 2026

Benchmarks

Benchmark execution time: 2026-02-25 12:49:49

Comparing candidate commit 2348874 in PR branch juan-fernandez/add-error-information-tags with baseline commit e52cd32 in branch master.

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

@juan-fernandez juan-fernandez changed the title [do not merge] [test optimization] Add error tags for requests [test optimization] Add error tags for requests Feb 23, 2026
@juan-fernandez juan-fernandez changed the title [test optimization] Add error tags for requests [test optimization] Add error tags for settings request Feb 25, 2026
@juan-fernandez juan-fernandez changed the title [test optimization] Add error tags for settings request [test optimization] Add error tag for settings request Feb 25, 2026
@juan-fernandez juan-fernandez changed the title [test optimization] Add error tag for settings request [test optimization] Add error tag for library settings request Feb 25, 2026
@juan-fernandez juan-fernandez marked this pull request as ready for review February 25, 2026 12:42
@juan-fernandez juan-fernandez requested review from a team as code owners February 25, 2026 12:42
@juan-fernandez juan-fernandez merged commit f40634e into master Feb 25, 2026
846 of 847 checks passed
@juan-fernandez juan-fernandez deleted the juan-fernandez/add-error-information-tags branch February 25, 2026 16:55
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Feb 26, 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.

2 participants