sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

[ndk] Pass application launch time to NDK options.

Open MrZhaobh opened this issue 6 months ago • 8 comments

Problem Statement

In the crash details of Android devices, there doesn't seem to be the application launch time. If I want to record how long after launch the application crashed, are there any existing settings or switches for this?

Solution Brainstorm

No response

Product Area

Issues

MrZhaobh avatar Aug 13 '25 06:08 MrZhaobh

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

getsantry[bot] avatar Aug 13 '25 06:08 getsantry[bot]

ENG-5257 Will crashes report the application launch time?ENG-5257 崩溃报告会显示应用程序启动时间吗?

It seems that permissions are required, and I am unable to view it.

MrZhaobh avatar Aug 13 '25 06:08 MrZhaobh

Let me add that it seems only Java crashes have application startup time; native crashes don't have this information.

MrZhaobh avatar Aug 13 '25 07:08 MrZhaobh

@MrZhaobh thanks for writing in, we'll follow up soon. FYI the links in the comments above are auto-generated and only accessible for Sentry employees - apologies for the confusion.

kahest avatar Aug 18 '25 15:08 kahest

@markushi is this a known limitation? Can we somehow add this (or indeed more/all of app context) to Native events?

kahest avatar Aug 18 '25 15:08 kahest

We could add the app launch time as an init parameter to the NDK options.

markushi avatar Aug 27 '25 12:08 markushi