-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: upgrade to latest go-libs #59
chore: upgrade to latest go-libs #59
Conversation
e79c6cc
to
224b8ee
Compare
root.Flags().Bool(publisherKafkaEnabledFlag, false, "Publish write events to kafka") | ||
root.Flags().StringSlice(publisherKafkaBrokerFlag, []string{}, "Kafka address is kafka enabled") | ||
root.Flags().StringSlice(publisherTopicMappingFlag, | ||
server.Flags().BoolP("toggle", "t", false, "Help message for toggle") |
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.
Set flags on server command and not un root command.
false, "Use scopes as defined by rfc https://datatracker.ietf.org/doc/html/rfc8693") | ||
|
||
sharedotlptraces.InitOTLPTracesFlags(server.Flags()) |
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.
Library now automatically setup flags.
224b8ee
to
8447e4c
Compare
Codecov Report
@@ Coverage Diff @@
## main #59 +/- ##
==========================================
+ Coverage 24.34% 24.45% +0.10%
==========================================
Files 87 87
Lines 4140 4147 +7
==========================================
+ Hits 1008 1014 +6
- Misses 3038 3039 +1
Partials 94 94
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
also add pre-commit config
8447e4c
to
a7d0c9b
Compare
Update go-libs to last version.
Also use github.com/formancehq/go-libs import path instead of github.com/numary/go-libs.
Changes also add pre-commit config.
Other changes are caused by the linter on pre-commit which remove trailing spaces on files.
Also, fix a little "bug" on flags which was defined on root command instead of the "server" command.