How to *really* use sentry in a dockerized environment #1252
-
The documentation points out on the one hand to use a shared volume (which would have been my thinking prior to having it read) but on the other to let the crashpad_handler wait synchronously (which would on the other hand make that shared volume obsolete)
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
TL;DR: If you use the crashpad backend in a container, you should do both (wait + durable volume). For a more detailed perspective, you have to consider those two as mostly orthogonal aspects that play together and not a binary choice:
So, while starting from a fresh database path on every run is technically feasible, it will limit the availability of certain features (some of which are essential depending on your use case). Waiting before upload, otoh, is only relevant when you use the
I am not sure I fully follow, but there may be a misunderstanding of the crash reporting process when using
3 and 4 would be problematic in a container since the |
Beta Was this translation helpful? Give feedback.
-
Since you wrote |
Beta Was this translation helpful? Give feedback.
-
Yeah i was wrong in how sentry handels the dump, i thought crashpad_handler is just there to upload the dump out of process. I was not aware that it´s also gathering the dump. I justed very briefly took a look into what the wait_for_upload is doing on the linux side.
We could try to implement it and open a PR for that missing puzzle piece ;) (Yeah, we have windows docker containers 😉) |
Beta Was this translation helpful? Give feedback.
-
I already looked into this because this topic has been raised in a different context: #1255 |
Beta Was this translation helpful? Give feedback.
TL;DR: If you use the crashpad backend in a container, you should do both (wait + durable volume).
For a more detailed perspective, you have to consider those two as mostly orthogonal aspects that play together and not a binary choice:
breakpad
andinproc
), since otherwise those wouldn't send any reports. However, it is also forcrashpad
because thecrashpad_handler
could fail to send a report and would retry on the next start