Skip to content

Comments

Instrument ContentProvider/Application onCreate calls to measure app-start performance#565

Merged
markushi merged 17 commits intomainfrom
feat/app-start-metrics
Dec 19, 2023
Merged

Instrument ContentProvider/Application onCreate calls to measure app-start performance#565
markushi merged 17 commits intomainfrom
feat/app-start-metrics

Conversation

@markushi
Copy link
Member

@markushi markushi commented Oct 2, 2023

📜 Description

A proof-of-concept on how we could capture and create spans for Application and ContentProvider .onCreate calls.

A few points/questions to be answered before we can use this:

  • Any class init / ctor timing is not being tracked - I guess that's fine for v1
  • The Java class hierarchy (e.g. class ContentProviderB extends ContentProviderA) is not tracked - I guess that's fine too
  • Maybe pass class names to the .onXCreate() calls as well? - I also don't think this is required as both Application and Content Provider classes should be not be renamed by R8/ProGuard
  • Add tests

💡 Motivation and Context

Implements parts of getsentry/sentry-java#3035

💚 How did you test it?

unit / integration tests

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

Requires a new release of sentry-java where the corresponding AppStartMetrics class exists - DO NOT MERGE until this is provided.

  • sentry-java released and min-version adapted

@markushi markushi changed the title Add PoC for capturing ContentProvider/Application onCreate calls [PoC] Capture ContentProvider/Application onCreate calls Oct 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2023

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

Generated by 🚫 dangerJS against 2e86789

@markushi markushi changed the title [PoC] Capture ContentProvider/Application onCreate calls Instrument ContentProvider/Application onCreate calls to measure app-start performance Oct 11, 2023
@markushi markushi marked this pull request as ready for review October 11, 2023 06:23
@markushi markushi requested a review from romtsn as a code owner October 11, 2023 06:23
@romtsn

This comment was marked as outdated.

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

LGTM, great stuff and also is very concise 🚀

@markushi markushi requested a review from adinauer as a code owner December 5, 2023 12:15
@markushi markushi merged commit c1eba4d into main Dec 19, 2023
@markushi markushi deleted the feat/app-start-metrics branch December 19, 2023 07:20
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.

2 participants