Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ANRs and Performance Monitoring for my Android Library #2878

Answered by romtsn
amrita019 asked this question in Q&A
Discussion options

Hey team,

I've integrated Sentry for Crash monitoring into my Android Library using Hub. This ensures that the logs from the Main Application don't clutter up the system. However, I'm facing an issue where I'm unable to log ANRs or enable Performance Monitoring.

I've looked for documentation on how to maintain two instances of Sentry within an application but couldn't find any. Can you please help me with this?

Thank you.

You must be logged in to vote

hi @amrita019, officially we do not support the usecase of using our SDKs in another third-party library/SDK, see the note here https://docs.sentry.io/platforms/

However, since you're using your own instance of Hub, this is possible, but you will have to manually register available integrations and other things, pretty much what is done here to achieve the same functionality. It's still not recommended though, as some of those integrations might clash with the Main Application in one or another way.

Replies: 1 comment

Comment options

hi @amrita019, officially we do not support the usecase of using our SDKs in another third-party library/SDK, see the note here https://docs.sentry.io/platforms/
image

However, since you're using your own instance of Hub, this is possible, but you will have to manually register available integrations and other things, pretty much what is done here to achieve the same functionality. It's still not recommended though, as some of those integrations might clash with the Main Application in one or another way.

You must be logged in to vote
0 replies
Answer selected by romtsn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /