Skip to content

feat(evp_proxy): add direct intake route - #9739

Merged
leoromanovsky merged 2 commits into
masterfrom
agent/evp-direct-intake-route
Aug 18, 2026
Merged

feat(evp_proxy): add direct intake route#9739
leoromanovsky merged 2 commits into
masterfrom
agent/evp-direct-intake-route

Conversation

@leoromanovsky

Copy link
Copy Markdown
Contributor

Stacked on #9738.

Motivation

Our business goal is to make OpenFeature client integration simple. Exposure delivery must work without a local Agent or serverless receiver.

The shared EVP utilities support discovery. They do not create an authenticated direct intake route.

Changes and Decisions

  • Add a generic helper that creates a direct EVP route from the configured API key and site.
  • Respect HTTPS_PROXY and NO_PROXY for direct delivery.
  • Let the common request transport use a caller-supplied connection agent.
  • Keep discovery and product route selection outside this helper.

@dd-octo-sts

dd-octo-sts Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.21 MB
Deduped: 8.99 MB
No deduping: 8.99 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 445.14 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | https-proxy-agent | 7.0.6 | 27.71 kB | 101.18 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB | | proxy-from-env | 2.1.0 | 15.64 kB | 15.64 kB |

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

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Aug 9, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog retried 1 test - 1 passed on retry View in Datadog

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.54% (+0.00%)

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

@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.54%. Comparing base (f125075) to head (d6595d0).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #9739    +/-   ##
========================================
  Coverage   98.54%   98.54%            
========================================
  Files         981      982     +1     
  Lines      144349   144416    +67     
  Branches    12792    13454   +662     
