-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix nil panic from otlp exporter #6633
Conversation
Codecov ReportBase: 91.21% // Head: 91.21% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6633 +/- ##
=======================================
Coverage 91.21% 91.21%
=======================================
Files 245 245
Lines 14194 14197 +3
=======================================
+ Hits 12947 12950 +3
Misses 997 997
Partials 250 250
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I am fine with the fix, not sure I would call this a bug or enhancement since anyway the collector failed to start. Please add a |
You still need to add the |
@bogdandrutu please let me know if we are good changelog wise. |
* fix nil panic from otlp exporter. * fix nil panic from otlp exporter. * fix nil panic from otlp exporter.
* fix nil panic from otlp exporter. * fix nil panic from otlp exporter. * fix nil panic from otlp exporter.
Description:
Fixing a bug - The OTLP exporter panics when collector tries to shut down the pipelines as soon as an error happens during start up.
An error is startup of the exporter will leave exporter with nil connection, followed by shutdown method of exporter invokes calling close on nil connection leading to panic
In the earlier versions since shutdown methods were never called when Start fails, we never observed this behavior.
Link to tracking Issue: #6619
Testing: Manual testing to see collector shuts down gracefully without any panic