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

Removed onViewLoadLeak trigger for Activity.onStop #210

Conversation

YYChen01988
Copy link
Contributor

@YYChen01988 YYChen01988 commented Mar 18, 2024

Goal

Auto-instrumented spans should only be considered “leaked” when the Activity is destroyed, since the Activity may stop and restart while the span is still valid (for example when backgrounded briefly).

Changeset

Removed onViewLoadLeak from Activity.onStop instrumentation

@YYChen01988 YYChen01988 requested a review from lemnik March 18, 2024 09:57
@YYChen01988 YYChen01988 force-pushed the PLAT-11639/Activity.onStop_should_not_trigger_span_leak_detection branch from dce0307 to 447e5b2 Compare March 18, 2024 09:59
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Mar 18, 2024

Android notifier sizes

Format Size impact of Bugsnag (kB)
APK 77.82
Minified APK 47.67

Generated by 🚫 Danger

@YYChen01988 YYChen01988 force-pushed the PLAT-11639/Activity.onStop_should_not_trigger_span_leak_detection branch from 447e5b2 to e6d8830 Compare March 18, 2024 10:08
@YYChen01988 YYChen01988 requested a review from lemnik March 18, 2024 10:08
@lemnik lemnik changed the title Removed onViewLoadLeak when activity is only stop Removed onViewLoadLeak trigger for Activity.onStop Mar 19, 2024
@YYChen01988 YYChen01988 force-pushed the PLAT-11639/Activity.onStop_should_not_trigger_span_leak_detection branch from e6d8830 to 213cc8b Compare March 19, 2024 11:12
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Maybe add a CHANGELOG entry?

@YYChen01988 YYChen01988 force-pushed the PLAT-11639/Activity.onStop_should_not_trigger_span_leak_detection branch from 213cc8b to 7cf4e89 Compare March 19, 2024 13:37
@YYChen01988 YYChen01988 merged commit 4ca5570 into next Mar 19, 2024
13 checks passed
@YYChen01988 YYChen01988 deleted the PLAT-11639/Activity.onStop_should_not_trigger_span_leak_detection branch March 19, 2024 13:57
This was referenced May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants