Skip to content

Comments

[Starfish] Attach app start spans to app.start.cold txn#3067

Merged
markushi merged 9 commits intofeat/app-start-spansfrom
feat/app-start-txn-op
Dec 12, 2023
Merged

[Starfish] Attach app start spans to app.start.cold txn#3067
markushi merged 9 commits intofeat/app-start-spansfrom
feat/app-start-txn-op

Conversation

@markushi
Copy link
Member

@markushi markushi commented Nov 29, 2023

📜 Description

Starfish only: Use app.start.* for cold/warm start transaction op
Starfish only: Attach app start spans (ContentProvider.onCreate, Application.onCreate, Activity.onCreate, Activity.onStart) to the app start transaction.

#skip-changelog

💡 Motivation and Context

Fixes parts of getsentry/team-sdks#22

💚 How did you test it?

Added unit tests

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@github-actions
Copy link
Contributor

github-actions bot commented Nov 29, 2023

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 84c7cb0

@github-actions
Copy link
Contributor

github-actions bot commented Nov 29, 2023

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 415.61 ms 487.18 ms 71.57 ms
Size 1.72 MiB 2.27 MiB 556.84 KiB

Baseline results on branch: feat/app-start-spans

Startup times

Revision Plain With Sentry Diff
3751e60 414.69 ms 454.45 ms 39.76 ms
3fd1e60 390.54 ms 446.90 ms 56.36 ms
5f1218e 408.20 ms 466.26 ms 58.06 ms
6cd4f31 389.94 ms 445.81 ms 55.87 ms

App size

Revision Plain With Sentry Diff
3751e60 1.72 MiB 2.27 MiB 557.10 KiB
3fd1e60 1.72 MiB 2.27 MiB 557.21 KiB
5f1218e 1.72 MiB 2.29 MiB 580.44 KiB
6cd4f31 1.72 MiB 2.27 MiB 557.15 KiB

Previous results on branch: feat/app-start-txn-op

Startup times

Revision Plain With Sentry Diff
85a0313 375.58 ms 451.96 ms 76.38 ms
028e7b7 394.98 ms 462.18 ms 67.20 ms
fcb2fe4 330.79 ms 443.21 ms 112.43 ms
1af8231 607.73 ms 731.96 ms 124.22 ms

App size

Revision Plain With Sentry Diff
85a0313 1.72 MiB 2.29 MiB 580.57 KiB
028e7b7 1.72 MiB 2.27 MiB 557.29 KiB
fcb2fe4 1.72 MiB 2.27 MiB 556.98 KiB
1af8231 1.72 MiB 2.27 MiB 556.84 KiB

@markushi markushi changed the title Use app.start.* for cold/warm start transaction op [Starfish] Use app.start.cold/warm as cold/warm start transaction op Nov 29, 2023
Comment on lines 244 to 246
transactionOp = APP_START_COLD;
} else if (Boolean.FALSE.equals(coldStart)) {
transactionOp = APP_START_WARM;
Copy link
Member

Choose a reason for hiding this comment

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

That makes sense 👍

@philipphofmann
Copy link
Member

Related Cocoa issue getsentry/sentry-cocoa#3466.

@markushi markushi changed the title [Starfish] Use app.start.cold/warm as cold/warm start transaction op [Starfish] Attach app start spans to app.start.cold txn Dec 12, 2023
@markushi markushi merged commit b8a1b57 into feat/app-start-spans Dec 12, 2023
@markushi markushi deleted the feat/app-start-txn-op branch December 12, 2023 07:03
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.

4 participants