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
Should the logs be emitted by default? #2417
Comments
Why do we do this? Because of how go is built there is no central logging package like Log4J or Log4Net etc that gives library writers both a flexible API, and a central location for libraries like ours to log to(1)(2). I think the main reason is that as a culture we return an Take for example if we have an exporter that is incorrectly configured, like pointing at a misspelled domain/service. In this case, the core business logic can and should work fine, so there shouldn't be errors in that code, but at the same time we don't want this to be a silent fail. The question I would have to this is "If we by default don't emit via stderr, then how does a consumer know that something is wrong?" (1): There is the stdlib |
@MadVikingGod Thanks for your reply. You convinced me that it is more convenient to log than emit nothing. Waiting for a follow-up PR after #2343 is merged. Closing. |
Currently the default
ErrorHandler
logs the errors to stderr. It means that the instrumented application can have a different visible output for the user.Is it OK? Is any other language doing the same?
Related draft PR: #2416
The text was updated successfully, but these errors were encountered: