Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

[Fixes #270] Make BackgroundThread more resilient to exceptions#297

Merged
liyanhui1228 merged 12 commits intocensus-instrumentation:masterfrom
ocervell:fix-async-transport
Sep 12, 2018
Merged

[Fixes #270] Make BackgroundThread more resilient to exceptions#297
liyanhui1228 merged 12 commits intocensus-instrumentation:masterfrom
ocervell:fix-async-transport

Conversation

@ocervell
Copy link
Copy Markdown
Contributor

@ocervell ocervell commented Sep 5, 2018

This just add a try/except/pass to the AsyncTransport and the BackgroundThread, thus allowing the thread to remain alive when something bad happens with the exporter.
This fixes #270

@liyanhui1228
Copy link
Copy Markdown
Contributor

LGTM, we will also need to add unit test for that to ensure 100% test coverage.

@kornholi
Copy link
Copy Markdown
Contributor

kornholi commented Sep 5, 2018

Thanks! Maybe exclude the "after max retries" part as it depends on the actual exporter?

@ocervell
Copy link
Copy Markdown
Contributor Author

ocervell commented Sep 8, 2018

@kornholi done

@liyanhui1228 liyanhui1228 merged commit 3e41879 into census-instrumentation:master Sep 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle exceptions from Exporters

4 participants