Skip to content

feat(openfeature): select agentless exposure routes - #9741

Merged
leoromanovsky merged 1 commit into
masterfrom
agent/openfeature-agentless-exposure-routing
Aug 18, 2026
Merged

feat(openfeature): select agentless exposure routes#9741
leoromanovsky merged 1 commit into
masterfrom
agent/openfeature-agentless-exposure-routing

Conversation

@leoromanovsky

Copy link
Copy Markdown
Contributor

Stacked on #9740.

Motivation

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

OpenFeature exposure delivery already uses /info with Remote Configuration. It does not support optional discovery or direct fallback in agentless mode.

Changes and Decisions

  • Preserve Agent EVP v2 delivery for Remote Configuration.
  • In agentless mode, prefer an advertised EVP v4 route and then EVP v2.
  • Use authenticated direct intake when discovery fails or no compatible route exists.
  • Keep direct intake as a fallback after definitive local rejection.
  • Disable delivery with one warning when no local route or direct credentials exist.

Validation

The shared system-test contract ran locally against 2ea403582.

  • Agent: TEST_LIBRARY=nodejs ./run.sh FEATURE_FLAGGING_AND_EXPERIMENTATION tests/ffe/test_exposure_egress.py passed one test.
  • Direct: TEST_LIBRARY=nodejs ./run.sh FEATURE_FLAGGING_AND_EXPERIMENTATION_AGENTLESS_DIRECT tests/ffe/test_exposure_egress.py passed one test.
  • Sidecar: TEST_LIBRARY=nodejs ./run.sh FEATURE_FLAGGING_AND_EXPERIMENTATION_AGENTLESS_SERVERLESS tests/ffe/test_exposure_egress.py passed one test with serverless-init:1.9.13.

@dd-octo-sts

dd-octo-sts Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.25 MB
Deduped: 8.92 MB
No deduping: 8.92 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 | | 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 Aug 9, 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.55%

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

@pr-commenter

pr-commenter Bot commented Aug 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-18 22:28:46

Comparing candidate commit efc9e65 in PR branch agent/openfeature-agentless-exposure-routing with baseline commit 200d52a in branch master.

📊 Benchmarking dashboard

Found 4 performance improvements and 0 performance regressions! Performance is the same for 2280 metrics, 8 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 ----------------------------------'

scenario:plugin-elasticsearch-bulk-index-24

  • 🟩 cpu_user_time [-210.467ms; -77.634ms] or [-6.078%; -2.242%]
  • 🟩 execution_time [-209.754ms; -76.986ms] or [-6.051%; -2.221%]
  • 🟩 instructions [-2.1G instructions; -0.8G instructions] or [-5.661%; -2.157%]
  • 🟩 throughput [+1758.662op/s; +4766.670op/s] or [+2.215%; +6.005%]

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 [-20.869MB; +26.287MB] or [-5.619%; +7.079%]

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

  • unstable max_rss_usage [-15.743MB; +13.354MB] or [-6.476%; +5.493%]

scenario:debugger-line-probe-without-snapshot-24

  • unstable cpu_user_time [-745.392ms; +1121.710ms] or [-4.665%; +7.020%]
  • unstable max_rss_usage [-14.137MB; +16.824MB] or [-4.849%; +5.771%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-391.560ms; +311.536ms] or [-8.087%; +6.435%]
  • unstable execution_time [-392.364ms; +310.769ms] or [-7.986%; +6.325%]
  • unstable throughput [-108982.231op/s; +141654.544op/s] or [-6.379%; +8.292%]

scenario:plugin-claude-agent-sdk-compact-stream-scan-24

  • unstable cpu_usage_percentage [-5.565%; +4.960%]

@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 (200d52a) to head (efc9e65).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9741      +/-   ##
==========================================
+ Coverage   92.11%   98.54%   +6.43%     
==========================================
  Files         965      982      +17     
  Lines      144197   145051     +854     
  Branches    11428    12761    +1333     
==========================================
+ Hits       132831   142945   +10114     
+ Misses      11366     2106    -9260     
Flag Coverage Δ
aiguard 57.18% <ø> (-0.03%) ⬇️
aiguard-integration 55.25% <ø> (ø)
apm-bucket-0 57.35% <ø> (-0.03%) ⬇️
apm-bucket-1 62.52% <ø> (-0.02%) ⬇️
apm-bucket-2 61.34% <ø> (-0.03%) ⬇️
apm-bucket-3 58.99% <ø> (-0.03%) ⬇️
apm-capabilities-tracing 62.17% <41.66%> (-0.04%) ⬇️
apm-integrations-aerospike 55.06% <ø> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 60.33% <ø> (-0.03%) ⬇️
apm-integrations-couchbase 55.94% <ø> (-0.03%) ⬇️
apm-integrations-http 61.10% <ø> (-0.02%) ⬇️
apm-integrations-kafkajs 60.84% <ø> (-0.03%) ⬇️
apm-integrations-next 58.61% <ø> (-0.03%) ⬇️
apm-integrations-prisma 58.07% <ø> (-0.02%) ⬇️
appsec 71.16% <ø> (-0.05%) ⬇️
appsec-express_fastify_graphql 68.63% <ø> (-0.02%) ⬇️
appsec-integration 49.51% <ø> (+<0.01%) ⬆️
appsec-kafka_ldapjs_lodash 62.60% <ø> (-0.02%) ⬇️
appsec-mongodb-core_mongoose_mysql 66.09% <ø> (-0.02%) ⬇️
appsec-next 56.03% <ø> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 65.50% <ø> (-0.02%) ⬇️
appsec-sourcing_stripe_template 63.94% <ø> (-0.02%) ⬇️
debugger 63.36% <ø> (-0.02%) ⬇️
instrumentations-bucket-0 51.01% <ø> (-0.03%) ⬇️
instrumentations-bucket-1 58.85% <ø> (-0.03%) ⬇️
instrumentations-bucket-10 60.12% <ø> (-0.02%) ⬇️
instrumentations-bucket-11 60.77% <ø> (-0.02%) ⬇️
instrumentations-bucket-12 50.92% <ø> (-0.03%) ⬇️
instrumentations-bucket-13 51.78% <ø> (-0.03%) ⬇️
instrumentations-bucket-14 51.03% <ø> (-0.03%) ⬇️
instrumentations-bucket-2 52.26% <ø> (-0.03%) ⬇️
instrumentations-bucket-3 52.90% <ø> (-0.03%) ⬇️
instrumentations-bucket-4 57.94% <ø> (-0.03%) ⬇️
instrumentations-bucket-5 48.64% <ø> (-0.02%) ⬇️
instrumentations-bucket-6 59.44% <ø> (-0.03%) ⬇️
instrumentations-bucket-7 51.22% <ø> (-0.03%) ⬇️
instrumentations-bucket-8 57.66% <ø> (-0.02%) ⬇️
instrumentations-bucket-9 56.51% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-couchbase 49.80% <ø> (-0.03%) ⬇️
instrumentations-integration-esbuild 33.86% <ø> (ø)
llmobs-ai_anthropic_bedrock 62.05% <ø> (-0.02%) ⬇️
llmobs-bucket-1 60.58% <ø> (-0.02%) ⬇️
llmobs-openai 61.25% <ø> (-0.02%) ⬇️
llmobs-openai-agents_vertex-ai 59.29% <ø> (-0.02%) ⬇️
llmobs-sdk 67.50% <ø> (?)
master-coverage 98.54% <100.00%> (?)
openfeature 55.29% <75.00%> (?)
openfeature-unit 53.21% <100.00%> (+0.07%) ⬆️
platform-core_esbuild_instrumentations-misc 40.79% <ø> (?)
platform-integration 59.66% <ø> (?)
platform-shimmer_unit-guardrails_webpack 38.44% <ø> (?)
plugins-browser-bunyan_bullmq_cassandra 60.73% <ø> (?)
plugins-bucket-0 56.19% <ø> (?)
plugins-bucket-1 53.31% <ø> (?)
plugins-bucket-11 61.11% <ø> (?)
plugins-bucket-18 60.68% <ø> (?)
plugins-bucket-19 58.90% <ø> (?)
plugins-bucket-20 60.82% <ø> (?)
plugins-bucket-4 55.55% <ø> (?)
plugins-cookie_cookie-parser_crypto 50.54% <ø> (?)
plugins-fastify_fetch_fs 59.76% <ø> (-0.02%) ⬇️
plugins-generic-pool_google-cloud-pubsub_grpc 63.28% <ø> (-0.02%) ⬇️
plugins-handlebars_hapi_hono 57.78% <ø> (-0.03%) ⬇️
plugins-ioredis_knex_langgraph 56.25% <ø> (-0.03%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 57.48% <ø> (-0.03%) ⬇️
plugins-lodash_mariadb_memcached 57.18% <ø> (-0.03%) ⬇️
plugins-moleculer_mongodb_mongodb-core 60.60% <ø> (-0.03%) ⬇️
plugins-mongoose_multer_mysql 58.46% <ø> (-0.02%) ⬇️
plugins-mysql2_nats_node-serialize 60.07% <ø> (-0.03%) ⬇️
plugins-opensearch_passport-http_pino 58.33% <ø> (-0.03%) ⬇️
plugins-postgres_process_pug 57.48% <ø> (-0.03%) ⬇️
plugins-redis_router_sequelize 60.68% <ø> (-0.03%) ⬇️
plugins-test-and-upstream-rhea_undici_url 60.27% <ø> (-0.02%) ⬇️
plugins-valkey_vm_winston 56.87% <ø> (?)
plugins-ws 58.45% <ø> (-0.03%) ⬇️
profiling 60.87% <ø> (?)
serverless-aws-sdk-aws-sdk 54.19% <ø> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 50.25% <ø> (-0.03%) ⬇️
serverless-aws-sdk-bedrockruntime 53.96% <ø> (?)
serverless-aws-sdk-client 55.46% <ø> (-0.02%) ⬇️
serverless-aws-sdk-dynamodb 54.78% <ø> (-0.02%) ⬇️
serverless-aws-sdk-eventbridge 56.26% <ø> (?)
serverless-aws-sdk-kinesis 58.29% <ø> (-0.02%) ⬇️
serverless-aws-sdk-lambda 56.48% <ø> (?)
serverless-aws-sdk-s3 54.87% <ø> (?)
serverless-aws-sdk-serverless-peer-service 58.86% <ø> (?)
serverless-aws-sdk-sns 59.07% <ø> (?)
serverless-aws-sdk-sqs 59.48% <ø> (-0.02%) ⬇️
serverless-aws-sdk-stepfunctions 54.70% <ø> (?)
serverless-aws-sdk-util 50.76% <ø> (-0.03%) ⬇️
serverless-bucket-0 52.93% <ø> (?)
serverless-bucket-1 58.09% <ø> (-0.03%) ⬇️
test-optimization-cucumber 70.25% <ø> (-0.03%) ⬇️
test-optimization-cypress 64.49% <ø> (+0.08%) ⬆️
test-optimization-jest 71.71% <ø> (+<0.01%) ⬆️
test-optimization-mocha 71.75% <ø> (?)
test-optimization-playwright-playwright-atr 59.30% <ø> (+<0.01%) ⬆️
test-optimization-playwright-playwright-efd 59.45% <ø> (+0.01%) ⬆️
test-optimization-playwright-playwright-final-status 59.61% <ø> (+<0.01%) ⬆️
test-optimization-playwright-playwright-impacted-tests 59.17% <ø> (+0.15%) ⬆️
test-optimization-playwright-playwright-reporting 60.63% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-management 60.10% <ø> (?)
test-optimization-playwright-playwright-test-span 59.41% <ø> (+0.01%) ⬆️
test-optimization-selenium 58.58% <ø> (-0.06%) ⬇️
test-optimization-testopt 57.25% <ø> (?)
test-optimization-vitest 72.48% <ø> (+0.10%) ⬆️
test-optimization-vitest-browser 58.42% <ø> (+<0.01%) ⬆️
test-optimization-webdriverio 64.64% <ø> (+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.

@leoromanovsky
leoromanovsky marked this pull request as ready for review August 10, 2026 01:21
@leoromanovsky
leoromanovsky requested review from a team as code owners August 10, 2026 01:21
@leoromanovsky
leoromanovsky requested review from sameerank and typotter and removed request for a team August 10, 2026 01:21

@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: 2ea4035824

ℹ️ 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".

sameerank
sameerank previously approved these changes Aug 17, 2026

@sameerank sameerank left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Commenting on an issue that Codex found. And there's one from
the review bot. Looks good once those are fixed

Comment thread packages/dd-trace/src/openfeature/writers/util.js
@leoromanovsky
leoromanovsky force-pushed the agent/openfeature-agentless-exposure-routing branch from 2ea4035 to 0b0a4dd Compare August 18, 2026 16:33
@leoromanovsky
leoromanovsky force-pushed the agent/openfeature-agentless-exposure-routing branch from 0b0a4dd to 82ddbf9 Compare August 18, 2026 17:29

@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: 82ddbf9e05

ℹ️ 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/openfeature/writers/util.js
Comment thread packages/dd-trace/src/openfeature/writers/util.js
Base automatically changed from agent/openfeature-exposure-route-fallback to master August 18, 2026 22:16
@leoromanovsky
leoromanovsky force-pushed the agent/openfeature-agentless-exposure-routing branch from 82ddbf9 to efc9e65 Compare August 18, 2026 22:16

@sameerank sameerank left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for iterating on the feedback 👍

@leoromanovsky
leoromanovsky merged commit 63a6307 into master Aug 18, 2026
689 checks passed
@leoromanovsky
leoromanovsky deleted the agent/openfeature-agentless-exposure-routing branch August 18, 2026 22:33
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