Replies: 1 comment 2 replies
-
Hi @sernst , have you found a solution for this? I'm having the same issue too, my program doesn't have enough time to send the traces before it dies and I need to force-flush them. Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to force flush multiple providers at once?
I have a situation where I have providers for traces, metrics and logs and want to force flush them before the program exits, but the shutdown time needs to be as quick as possible. Having to serially call force flush along the lines of:
seems less than ideal, and I'm not sure what the implications of threading those and joining them would be. Any guidance on if that would be a workable solution, or if there's an alternative that I've missed in the docs that would support this already?
Alternatively, do
atexit
handlers within the project already handle this in a way that I wouldn't need to worry about being explicit about it? I wasn't sure if that was the case and so went with explicit over implicit.Beta Was this translation helpful? Give feedback.
All reactions