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
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
+19-7
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,28 @@
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
-
}
12
+
/**
13
+
* meta contains the metadata of the events to be sent along the events.
14
+
*/
15
+
privatefinalMap<String, Object> meta = newHashMap<>();
18
16
17
+
/**
18
+
* list of events to be sent to the data collector to collect the evaluation data.
19
+
*/
19
20
privatefinalList<Event> events;
20
21
21
-
publicEvents(List<Event> events) {
22
+
/**
23
+
* Constructor.
24
+
*
25
+
* @param events - list of events to be sent to the data collector to collect the evaluation data.
26
+
* @param exporterMetadata - metadata of the events to be sent along the events.
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/test/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderTest.java
+43
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