Add agentless Feature Flagging configuration source#11892
Draft
leoromanovsky wants to merge 6 commits into
Draft
Add agentless Feature Flagging configuration source#11892leoromanovsky wants to merge 6 commits into
leoromanovsky wants to merge 6 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
leoromanovsky
commented
Jul 8, 2026
leoromanovsky
commented
Jul 9, 2026
leoromanovsky
commented
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Java Feature Flagging needs a tracer-side configuration-source split so SDKs can fetch UFC from an agentless Datadog backend while preserving the existing Agent Remote Configuration path.
Changes
DD_FEATURE_FLAGS_CONFIGURATION_SOURCEwithagentless,remote_config, and reservedoffline; default isagentless.DD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_POLL_INTERVAL_SECONDSandDD_FEATURE_FLAGS_CONFIGURATION_SOURCE_AGENTLESS_REQUEST_TIMEOUT_SECONDS.AgentlessConfigurationSource, an HTTP UFC poller for the Datadog server-distribution endpoint.remote_configon the existingRemoteConfigServiceImpl/ Agent RC path.DD-API-KEY, ETag/304, timeout/429/5xx retry, malformed UFC rejection, last-known-good preservation, and no overlapping polls.DD_FEATURE_FLAGS_ENABLED, agentless base URL env, and extra-header env from this PR.Decisions
No new provider kill switch. This keeps the existing provider bootstrap behavior through
DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED; changing enablement is out of scope for this PR.No public agentless base URL/header envs. The default agentless endpoint is derived from Datadog site/env as
https://api.<site>/api/v2/feature-flagging/config/server-distribution?dd_env=<env>. Custom customer endpoints, dogfood proxies, and system-test proxies should be wired through an explicit custom source/client API, not process-wide env vars.No offline factory yet.
offlineremains a reserved configuration-source value. This PR does not expose a startup-bytes API or offline factory because that API still needs design work.Source selection stays SDK-local.
DD_FEATURE_FLAGS_CONFIGURATION_SOURCEdecides which local source implementation starts. It is not sent to the backend.Class Shape
classDiagram direction LR class FeatureFlaggingSystem { +start() +stop() -createConfigurationSourceService() } class ConfigurationSourceService { <<interface>> +init() +close() } class RemoteConfigServiceImpl { +init() +close() +accept() } class AgentlessConfigurationSource { +init() +close() -pollOnce() -fetchAndApply() } class FeatureFlaggingGateway { +dispatch() } FeatureFlaggingSystem --> ConfigurationSourceService : selects one source ConfigurationSourceService <|.. RemoteConfigServiceImpl ConfigurationSourceService <|.. AgentlessConfigurationSource RemoteConfigServiceImpl --> FeatureFlaggingGateway : Agent RC UFC AgentlessConfigurationSource --> FeatureFlaggingGateway : HTTP UFCCustomer Usage Example
Default Datadog-hosted agentless delivery:
Explicit Agent Remote Configuration delivery still uses the existing Agent path:
Verification