Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rofleksey
Copy link

No description provided.

@@ -14,18 +16,45 @@ func init() {
})
}

func getProcessTags(cfg *opencensus.Config) []jaeger.Tag {
Copy link
Member

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

Copy link
Author

@rofleksey rofleksey Jan 17, 2023

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.

Copy link
Author

@rofleksey rofleksey Jan 17, 2023

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.

Copy link
Author

@rofleksey rofleksey Jan 17, 2023

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

@kpacha
Copy link
Member

kpacha commented Jan 17, 2023

@rofleksey thanks for your contribution!

Can you check my comment regarding avoiding panics?

@rofleksey
Copy link
Author

@kpacha Can you please check my comments above?

@kpacha
Copy link
Member

kpacha commented Jan 24, 2023

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 Exporter function.

Cheers!

@rofleksey
Copy link
Author

Thanks for the feedback!

I've changed panics to errors.

@rofleksey
Copy link
Author

rofleksey commented Feb 4, 2023

@kpacha Can you please check if PR is fine now? Is it possible to merge it?

@alombarte
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants