-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(exporter): Ensure that timestamp are in second and not millisecon…
…ds (#2751) * fix(exporter): Ensure that timestamp are in second and not milliseconds Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> * remove trailing line Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> * Adding a warning log Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> --------- Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
- Loading branch information
1 parent
c4059d1
commit bafe9dc
Showing
9 changed files
with
87 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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 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
13 changes: 12 additions & 1 deletion
13
cmd/relayproxy/testdata/controller/collect_eval_data/collected_data_with_source_field.json
This file contains 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 |
---|---|---|
@@ -1 +1,12 @@ | ||
{"kind":"feature","contextKind":"user","userKey":"94a25909-20d8-40cc-8500-fee99b569345","creationDate":1680246000011,"key":"my-feature-flag","variation":"admin-variation","value":"string","default":false,"version":"v1.0.0","source":"EDGE"} | ||
{ | ||
"kind": "feature", | ||
"contextKind": "user", | ||
"userKey": "94a25909-20d8-40cc-8500-fee99b569345", | ||
"creationDate": 1680246000, | ||
"key": "my-feature-flag", | ||
"variation": "admin-variation", | ||
"value": "string", | ||
"default": false, | ||
"version": "v1.0.0", | ||
"source": "EDGE" | ||
} |
This file contains 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
13 changes: 12 additions & 1 deletion
13
cmd/relayproxy/testdata/controller/collect_eval_data/valid_collected_data.json
This file contains 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 |
---|---|---|
@@ -1 +1,12 @@ | ||
{"kind":"feature","contextKind":"user","userKey":"94a25909-20d8-40cc-8500-fee99b569345","creationDate":1680246000011,"key":"my-feature-flag","variation":"admin-variation","value":"string","default":false,"version":"v1.0.0","source":"PROVIDER_CACHE"} | ||
{ | ||
"kind": "feature", | ||
"contextKind": "user", | ||
"userKey": "94a25909-20d8-40cc-8500-fee99b569345", | ||
"creationDate": 1680246000, | ||
"key": "my-feature-flag", | ||
"variation": "admin-variation", | ||
"value": "string", | ||
"default": false, | ||
"version": "v1.0.0", | ||
"source": "PROVIDER_CACHE" | ||
} |
12 changes: 12 additions & 0 deletions
12
...ayproxy/testdata/controller/collect_eval_data/valid_collected_data_with_timestamp_ms.json
This file contains 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,12 @@ | ||
{ | ||
"kind": "feature", | ||
"contextKind": "user", | ||
"userKey": "94a25909-20d8-40cc-8500-fee99b569345", | ||
"creationDate": 1733230547, | ||
"key": "my-feature-flag", | ||
"variation": "admin-variation", | ||
"value": "string", | ||
"default": false, | ||
"version": "v1.0.0", | ||
"source": "PROVIDER_CACHE" | ||
} |
This file contains 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
15 changes: 15 additions & 0 deletions
15
cmd/relayproxy/testdata/controller/collect_eval_data/valid_request_with_timestamp_ms.json
This file contains 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,15 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"contextKind": "user", | ||
"creationDate": 1733230547728, | ||
"default": false, | ||
"key": "my-feature-flag", | ||
"kind": "feature", | ||
"userKey": "94a25909-20d8-40cc-8500-fee99b569345", | ||
"value": "string", | ||
"variation": "admin-variation", | ||
"version": "v1.0.0" | ||
} | ||
] | ||
} |