Skip to content

fix(aiguard): resolve endpoint host correctly for regional Datadog sites#9040

Merged
avara1986 merged 2 commits into
masterfrom
avara/aiguard-endpoint-regional-sites
Jun 24, 2026
Merged

fix(aiguard): resolve endpoint host correctly for regional Datadog sites#9040
avara1986 merged 2 commits into
masterfrom
avara/aiguard-endpoint-regional-sites

Conversation

@avara1986

Copy link
Copy Markdown
Member

What does this PR do?

Fixes AI Guard SDK endpoint resolution for regional Datadog sites. The client previously prepended the app. subdomain to the configured site unconditionally, producing an invalid host such as app.us3.datadoghq.com for regional data centers.

It now prepends app. only when the site is a single-level domain (one dot), otherwise it uses the site as-is — mirroring the Python tracer logic:

site = f"app.{config._dd_site}" if config._dd_site.count(".") == 1 else config._dd_site
endpoint = f"https://{site}/api/v2/ai-guard"

Resulting hosts:

  • datadoghq.com / datad0g.com / ddog-gov.comhttps://app.<site>/api/v2/ai-guard
  • us3.datadoghq.com / ap1.datadoghq.comhttps://<site>/api/v2/ai-guard

Motivation

AI Guard requests on regional sites were being sent to a non-existent app.<region>.datadoghq.com host.

Change log entry

Fix AI Guard endpoint resolution for regional Datadog sites.

Additional Notes

  • Jira: APPSEC-68649
  • A companion task (APPSEC-68650) tracks the same defect in the Ruby tracer.
  • Also hardened the existing endpoint discovery test, which mutated shared config (delete newConfig.experimental.aiguard.endpoint on a shallow copy) and would otherwise break sibling tests under the new code path. Added regional-site cases.

🤖 Generated with Claude Code

The AI Guard SDK client unconditionally prepended the `app.` subdomain to
the configured site, producing an invalid host (e.g. `app.us3.datadoghq.com`)
for regional data centers. Prepend `app.` only when the site is a
single-level domain, mirroring the Python tracer logic.

APPSEC-68649

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dd-octo-sts

dd-octo-sts Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.31 MB
Deduped: 7.38 MB
No deduping: 7.38 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.2.0 | 104.26 kB | 843.44 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-official

datadog-official Bot commented Jun 23, 2026

Copy link
Copy Markdown

Tests

Fix all issues with BitsAI

⚠️ Warnings

🧪 18 Tests failed in 1 job

System Tests | main   GitHub Actions

tests.appsec.rasp.test_api10.Test_API10_response_body_ignored_content_length_missing.test_api10_response_body_ignored_content_length_missing[express4] from system_tests_suite   View in Datadog
AssertionError: assert 404 == 200
 &#43;  where 404 = HttpResponse(status_code:404, headers:{&#39;X-Powered-By&#39;: &#39;Express&#39;, &#39;Strict-Transport-Security&#39;: &#39;max-age=31536000&#39;, &#39;X-...rror&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;pre&gt;Cannot GET /external_request/body_limit/content_length_missing&lt;/pre&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n).status_code
 &#43;    where HttpResponse(status_code:404, headers:{&#39;X-Powered-By&#39;: &#39;Express&#39;, &#39;Strict-Transport-Security&#39;: &#39;max-age=31536000&#39;, &#39;X-...rror&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;pre&gt;Cannot GET /external_request/body_limit/content_length_missing&lt;/pre&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n) = &lt;tests.appsec.rasp.test_api10.Test_API10_response_body_ignored_content_length_missing object at 0x7fb4c809e390&gt;.r

self = &lt;tests.appsec.rasp.test_api10.Test_API10_response_body_ignored_content_length_missing object at 0x7fb4c809e390&gt;

    def test_api10_response_body_ignored_content_length_missing(self):
