-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(exporter): Ensure that timestamp are in second and not milliseconds #2751
Conversation
✅ Deploy Preview for go-feature-flag-doc-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
5d42b6c
to
0c3d2be
Compare
// but since it is totally possible to have a timestamp in seconds that is bigger than 9999999999 | ||
// we will accept timestamp up to 9999999999 (2286-11-20 18:46:39 +0100 CET) | ||
event.CreationDate, _ = strconv.ParseInt( | ||
strconv.FormatInt(event.CreationDate, 10)[:10], 10, 64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging some warning would help resolve such issues in the clients. At least it would be visible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right, let me add a WARN log.
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2751 +/- ##
==========================================
+ Coverage 84.84% 84.87% +0.03%
==========================================
Files 111 111
Lines 5167 5178 +11
==========================================
+ Hits 4384 4395 +11
Misses 620 620
Partials 163 163 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
c8d492c
to
8986f97
Compare
Quality Gate passedIssues Measures |
Description
This PR is adding a conversion check on the feature event date to be sure that what we receive is in seconds not in milliseconds.
Checklist