-
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
Handle errors in exporters #1259
Handle errors in exporters #1259
Conversation
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
Codecov Report
@@ Coverage Diff @@
## master #1259 +/- ##
==========================================
- Coverage 88.54% 88.50% -0.04%
==========================================
Files 207 207
Lines 14945 14946 +1
==========================================
- Hits 13233 13228 -5
- Misses 1283 1286 +3
- Partials 429 432 +3
Continue to review full report at Codecov.
|
@jpkrohling @bogdandrutu I tried updating PR 1251 with these changes, PR builds are failing with the below. On local this test passes but on Build pipeline this test fails. https://app.circleci.com/pipelines/github/open-telemetry/opentelemetry- TestApplication_GetExporters: testing.go:906: race detected during execution of test |
@vikrambe are you sure it's caused by this PR here? This PR is basically just properly returning error objects to the callers. The batch processor is then logging them, but that doesn't seem to be the cause of the race condition (service/telemetry.go:110 vs. service/telemetry.go:116). |
@jpkrohling My bad, it was due to a failing test in PR. Please ignore above comment. Thanks |
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
* Add oteltest text map propagator and carrier * Add changes to CHANGELOG * Add PR number to CHANGELOG * Add test for empty newState Gotta farm that codecov
* Add global propagator testing and other fixes Use the testing framework from open-telemetry#1259 to test the added global implementation of the TextMapPropagator. Add tests for the internal state of the global package. Ensure the behavior of setting the global for an already set value panics. Fix oteltest `SetN` method check on the TextMapCarrier. * Fix lint
This PR changes the batch processor to not ignore the errors returned by the exporters. It also adds more context to the messages, to make it clear which exporter failed.
Signed-off-by: Juraci Paixão Kröhling juraci@kroehling.de