Skip to content

How to use transactions while offline #2303

Discussion options

You must be logged in to vote

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'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.

Also as a side request is there a way to track amount of times network check occured or how long it took till network was available?

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/.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BillyCottrell
Comment options

@philipphofmann
Comment options

Answer selected by BillyCottrell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants