-
Notifications
You must be signed in to change notification settings - Fork 351
feat(openfeature): add direct flagevaluation fallback #12204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gh-worker-dd-mergequeue-cf854d
merged 21 commits into
master
from
agent/java-direct-flagevaluation-egress
Aug 18, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b9e2b15
Send agentless exposures directly to EVP
leoromanovsky 085ebc5
Prepare exposure delivery before agentless activation
leoromanovsky 9992388
Assert lazy agentless configuration startup
leoromanovsky 3716594
log message
leoromanovsky 77cf62d
Merge remote-tracking branch 'origin/master' into agent/java-direct-e…
leoromanovsky 44c4896
feat(openfeature): add direct flagevaluation fallback
leoromanovsky 5916539
test(openfeature): cover both direct EVP signals
leoromanovsky 9ed502c
Defer direct exposure intake fallback
leoromanovsky 792a754
Merge branch 'agent/java-direct-exposure-egress' into agent/java-dire…
leoromanovsky a836431
test(openfeature): cover direct exposure fallback branches
leoromanovsky 2624739
Merge branch 'agent/java-direct-exposure-egress' into agent/java-dire…
leoromanovsky 855b295
fix(openfeature): clarify feature flag transport policy
leoromanovsky 3e668a1
fix(feature-flags): prevent lost agentless activation
leoromanovsky 06d4ee2
Merge branch 'agent/java-direct-exposure-egress' into agent/java-dire…
leoromanovsky 3a10840
test(feature-flags): cover agentless startup rollback
leoromanovsky 7ec5079
Merge branch 'agent/java-direct-exposure-egress' into agent/java-dire…
leoromanovsky 614ec21
fix(feature-flags): remove obsolete SpotBugs suppression
leoromanovsky 6616b0c
Merge branch 'agent/java-direct-exposure-egress' into agent/java-dire…
leoromanovsky 6624b36
Merge remote-tracking branch 'origin/master' into agent/java-direct-f…
leoromanovsky 041bc10
test(openfeature): close direct intake client
leoromanovsky 9b8d758
fix(openfeature): prevent duplicate feature flag events
leoromanovsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
65 changes: 65 additions & 0 deletions
65
communication/src/test/java/datadog/communication/IntakeApiTest.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| package datadog.communication; | ||
|
|
||
| import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
|
||
| import datadog.communication.http.HttpRetryPolicy; | ||
| import java.io.IOException; | ||
| import okhttp3.MediaType; | ||
| import okhttp3.OkHttpClient; | ||
| import okhttp3.RequestBody; | ||
| import okhttp3.mockwebserver.MockResponse; | ||
| import okhttp3.mockwebserver.MockWebServer; | ||
| import okhttp3.mockwebserver.RecordedRequest; | ||
| import org.junit.jupiter.api.AfterEach; | ||
| import org.junit.jupiter.api.BeforeEach; | ||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| class IntakeApiTest { | ||
|
|
||
| private static final MediaType JSON = MediaType.parse("application/json"); | ||
|
|
||
| private MockWebServer server; | ||
| private OkHttpClient client; | ||
|
|
||
| @BeforeEach | ||
| void setUp() throws IOException { | ||
| server = new MockWebServer(); | ||
| server.start(); | ||
| client = new OkHttpClient.Builder().build(); | ||
| } | ||
|
|
||
| @AfterEach | ||
| void tearDown() throws IOException { | ||
| client.dispatcher().executorService().shutdownNow(); | ||
| client.connectionPool().evictAll(); | ||
| server.shutdown(); | ||
| } | ||
|
|
||
| @Test | ||
| void requestsGzipResponseCompressionWhenEnabled() throws Exception { | ||
| assertEquals("gzip", postAndReadAcceptEncoding(true)); | ||
| } | ||
|
|
||
| @Test | ||
| void requestsIdentityResponseEncodingWhenCompressionIsDisabled() throws Exception { | ||
| assertEquals("identity", postAndReadAcceptEncoding(false)); | ||
| } | ||
|
|
||
| private String postAndReadAcceptEncoding(final boolean responseCompression) throws Exception { | ||
| server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); | ||
| final IntakeApi api = | ||
| new IntakeApi( | ||
| server.url("/api/v2/"), | ||
| "api-key", | ||
| "123", | ||
| HttpRetryPolicy.Factory.NEVER_RETRY, | ||
| client, | ||
| responseCompression); | ||
|
|
||
| api.post("flagevaluation", RequestBody.create(JSON, "{}"), responseBody -> null, null, false); | ||
|
|
||
| final RecordedRequest request = server.takeRequest(); | ||
| assertEquals("/api/v2/flagevaluation", request.getPath()); | ||
| return request.getHeader("Accept-Encoding"); | ||
| } | ||
| } |
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
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
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
77 changes: 0 additions & 77 deletions
77
...feature-flagging-lib/src/main/java/com/datadog/featureflag/ExposureBackendApiFactory.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.