&gt;       assert self.r.status_code == 200
E       AssertionError: assert 404 == 200
E        &#43;  where 404 = HttpResponse(status_code:404, headers:{&#39;X-Powered-By&#39;: &#39;Express&#39;, &#39;Strict-Transport-Security&#39;: &#39;max-age=31536000&#39;, &#39;X-...rror&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;pre&gt;Cannot GET /external_request/body_limit/content_length_missing&lt;/pre&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n).status_code
...
tests.appsec.rasp.test_api10.Test_API10_response_body_ignored_content_length_missing.test_api10_response_body_ignored_content_length_missing[express4-typescript] from system_tests_suite   View in Datadog
AssertionError: assert 404 == 200
 &#43;  where 404 = HttpResponse(status_code:404, headers:{&#39;X-Powered-By&#39;: &#39;Express&#39;, &#39;Strict-Transport-Security&#39;: &#39;max-age=31536000&#39;, &#39;X-...rror&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;pre&gt;Cannot GET /external_request/body_limit/content_length_missing&lt;/pre&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n).status_code
 &#43;    where HttpResponse(status_code:404, headers:{&#39;X-Powered-By&#39;: &#39;Express&#39;, &#39;Strict-Transport-Security&#39;: &#39;max-age=31536000&#39;, &#39;X-...rror&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;pre&gt;Cannot GET /external_request/body_limit/content_length_missing&lt;/pre&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n) = &lt;tests.appsec.rasp.test_api10.Test_API10_response_body_ignored_content_length_missing object at 0x7f8d347490d0&gt;.r

self = &lt;tests.appsec.rasp.test_api10.Test_API10_response_body_ignored_content_length_missing object at 0x7f8d347490d0&gt;

    def test_api10_response_body_ignored_content_length_missing(self):
&gt;       assert self.r.status_code == 200
E       AssertionError: assert 404 == 200
E        &#43;  where 404 = HttpResponse(status_code:404, headers:{&#39;X-Powered-By&#39;: &#39;Express&#39;, &#39;Strict-Transport-Security&#39;: &#39;max-age=31536000&#39;, &#39;X-...rror&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;pre&gt;Cannot GET /external_request/body_limit/content_length_missing&lt;/pre&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n).status_code
...

View all 18 test failures

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

Useful? React with 👍 / 👎

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

@pr-commenter

pr-commenter Bot commented Jun 23, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-24 06:44:00

Comparing candidate commit 4db2ec1 in PR branch avara/aiguard-endpoint-regional-sites with baseline commit 72844ef in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1952 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-24

  • unstable execution_time [-152.941ms; +145.868ms] or [-5.827%; +5.558%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-167747.834µs; +168110.534µs] or [-6.767%; +6.781%]

scenario:appsec-control-20

  • unstable execution_time [-130.383ms; +123.801ms] or [-7.680%; +7.293%]

scenario:appsec-control-24

  • unstable execution_time [-92249.325µs; +92906.025µs] or [-7.694%; +7.748%]

