How to use transactions while offline #2303
-
Hi, I am currently making a room booking system for a specific type of device in android and this app runs constantly on this device in kiosk mode. Now everytime it reboots it starts the app back up but at the start there is no internet (ethernet connection) hence I created a network check before continuing the app. Problem is that on first setup I usually request app permissions first before I check the network so the user will have to wait less. Now I am wondering if it is possible to create a transaction to ensure that the app permission check worked and it didn't crash the app (I am requesting this as I had issues with it before as the app was not responding anymore). Any ideas? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm unsure if transactions are the right way to do this. If the app crashes, our SDK will create a crash event and send it to Sentry.
What you describe looks like a use case for custom metrics for performance to me. You could attach both metrics you described as measurements to a transaction, see https://docs.sentry.io/platforms/android/performance/instrumentation/performance-metrics/. |
Beta Was this translation helpful? Give feedback.
I'm unsure if transactions are the right way to do this. If the app crashes, our SDK will create a crash event and send it to Sentry.
What you describe looks like a use case for custom metrics for performance to me. You could attach both metrics you described as measurements to a transaction, see https://docs.sentry.io/platforms/android/performance/instrumentation/performance-metrics/.