File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
libs/providers/go-feature-flag/src/lib Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,21 @@ export class GoFeatureFlagProvider implements Provider {
33
33
34
34
// endpoint of your go-feature-flag relay proxy instance
35
35
private readonly endpoint : string ;
36
+
36
37
// timeout in millisecond before we consider the request as a failure
37
38
private readonly timeout : number ;
38
39
39
-
40
40
// cache contains the local cache used in the provider to avoid calling the relay-proxy for every evaluation
41
41
private readonly cache ?: LRUCache < string , ResolutionDetails < any > > ;
42
42
43
-
44
43
// bgSchedulerId contains the id of the setInterval that is running.
45
44
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
46
45
// @ts -ignore
47
46
private bgScheduler ?: NodeJS . Timer ;
48
47
49
48
// dataCollectorBuffer contains all the FeatureEvents that we need to send to the relay-proxy for data collection.
50
49
private dataCollectorBuffer ?: FeatureEvent < any > [ ] ;
50
+
51
51
// dataCollectorMetadata are the metadata used when calling the data collector endpoint
52
52
private readonly dataCollectorMetadata : Record < string , string > = {
53
53
provider : 'open-feature-js-sdk' ,
@@ -59,6 +59,7 @@ export class GoFeatureFlagProvider implements Provider {
59
59
60
60
// dataFlushInterval interval time (in millisecond) we use to call the relay proxy to collect data.
61
61
private readonly dataFlushInterval : number ;
62
+
62
63
// disableDataCollection set to true if you don't want to collect the usage of flags retrieved in the cache.
63
64
private readonly disableDataCollection : boolean ;
64
65
You can’t perform that action at this time.
0 commit comments