scenario:appsec-control-26

  • unstable execution_time [-98615.147µs; +99220.014µs] or [-8.307%; +8.358%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-232.138ms; +479.265ms] or [-4.786%; +9.882%]
  • unstable execution_time [-236.241ms; +477.704ms] or [-4.797%; +9.701%]

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

  • unstable cpu_user_time [-255.991ms; +320.536ms] or [-5.593%; +7.004%]
  • unstable execution_time [-270.812ms; +340.657ms] or [-5.558%; +6.991%]
  • unstable max_rss_usage [-27.059MB; +34.801MB] or [-4.911%; +6.316%]

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

  • unstable max_rss_usage [-12.424MB; +6.768MB] or [-9.004%; +4.905%]

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

  • unstable max_rss_usage [-10.130MB; +6.156MB] or [-6.262%; +3.805%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-6520.774KB; +4700.108KB] or [-7.953%; +5.732%]

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.46%. Comparing base (72844ef) to head (4db2ec1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9040      +/-   ##
==========================================
+ Coverage   92.94%   93.46%   +0.51%     
==========================================
  Files         879      879              
  Lines       50487    50489       +2     
  Branches     9942     9944       +2     
==========================================
+ Hits        46925    47189     +264     
+ Misses       3562     3300     -262     
Flag Coverage Δ
aiguard-integration-active 41.73% <33.33%> (-0.01%) ⬇️
aiguard-integration-latest 41.74% <33.33%> (-0.01%) ⬇️
aiguard-integration-maintenance 41.81% <33.33%> (-0.02%) ⬇️
aiguard-macos 34.57% <100.00%> (-0.07%) ⬇️
aiguard-ubuntu 34.72% <100.00%> (-0.07%) ⬇️
aiguard-windows 34.40% <100.00%> (-0.07%) ⬇️
apm-capabilities-tracing-macos 48.18% <0.00%> (+0.03%) ⬆️
apm-capabilities-tracing-ubuntu-active 48.35% <0.00%> (+0.17%) ⬆️
apm-capabilities-tracing-ubuntu-latest 48.35% <0.00%> (-0.01%) ⬇️
apm-capabilities-tracing-ubuntu-maintenance 48.40% <0.00%> (-0.01%) ⬇️
apm-capabilities-tracing-ubuntu-oldest 48.41% <0.00%> (+<0.01%) ⬆️
apm-capabilities-tracing-windows 48.18% <0.00%> (-0.01%) ⬇️
apm-integrations-aerospike-18-gte.5.2.0 33.09% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-20-gte.5.5.0 33.11% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.5.12.1 33.11% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.6.0.0 33.11% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-eol- 33.02% <ø> (-0.08%) ⬇️
apm-integrations-child-process 34.02% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-18 40.02% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-20 40.04% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-22 40.04% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-24 39.94% <ø> (-0.08%) ⬇️
apm-integrations-couchbase-18 33.27% <ø> (-0.08%) ⬇️
apm-integrations-couchbase-eol 33.15% <ø> (+0.04%) ⬆️
apm-integrations-dns 32.95% <ø> (-0.08%) ⬇️
apm-integrations-elasticsearch 34.11% <ø> (-0.07%) ⬇️
apm-integrations-http-latest 41.85% <ø> (-0.07%) ⬇️
apm-integrations-http-maintenance 41.94% <ø> (-0.07%) ⬇️
apm-integrations-http-oldest 41.87% <ø> (-0.07%) ⬇️
apm-integrations-http2 39.05% <ø> (-0.08%) ⬇️
apm-integrations-kafkajs-latest 40.07% <ø> (-0.17%) ⬇️
apm-integrations-kafkajs-oldest 40.26% <ø> (+0.02%) ⬆️
apm-integrations-net 33.64% <ø> (-0.08%) ⬇️
apm-integrations-next-11.1.4 36.66% <ø> (ø)
apm-integrations-next-12.3.7 36.66% <ø> (ø)
apm-integrations-next-13.0.0 29.08% <ø> (-0.08%) ⬇️
apm-integrations-next-13.2.0 29.08% <ø> (-0.08%) ⬇️
apm-integrations-next-13.5.11 29.22% <ø> (-0.08%) ⬇️
apm-integrations-next-14.0.0 29.15% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.35 29.15% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.6 29.15% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.7 29.19% <ø> (-0.04%) ⬇️
apm-integrations-next-15.0.0 29.15% <ø> (-0.08%) ⬇️
apm-integrations-next-15.4.0 29.22% <ø> (-0.08%) ⬇️
apm-integrations-next-latest 29.25% <ø> (-0.08%) ⬇️
apm-integrations-oracledb 33.96% <ø> (-0.08%) ⬇️
apm-integrations-prisma-18-gte.6.16.0.and.lt.7.0.0 34.80% <ø> (-0.08%) ⬇️
apm-integrations-prisma-latest-all 34.24% <ø> (-0.07%) ⬇️
apm-integrations-restify 35.20% <ø> (-0.08%) ⬇️
apm-integrations-sharedb 32.45% <ø> (-0.08%) ⬇️
apm-integrations-tedious 33.38% <ø> (-0.08%) ⬇️
appsec-express 50.92% <ø> (-0.04%) ⬇️
appsec-fastify 47.70% <ø> (-0.06%) ⬇️
appsec-graphql 47.74% <ø> (-0.06%) ⬇️
appsec-integration-active 36.10% <ø> (ø)
appsec-integration-latest 36.10% <ø> (ø)
appsec-integration-maintenance 36.16% <ø> (ø)
appsec-integration-oldest 36.15% <ø> (ø)
appsec-kafka 40.27% <ø> (-0.12%) ⬇️
appsec-ldapjs 39.81% <ø> (-0.07%) ⬇️
appsec-lodash 39.73% <ø> (-0.07%) ⬇️
appsec-macos 56.99% <ø> (-0.13%) ⬇️
appsec-mongodb-core 43.89% <ø> (-0.06%) ⬇️
appsec-mongoose 44.75% <ø> (-0.05%) ⬇️
appsec-mysql 46.97% <ø> (-0.11%) ⬇️
appsec-next-latest-11.1.4 27.37% <ø> (-0.07%) ⬇️
appsec-next-latest-12.3.7 27.43% <ø> (ø)
appsec-next-latest-13.0.0 29.16% <ø> (-0.08%) ⬇️
appsec-next-latest-13.2.0 29.19% <ø> (-0.08%) ⬇️
appsec-next-latest-13.5.11 29.28% <ø> (-0.08%) ⬇️
appsec-next-latest-14.0.0 29.21% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.35 29.21% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.6 29.21% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.7 29.21% <ø> (-0.08%) ⬇️
appsec-next-latest-15.0.0 29.21% <ø> (-0.08%) ⬇️
appsec-next-latest-latest 29.25% <ø> (-0.08%) ⬇️
appsec-next-oldest-11.1.4 27.43% <ø> (-0.07%) ⬇️
appsec-next-oldest-12.3.7 29.22% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.0.0 29.22% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.2.0 29.48% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.5.11 29.58% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.0.0 29.52% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.35 29.52% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.6 29.52% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.7 29.52% <ø> (-0.08%) ⬇️
appsec-next-oldest-15.0.0 29.52% <ø> (-0.08%) ⬇️
appsec-next-oldest-latest 27.63% <ø> (ø)
appsec-node-serialize 39.05% <ø> (-0.07%) ⬇️
appsec-passport 42.65% <ø> (-0.07%) ⬇️
appsec-postgres 46.70% <ø> (-0.06%) ⬇️
appsec-sourcing 38.48% <ø> (-0.07%) ⬇️
appsec-stripe 40.52% <ø> (-0.08%) ⬇️
appsec-template 39.31% <ø> (-0.07%) ⬇️
appsec-ubuntu 57.10% <ø> (-0.06%) ⬇️
appsec-windows 56.93% <ø> (+0.04%) ⬆️
debugger-ubuntu-active 43.47% <ø> (+0.07%) ⬆️
debugger-ubuntu-latest 43.47% <ø> (+0.07%) ⬆️
debugger-ubuntu-maintenance 43.87% <ø> (ø)
debugger-ubuntu-oldest 43.89% <ø> (ø)
instrumentations-instrumentation-ai 45.53% <ø> (ø)
instrumentations-instrumentation-aws-sdk 45.11% <ø> (ø)
instrumentations-instrumentation-bluebird 27.60% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-body-parser 35.65% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 33.32% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-connect 48.51% <ø> (ø)
instrumentations-instrumentation-cookie-parser 29.51% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-couchbase-18 46.23% <ø> (ø)
instrumentations-instrumentation-couchbase-eol 46.23% <ø> (ø)
instrumentations-instrumentation-crypto 27.57% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express 29.71% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 29.62% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-multi-version 41.80% <ø> (ø)
instrumentations-instrumentation-express-session 35.47% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-fastify 48.47% <ø> (ø)
instrumentations-instrumentation-fetch 45.21% <ø> (ø)
instrumentations-instrumentation-fs 27.28% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-generic-pool 27.46% <ø> (ø)
instrumentations-instrumentation-hono 28.82% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-http 37.90% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-http-client-options 37.51% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-kafkajs 49.19% <ø> (ø)
instrumentations-instrumentation-knex 27.59% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-koa 46.11% <ø> (ø)
instrumentations-instrumentation-light-my-request 35.29% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 28.70% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-multer 35.32% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 33.43% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-openai-lifecycle 46.21% <ø> (ø)
instrumentations-instrumentation-otel-sdk-trace 25.45% <ø> (ø)
instrumentations-instrumentation-passport 39.21% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-http 38.90% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-local 39.36% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-pg 33.16% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise 27.55% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise-js 27.55% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-q 27.58% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-restify 47.75% <ø> (ø)
instrumentations-instrumentation-router 43.64% <ø> (ø)
instrumentations-instrumentation-stripe 28.10% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-url 27.40% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-when 27.56% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-zlib 27.45% <ø> (-0.08%) ⬇️
instrumentations-integration-esbuild-0.16.12-active 24.72% <ø> (ø)
instrumentations-integration-esbuild-0.16.12-latest 24.72% <ø> (ø)
instrumentations-integration-esbuild-0.16.12-maintenance 18.74% <ø> (ø)
instrumentations-integration-esbuild-0.16.12-oldest 18.73% <ø> (ø)
instrumentations-integration-esbuild-latest-active 24.72% <ø> (ø)
instrumentations-integration-esbuild-latest-latest 24.72% <ø> (ø)
instrumentations-integration-esbuild-latest-maintenance 18.74% <ø> (ø)
instrumentations-integration-esbuild-latest-oldest 18.73% <ø> (ø)
llmobs-ai 35.11% <ø> (-0.07%) ⬇️
llmobs-anthropic 36.53% <ø> (-0.07%) ⬇️
llmobs-bedrock 36.02% <ø> (-0.07%) ⬇️
llmobs-google-genai 35.96% <ø> (-0.07%) ⬇️
llmobs-langchain 35.47% <ø> (-0.06%) ⬇️
llmobs-openai-latest 39.43% <ø> (-0.07%) ⬇️
llmobs-openai-oldest 39.51% <ø> (-0.07%) ⬇️
llmobs-sdk-active 43.37% <ø> (-0.08%) ⬇️
llmobs-sdk-latest 43.37% <ø> (-0.08%) ⬇️
llmobs-sdk-maintenance 43.47% <ø> (-0.08%) ⬇️
llmobs-sdk-oldest 43.45% <ø> (-0.08%) ⬇️
llmobs-vertex-ai 35.63% <ø> (-0.07%) ⬇️
master-coverage 93.46% <100.00%> (?)
openfeature-macos 37.48% <ø> (-0.01%) ⬇️
openfeature-ubuntu 37.61% <ø> (ø)
openfeature-unit-active 49.87% <ø> (ø)
openfeature-unit-latest 49.87% <ø> (ø)
openfeature-unit-maintenance 50.24% <ø> (ø)
openfeature-unit-oldest 50.24% <ø> (ø)
openfeature-windows 37.36% <ø> (ø)
platform-core 46.47% <ø> (ø)
platform-esbuild 47.49% <ø> (ø)
platform-instrumentations-misc 29.49% <ø> (ø)
platform-integration-active 47.06% <ø> (ø)
platform-integration-latest 47.06% <ø> (ø)
platform-integration-maintenance 47.17% <ø> (-0.02%) ⬇️
platform-integration-oldest 47.32% <ø> (ø)
platform-shimmer 47.50% <ø> (ø)
platform-unit-guardrails 44.42% <ø> (ø)
platform-webpack 18.27% <ø> (ø)
plugins-aws-durable-execution-sdk-js 32.82% <ø> (-0.07%) ⬇️
plugins-axios 35.46% <ø> (+0.01%) ⬆️
plugins-azure-cosmos 35.93% <ø> (-0.08%) ⬇️
plugins-azure-event-hubs 34.81% <ø> (ø)
plugins-azure-service-bus 35.31% <ø> (?)
plugins-body-parser 36.43% <ø> (ø)
plugins-bullmq 39.42% <ø> (-0.08%) ⬇️
plugins-cassandra 33.58% <ø> (-0.08%) ⬇️
plugins-cookie 40.72% <ø> (ø)
plugins-cookie-parser 40.55% <ø> (ø)
plugins-crypto 42.71% <ø> (ø)
plugins-dd-trace-api 33.19% <ø> (-0.08%) ⬇️
plugins-express-mongo-sanitize 40.60% <ø> (ø)
plugins-express-session 40.46% <ø> (ø)
plugins-fastify 37.77% <ø> (-0.07%) ⬇️
plugins-fetch 34.51% <ø> (-0.08%) ⬇️
plugins-fs 33.60% <ø> (-0.08%) ⬇️
plugins-generic-pool 40.02% <ø> (ø)
plugins-google-cloud-pubsub 41.32% <ø> (-0.06%) ⬇️
plugins-grpc 36.46% <ø> (-0.07%) ⬇️
plugins-handlebars 40.60% <ø> (ø)
plugins-hapi 35.55% <ø> (-0.08%) ⬇️
plugins-hono 35.88% <ø> (-0.08%) ⬇️
plugins-ioredis 34.23% <ø> (-0.08%) ⬇️
plugins-jest 26.98% <ø> (ø)
plugins-knex 40.06% <ø> (ø)
plugins-langgraph 32.30% <ø> (-0.08%) ⬇️
plugins-ldapjs 39.02% <ø> (ø)
plugins-light-my-request 40.16% <ø> (ø)
plugins-limitd-client 27.97% <ø> (-0.02%) ⬇️
plugins-lodash 40.21% <ø> (ø)
plugins-mariadb 35.07% <ø> (?)
plugins-memcached 33.62% <ø> (-0.08%) ⬇️
plugins-microgateway-core 34.71% <ø> (-0.08%) ⬇️
plugins-modelcontextprotocol-sdk 32.26% <ø> (-0.08%) ⬇️
plugins-moleculer 36.52% <ø> (-0.08%) ⬇️
plugins-mongodb 35.72% <ø> (-0.17%) ⬇️
plugins-mongodb-core 35.34% <ø> (-0.08%) ⬇️
plugins-mongoose 34.32% <ø> (-0.08%) ⬇️
plugins-multer 40.52% <ø> (ø)
plugins-mysql 34.54% <ø> (-0.08%) ⬇️
plugins-mysql2 34.87% <ø> (?)
plugins-nats 36.24% <ø> (-0.08%) ⬇️
plugins-node-serialize 40.75% <ø> (ø)
plugins-opensearch 33.52% <ø> (-0.08%) ⬇️
plugins-passport-http 40.33% <ø> (ø)
plugins-pino 29.81% <ø> (?)
plugins-postgres 34.59% <ø> (-0.08%) ⬇️
plugins-process 42.71% <ø> (ø)
plugins-pug 40.72% <ø> (ø)
plugins-redis 34.20% <ø> (?)
plugins-router 37.98% <ø> (-0.08%) ⬇️
plugins-sequelize 39.98% <ø> (?)
plugins-test-and-upstream-amqp10 33.77% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-amqplib 38.90% <ø> (-0.24%) ⬇️
plugins-test-and-upstream-apollo 34.78% <ø> (-0.07%) ⬇️
plugins-test-and-upstream-avsc 33.66% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-bunyan 29.03% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-connect 36.26% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-graphql 35.93% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-koa 35.82% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-protobufjs 33.89% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-rhea 39.02% <ø> (-0.08%) ⬇️
plugins-undici 34.94% <ø> (-0.07%) ⬇️
plugins-url 42.71% <ø> (ø)
plugins-valkey 33.73% <ø> (-0.08%) ⬇️
plugins-vm 42.71% <ø> (ø)
plugins-winston 29.70% <ø> (-0.08%) ⬇️
plugins-ws 37.00% <ø> (-0.14%) ⬇️
profiling-macos 42.98% <ø> (-0.12%) ⬇️
profiling-ubuntu 43.41% <ø> (-0.07%) ⬇️
profiling-windows 40.86% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-aws-sdk 33.05% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-bedrockruntime 31.91% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-client 36.33% <ø> (ø)
serverless-aws-sdk-latest-dynamodb 33.91% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-eventbridge 27.09% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-kinesis 37.08% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-lambda 34.32% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-s3 32.29% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-serverless-peer-service 39.21% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-sns ?
serverless-aws-sdk-latest-sqs 37.71% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-stepfunctions 32.91% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-util 46.87% <ø> (ø)
serverless-aws-sdk-oldest-aws-sdk 33.16% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-bedrockruntime 32.00% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-client 36.90% <ø> (ø)
serverless-aws-sdk-oldest-dynamodb 34.00% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-eventbridge 27.17% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-kinesis 37.25% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-lambda 34.42% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-s3 32.43% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-serverless-peer-service 39.30% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-sns 38.18% <ø> (-0.19%) ⬇️
serverless-aws-sdk-oldest-sqs 37.78% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-stepfunctions 33.01% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-util 47.64% <ø> (ø)
serverless-azure-durable-functions 36.93% <ø> (+0.15%) ⬆️
serverless-azure-functions-eventhubs 38.36% <ø> (ø)
serverless-azure-functions-servicebus 38.42% <ø> (ø)
serverless-lambda 34.29% <ø> (-0.09%) ⬇️
test-optimization-cucumber-latest-7.0.0 49.80% <ø> (+0.11%) ⬆️
test-optimization-cucumber-latest-latest 52.50% <ø> (+0.11%) ⬆️
test-optimization-cucumber-oldest-7.0.0 49.88% <ø> (+0.11%) ⬆️
test-optimization-cypress-latest-12.0.0-commonJS 49.12% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-12.0.0-esm 49.15% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-14.5.4-commonJS 48.97% <ø> (+1.78%) ⬆️
test-optimization-cypress-latest-14.5.4-esm 49.00% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-commonJS 49.45% <ø> (+0.20%) ⬆️
test-optimization-cypress-latest-latest-esm 49.48% <ø> (+1.79%) ⬆️
test-optimization-cypress-oldest-12.0.0-commonJS 49.21% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-esm 49.24% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-commonJS 49.05% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-esm 49.08% <ø> (+0.07%) ⬆️
test-optimization-jest-latest-latest 55.20% <ø> (+1.94%) ⬆️
test-optimization-jest-latest-oldest 54.14% <ø> (+0.07%) ⬆️
test-optimization-jest-oldest-latest 53.41% <ø> (-1.77%) ⬇️
test-optimization-jest-oldest-oldest 54.15% <ø> (+2.33%) ⬆️
test-optimization-mocha-latest-latest 53.46% <ø> (+0.08%) ⬆️
test-optimization-mocha-latest-oldest 51.04% <ø> (+0.08%) ⬆️
test-optimization-mocha-oldest-latest 53.59% <ø> (+0.10%) ⬆️
test-optimization-mocha-oldest-oldest 51.05% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-active-test-span 44.12% <ø> (+0.26%) ⬆️
test-optimization-playwright-latest-latest-playwright-atr 42.92% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-latest-playwright-efd 43.34% <ø> (?)
test-optimization-playwright-latest-latest-playwright-final-status 43.38% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-impacted-tests 42.87% <ø> (ø)
test-optimization-playwright-latest-latest-playwright-reporting 42.96% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-test-management 44.41% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-active-test-span 44.08% <ø> (+0.26%) ⬆️
test-optimization-playwright-latest-oldest-playwright-atr 42.98% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-efd 43.27% <ø> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-final-status 43.32% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-impacted-tests 42.80% <ø> (ø)
test-optimization-playwright-latest-oldest-playwright-reporting 42.76% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-oldest-playwright-test-management 44.34% <ø> (+0.07%) ⬆️
test-optimization-playwright-oldest-latest-playwright-active-test-span 44.34% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-atr 43.00% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-efd 43.39% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-final-status 43.48% <ø> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-impacted-tests 42.95% <ø> (ø)
test-optimization-playwright-oldest-latest-playwright-reporting 43.01% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-test-management 44.47% <ø> (+0.06%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-active-test-span 44.16% <ø> (?)
test-optimization-playwright-oldest-oldest-playwright-atr 43.07% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-efd 43.33% <ø> (+0.09%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-final-status 43.40% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-impacted-tests 42.89% <ø> (ø)
test-optimization-playwright-oldest-oldest-playwright-reporting 42.82% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-test-management 44.45% <ø> (+0.12%) ⬆️
test-optimization-selenium-latest 45.23% <ø> (+0.06%) ⬆️
test-optimization-selenium-oldest 45.07% <ø> (?)
test-optimization-testopt-active 48.22% <ø> (+0.12%) ⬆️
test-optimization-testopt-latest 48.22% <ø> (+0.12%) ⬆️
test-optimization-testopt-maintenance 48.20% <ø> (+0.13%) ⬆️
test-optimization-testopt-oldest 49.30% <ø> (?)
test-optimization-vitest-latest 50.68% <ø> (+1.21%) ⬆️
test-optimization-vitest-oldest 48.04% <ø> (+0.31%) ⬆️

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.

@avara1986 avara1986 marked this pull request as ready for review June 24, 2026 06:48
@avara1986 avara1986 requested a review from a team as a code owner June 24, 2026 06:48
@avara1986 avara1986 merged commit a5df464 into master Jun 24, 2026
1337 of 1350 checks passed
@avara1986 avara1986 deleted the avara/aiguard-endpoint-regional-sites branch June 24, 2026 08:08
cbasitodx pushed a commit that referenced this pull request Jun 24, 2026
…tes (#9040)

The AI Guard SDK client unconditionally prepended the `app.` subdomain to
the configured site, producing an invalid host (e.g. `app.us3.datadoghq.com`)
for regional data centers. Prepend `app.` only when the site is a
single-level domain, mirroring the Python tracer logic.

APPSEC-68649

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dd-octo-sts Bot pushed a commit that referenced this pull request Jun 25, 2026
…tes (#9040)

The AI Guard SDK client unconditionally prepended the `app.` subdomain to
the configured site, producing an invalid host (e.g. `app.us3.datadoghq.com`)
for regional data centers. Prepend `app.` only when the site is a
single-level domain, mirroring the Python tracer logic.

APPSEC-68649

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 25, 2026
pabloerhard pushed a commit that referenced this pull request Jun 26, 2026
…tes (#9040)

The AI Guard SDK client unconditionally prepended the `app.` subdomain to
the configured site, producing an invalid host (e.g. `app.us3.datadoghq.com`)
for regional data centers. Prepend `app.` only when the site is a
single-level domain, mirroring the Python tracer logic.

APPSEC-68649

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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