Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long App start transactions and spans #22

Closed
marandaneto opened this issue Jun 23, 2022 · 2 comments
Closed

Long App start transactions and spans #22

marandaneto opened this issue Jun 23, 2022 · 2 comments

Comments

@marandaneto
Copy link

Sentry starts an app start span if there's a running transaction with the start of the app start timestamp and it ends with the app start end timestamp.
If there's no active transaction, Sentry starts an app start transaction.
In case the app start is somehow wrong or above a certain threshold (60s) right now, we do not send the app start measurement.
getsentry/sentry-cocoa#1896 and getsentry/sentry-cocoa#1899
getsentry/sentry-react-native#2310
getsentry/sentry-java#2127

If we do that, we have to either finish the transaction with a failed status or not even finish it and let GC free up the memory.

This has to be done on Android, iOS and RN.

@marandaneto marandaneto changed the title App start transactions and spans Long App start transactions and spans Jun 23, 2022
@marandaneto
Copy link
Author

@philipphofmann is this fixed on iOS already? otherwise we can close it.

@philipphofmann
Copy link
Member

philipphofmann commented Sep 16, 2022

On Cocoa, we don't report app start transactions lasting longer than 180 seconds, see https://github.com/getsentry/sentry-cocoa/blob/ba31d083747db50e9201b3c54f68717dae841c29/Sources/Sentry/SentryAppStartTracker.m#L155-L161

// Safety check to not report app starts that are completely off.
if (appStartDuration >= SENTRY_APP_START_MAX_DURATION) {
    SENTRY_LOG_INFO(
        @"The app start exceeded the max duration of %f seconds. Not measuring app start.",
        SENTRY_APP_START_MAX_DURATION);
    return;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants