-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add metadata in the exporters (#2930)
* Fix doc Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> * Add metadata field to exporter Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> * Add swagger metadata Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> * Add test metadata Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> --------- Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
- Loading branch information
1 parent
caf3bfb
commit f8ba0fd
Showing
14 changed files
with
199 additions
and
21 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
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
18 changes: 18 additions & 0 deletions
18
cmd/relayproxy/testdata/controller/collect_eval_data/valid_collected_data_metadata.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,18 @@ | ||
{ | ||
"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", | ||
"metadata": { | ||
"environment": "production", | ||
"sdkVersion": "v1.0.0", | ||
"source": "my-source", | ||
"timestamp": 1680246000 | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
cmd/relayproxy/testdata/controller/collect_eval_data/valid_request_metadata.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,21 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"contextKind": "user", | ||
"creationDate": 1680246000, | ||
"default": false, | ||
"key": "my-feature-flag", | ||
"kind": "feature", | ||
"userKey": "94a25909-20d8-40cc-8500-fee99b569345", | ||
"value": "string", | ||
"variation": "admin-variation", | ||
"version": "v1.0.0" | ||
} | ||
], | ||
"meta": { | ||
"environment": "production", | ||
"sdkVersion": "v1.0.0", | ||
"source": "my-source", | ||
"timestamp": 1680246000 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
cmd/relayproxy/testdata/controller/collect_eval_data/valid_response_metadata.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,3 @@ | ||
{ | ||
"ingestedContentCount": 1 | ||
} |
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
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
Oops, something went wrong.