How to throw exceptions on bad logging configuration? #5579
Unanswered
makrushin-evgenii
asked this question in
Q&A
Replies: 1 comment
-
If the url itself is wrong, it makes sense to throw exception. But if the endpoint is not reachable at startup, it is debatable whether to throw exception and fail right away, or keep "hope" that the endpoint might be available eventually.... The best bet right now is to rely on self-diagnostics which should tell you exactly why export is failing, if it fails... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. Using packages
OpenTelemetry.Exporter.[OpenTelemetryProtocol|Console]:1.7.0
, I configureLoggerFactory
:The application continues to run even if the configuration is incorrect. For example, I can specify a "https://blahblahblah" as a endpoint and the application will not give any hint that something is wrong.
So I can't figure out why logs are not sent to the specified endpoint. How to enable "fail on non-success requests" or/and enable "logging of logging" or/and where can I debug a requests sending?
Beta Was this translation helpful? Give feedback.
All reactions