Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

What is the recommended way to gracefully shutdown? #226

Open
coryan opened this issue Oct 14, 2018 · 6 comments
Open

What is the recommended way to gracefully shutdown? #226

coryan opened this issue Oct 14, 2018 · 6 comments

Comments

@coryan
Copy link

coryan commented Oct 14, 2018

Is there a recommended way to terminate short lived programs? I am thinking of examples, tests, or batch processes that may have completed their work but want to give OpenCensus time to complete its work before shutting down.

@g-easy
Copy link
Contributor

g-easy commented Oct 16, 2018

Currently we sleep to let the stats aggregation and exporting happen, which isn't ideal.

@coryan
Copy link
Author

coryan commented Oct 16, 2018

That is what I thought. No rush, but any plans to have something better?

@g-easy
Copy link
Contributor

g-easy commented Oct 17, 2018

I've been thinking about it but I don't have a good proposal yet.

Related discussions:

@Dig-Doug
Copy link

Dig-Doug commented Aug 2, 2020

Have there been any progress on adding a flush capability? I ran into this problem today and had to add a wait to the end of my program (which is short lived).

@g-easy
Copy link
Contributor

g-easy commented Aug 4, 2020

I'm afraid not. I'm very limited in how much time I can spend on OpenCensus. Check out https://github.com/open-telemetry/opentelemetry-cpp/

@Dig-Doug
Copy link

Dig-Doug commented Aug 4, 2020

No problem, it looks like this is the relevant feature on the opentelemetry side. I look forward to migrating once everything is ready :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants