Bundle standalone runtime in dd-openfeature - #12251
Draft
leoromanovsky wants to merge 3 commits into
Draft
Conversation
Contributor
|
🎯 Code Coverage (details) 🔗 Commit SHA: 37893e4 | Docs | View more details | Give us feedback! |
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. |
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
Customers using the Datadog OpenFeature provider without APM still have to load
dd-java-agent.jarbecause configuration polling and event delivery live in agent-owned modules. That keeps an agent deployment and lifecycle in the path even when the customer only wants Feature Flagging.Changes
This packages the agentless UFC poller, evaluator support, exposure delivery, and flag-evaluation delivery into the published
dd-openfeatureartifact. The artifact shades its internal Datadog and HTTP implementation dependencies while preserving the OpenFeature SDK as its sole published dependency. When no Java agent is installed andDD_FEATURE_FLAGS_CONFIGURATION_SOURCE=agentlessis explicit, the provider claims the standalone runtime, polls configuration, and sends events directly withDD_API_KEY.The provider still activates an installed Java agent first. If the agent claims the runtime, the bundled implementation does not start, so transport and lifecycle remain agent-owned and no duplicate poller or event writer is created.
Decisions
Standalone activation remains explicit: absence of
DD_FEATURE_FLAGS_CONFIGURATION_SOURCE=agentlessdoes not start network work, andremote_configremains agent-only. Direct event delivery deliberately does not probe a local EVP proxy because the standalone process must not imply an Agent dependency.Validation covers the runtime lifecycle, direct-only transport selection, formatting, SpotBugs, Javadocs, and all API/library tests. A published-artifact test compiles and launches a child JVM with no
-javaagent, serves UFC from a local HTTP endpoint, and verifies a real OpenFeature evaluation resolves from the polled configuration.