You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java
+10
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
importdev.openfeature.sdk.ProviderEvaluation;
5
5
importlombok.Builder;
6
6
importlombok.Getter;
7
+
importjava.util.Map;
7
8
8
9
/** GoFeatureFlagProviderOptions contains the options to initialise the provider. */
9
10
@Builder
@@ -90,4 +91,13 @@ public class GoFeatureFlagProviderOptions {
90
91
* retrieved in the cache. default: false
91
92
*/
92
93
privatebooleandisableDataCollection;
94
+
95
+
/**
96
+
* (optional) exporterMetadata is the metadata we send to the GO Feature Flag relay proxy when we report the
97
+
* evaluation data usage.
98
+
*
99
+
* ‼️Important: If you are using a GO Feature Flag relay proxy before version v1.41.0, the information of this
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/events/Events.java
+7-8
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,15 @@
9
9
/** Events data. */
10
10
@Getter
11
11
publicclassEvents {
12
-
privatestaticfinalMap<String, String> meta = newHashMap<>();
13
-
14
-
static {
15
-
meta.put("provider", "java");
16
-
meta.put("openfeature", "true");
17
-
}
18
-
12
+
privatefinalMap<String, Object> meta = newHashMap<>();
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/test/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderTest.java
+41
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
importjava.nio.file.Paths;
27
27
importjava.util.ArrayList;
28
28
importjava.util.Arrays;
29
+
importjava.util.HashMap;
29
30
importjava.util.List;
30
31
importjava.util.Map;
31
32
importlombok.SneakyThrows;
@@ -44,6 +45,7 @@
44
45
@Slf4j
45
46
classGoFeatureFlagProviderTest {
46
47
privateintpublishEventsRequestsReceived = 0;
48
+
privateMapexporterMetadata;
47
49
privateintflagChangeCallCounter = 0;
48
50
privatebooleanflagChanged404 = false;
49
51
@@ -67,6 +69,7 @@ public MockResponse dispatch(RecordedRequest request) {
0 commit comments