========================================
+ Hits       142243   142311    +68     
+ Misses       2106     2105     -1     
Flag Coverage Δ
aiguard 57.43% <100.00%> (-0.02%) ⬇️
aiguard-integration 55.46% <100.00%> (+<0.01%) ⬆️
apm-bucket-0 57.61% <100.00%> (-0.02%) ⬇️
apm-bucket-1 62.80% <100.00%> (-0.02%) ⬇️
apm-bucket-2 61.63% <100.00%> (-0.02%) ⬇️
apm-bucket-3 59.26% <100.00%> (-0.02%) ⬇️
apm-capabilities-tracing 62.35% <100.00%> (+<0.01%) ⬆️
apm-integrations-aerospike 55.49% <100.00%> (-0.02%) ⬇️
apm-integrations-confluentinc-kafka-javascript 60.61% <100.00%> (-0.02%) ⬇️
apm-integrations-couchbase 56.19% <100.00%> (-0.02%) ⬇️
apm-integrations-http 61.36% <100.00%> (-0.02%) ⬇️
apm-integrations-kafkajs 61.13% <100.00%> (-0.02%) ⬇️
apm-integrations-next 58.87% <100.00%> (-0.02%) ⬇️
apm-integrations-prisma 58.31% <100.00%> (-0.02%) ⬇️
appsec 71.50% <100.00%> (+<0.01%) ⬆️
appsec-express_fastify_graphql 68.90% <100.00%> (-0.02%) ⬇️
appsec-integration 49.60% <100.00%> (+<0.01%) ⬆️
appsec-kafka_ldapjs_lodash 62.87% <100.00%> (-0.02%) ⬇️
appsec-mongodb-core_mongoose_mysql 66.35% <100.00%> (-0.02%) ⬇️
appsec-next 56.23% <100.00%> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 65.76% <100.00%> (-0.02%) ⬇️
appsec-sourcing_stripe_template 64.20% <100.00%> (-0.02%) ⬇️
debugger 63.65% <100.00%> (-0.04%) ⬇️
instrumentations-bucket-0 51.22% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-1 59.11% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-10 60.37% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-11 61.03% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-12 51.13% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-13 51.98% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-14 51.23% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-2 52.47% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-3 53.11% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-4 58.19% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-5 48.80% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-6 59.72% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-7 51.42% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-8 57.90% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-9 56.76% <100.00%> (-0.02%) ⬇️
instrumentations-instrumentation-couchbase 50.19% <100.00%> (-0.02%) ⬇️
instrumentations-integration-esbuild 33.87% <0.00%> (-0.01%) ⬇️
llmobs-ai_anthropic_bedrock 62.30% <100.00%> (-0.02%) ⬇️
llmobs-bucket-1 60.81% <100.00%> (-0.02%) ⬇️
llmobs-openai 61.50% <100.00%> (-0.02%) ⬇️
llmobs-openai-agents_vertex-ai 59.53% <100.00%> (-0.02%) ⬇️
llmobs-sdk 67.21% <100.00%> (-0.02%) ⬇️
master-coverage 98.54% <100.00%> (?)
openfeature 55.32% <100.00%> (+<0.01%) ⬆️
openfeature-unit 53.15% <100.00%> (+0.05%) ⬆️
platform-core_esbuild_instrumentations-misc 40.84% <100.00%> (-0.01%) ⬇️
platform-integration 59.90% <100.00%> (+<0.01%) ⬆️
platform-shimmer_unit-guardrails_webpack 38.49% <100.00%> (-0.01%) ⬇️
plugins-browser-bunyan_bullmq_cassandra 61.00% <100.00%> (-0.02%) ⬇️
plugins-bucket-0 56.41% <100.00%> (-0.02%) ⬇️
plugins-bucket-1 53.53% <100.00%> (+<0.01%) ⬆️
plugins-bucket-11 61.37% <100.00%> (-0.02%) ⬇️
plugins-bucket-18 60.93% <100.00%> (-0.02%) ⬇️
plugins-bucket-19 59.18% <100.00%> (-0.02%) ⬇️
plugins-bucket-20 61.09% <100.00%> (-0.02%) ⬇️
plugins-bucket-4 55.80% <100.00%> (-0.02%) ⬇️
plugins-cookie_cookie-parser_crypto 50.75% <100.00%> (-0.02%) ⬇️
plugins-fastify_fetch_fs 60.02% <100.00%> (-0.05%) ⬇️
plugins-generic-pool_google-cloud-pubsub_grpc 63.58% <100.00%> (-0.02%) ⬇️
plugins-handlebars_hapi_hono 58.03% <100.00%> (-0.02%) ⬇️
plugins-ioredis_knex_langgraph 56.49% <100.00%> (-0.02%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 57.74% <100.00%> (-0.02%) ⬇️
plugins-lodash_mariadb_memcached 57.43% <100.00%> (-0.02%) ⬇️
plugins-moleculer_mongodb_mongodb-core 60.88% <100.00%> (-0.02%) ⬇️
plugins-mongoose_multer_mysql 58.71% <100.00%> (-0.02%) ⬇️
plugins-mysql2_nats_node-serialize 60.34% <100.00%> (-0.02%) ⬇️
plugins-opensearch_passport-http_pino 58.59% <100.00%> (-0.02%) ⬇️
plugins-postgres_process_pug 57.74% <100.00%> (-0.02%) ⬇️
plugins-redis_router_sequelize 60.95% <100.00%> (-0.02%) ⬇️
plugins-test-and-upstream-rhea_undici_url 60.53% <100.00%> (-0.02%) ⬇️
plugins-valkey_vm_winston 57.12% <100.00%> (-0.06%) ⬇️
plugins-ws 58.72% <100.00%> (-0.02%) ⬇️
profiling 61.13% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-aws-sdk 54.38% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 50.45% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-bedrockruntime 54.17% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-client 55.69% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-dynamodb 54.99% <100.00%> (-0.03%) ⬇️
serverless-aws-sdk-eventbridge 56.47% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 58.53% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-lambda 56.71% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-s3 55.09% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-serverless-peer-service 59.11% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-sns 59.32% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-sqs 59.73% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-stepfunctions 54.92% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-util 50.97% <100.00%> (-0.02%) ⬇️
serverless-bucket-0 53.33% <100.00%> (+<0.01%) ⬆️
serverless-bucket-1 58.34% <100.00%> (-0.02%) ⬇️
test-optimization-cucumber 70.55% <100.00%> (-0.04%) ⬇️
test-optimization-cypress 64.74% <100.00%> (+0.05%) ⬆️
test-optimization-jest 72.09% <100.00%> (+0.12%) ⬆️
test-optimization-mocha 72.05% <100.00%> (+0.03%) ⬆️
test-optimization-playwright-playwright-atr 59.51% <100.00%> (-0.03%) ⬇️
test-optimization-playwright-playwright-efd 59.66% <100.00%> (-0.02%) ⬇️
test-optimization-playwright-playwright-final-status 59.82% <100.00%> (-0.02%) ⬇️
test-optimization-playwright-playwright-impacted-tests 59.38% <100.00%> (+0.09%) ⬆️
test-optimization-playwright-playwright-reporting 60.87% <100.00%> (-0.05%) ⬇️
test-optimization-playwright-playwright-test-management 60.31% <100.00%> (-0.25%) ⬇️
test-optimization-playwright-playwright-test-span 59.55% <100.00%> (-0.08%) ⬇️
test-optimization-selenium 58.77% <100.00%> (-0.15%) ⬇️
test-optimization-testopt 57.41% <100.00%> (+0.07%) ⬆️
test-optimization-vitest 72.70% <100.00%> (+0.02%) ⬆️
test-optimization-vitest-browser 58.61% <100.00%> (-0.02%) ⬇️
test-optimization-webdriverio 64.90% <100.00%> (+0.05%) ⬆️

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 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-18 17:25:13

Comparing candidate commit d6595d0 in PR branch agent/evp-direct-intake-route with baseline commit f125075 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2286 metrics, 6 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-iast-with-vulnerability-iast-enabled-default-config-20

  • unstable max_rss_usage [-16.103MB; +25.313MB] or [-4.271%; +6.714%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-293.910ms; +354.486ms] or [-6.060%; +7.309%]
  • unstable execution_time [-292.412ms; +352.776ms] or [-5.942%; +7.168%]
  • unstable throughput [-124760.500op/s; +101747.140op/s] or [-7.318%; +5.969%]

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

  • unstable max_rss_usage [-18.775MB; +34.487MB] or [-4.756%; +8.737%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-4399.480KB; +6122.813KB] or [-5.530%; +7.697%]

@leoromanovsky
leoromanovsky marked this pull request as ready for review August 10, 2026 00:23
@leoromanovsky
leoromanovsky requested a review from a team as a code owner August 10, 2026 00:23
@leoromanovsky
leoromanovsky requested a review from BridgeAR August 13, 2026 05:02
sameerank
sameerank previously approved these changes Aug 14, 2026
Comment thread packages/dd-trace/src/evp_proxy/direct.js
Base automatically changed from leo.romanovsky/evp-proxy-utilities to master August 18, 2026 16:33
@leoromanovsky
leoromanovsky requested review from a team as code owners August 18, 2026 16:33
@leoromanovsky
leoromanovsky requested review from btthomas and vjfridge and removed request for a team August 18, 2026 16:33

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

Datadog Autotest: PASS

More details

The direct route’s authenticated HTTPS construction and proxy selection align with the transport change that preserves caller-supplied agents; no concrete failure mode was identified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Datadog Autotest · Commit c16bffa · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@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: d6595d084e

ℹ️ 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/evp_proxy/direct.js
Comment thread packages/dd-trace/src/evp_proxy/direct.js

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

LTGM, thank you!

@leoromanovsky
leoromanovsky merged commit 6f638b1 into master Aug 18, 2026
727 of 728 checks passed
@leoromanovsky
leoromanovsky deleted the agent/evp-direct-intake-route branch August 18, 2026 17:29
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.

3 participants