-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support Jaeger process tags #76
base: master
Are you sure you want to change the base?
Conversation
exporter/jaeger/jaeger.go
Outdated
@@ -14,18 +16,45 @@ func init() { | |||
}) | |||
} | |||
|
|||
func getProcessTags(cfg *opencensus.Config) []jaeger.Tag { |
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.
I'd rather return an error, so the function does not need to panic when something goes wrong
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.
I don't think that silent discard of Jaeger exporter functionality on parse failure is expected behavior.
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.
I also think it's not good to discard invalid tags or to simply log an error and continue without Jaeger exporter.
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.
Process exit on parse failure sounds like the best option. WDYT? @kpacha
@rofleksey thanks for your contribution! Can you check my comment regarding avoiding panics? |
@kpacha Can you please check my comments above? |
In my opinion, failing exporters should not stop the execution of the gateway. The errors should be logged but that's it. The single doubt I have so far is if the tags are required to init the exporter or not (if tag initialization failed, should we abort the exporter or not?). I think we should revisit the process of loading of the exporters so the system logger could be injected but it will require another PR (I think I already have a proper PoC for that but I'd like to invest some more time on that). For now, we should avoid panics and just populate the error returned by the Cheers! |
Thanks for the feedback! I've changed panics to errors. |
@kpacha Can you please check if PR is fine now? Is it possible to merge it? |
Hello, Thank you for working on this pull request. KrakenD has traditionally offered its telemetry integration through this OpenCensus component, which has provided reliable service for over six years, but it is now transitioning to the more modern and robust OpenTelemetry framework. Due to a change in the industry, the OpenCensus integration is no longer maintained, and all efforts are focused on OpenTelemetry. KrakenD shifted to OTEL too. While the last word on this ongoing feature is for @kpacha , there will be no future development on this library, and ultimately, the repository will be archived. Issues found with OTEL can be opened in the repository krakend-otel Thank you |
No description provided.