# Mobile application sql lite instrumentation using oneagent SDK or custom agent?

**URL:** <https://community.dynatrace.com/t/mobile-application-sql-lite-instrumentation-using-oneagent-sdk-or-custom-agent/35488>\
**Category:** Real User Monitoring\
**Tags:** sql, mobile-monitoring, oneagent-sdk\
**Created:** [June 15, 2022, 4:11am UTC](https://community.dynatrace.com/t/mobile-application-sql-lite-instrumentation-using-oneagent-sdk-or-custom-agent/35488 "2022-06-15T04:11:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [June 15, 2022, 4:11am UTC](https://community.dynatrace.com/t/mobile-application-sql-lite-instrumentation-using-oneagent-sdk-or-custom-agent/35488/1 "2022-06-15T04:11:01Z")

</div>

Hi everyone,

We have come across challenge where the mobile application instrumentation using SDK doesn’t support SQLlite monitoring out of the box. Is there any documentation or reference available if the integration is possible defining some custom scripts (example for android native app) can be shared here will be of help.

I am aware we can explicitly share metrics to DT using custom agents but need a documentation reference to share it with client.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 15, 2022, 6:36am UTC](https://community.dynatrace.com/t/mobile-application-sql-lite-instrumentation-using-oneagent-sdk-or-custom-agent/35488/2 "2022-06-15T06:36:48Z")

</div>

Hello&nbsp;[@techean](https://community.dynatrace.com/user/49581)&nbsp;,

mobile app instrumentation is about digital (user) experience, not about the technical implementation. The focus is to capture user actions and (optionally) further activities triggered from the actions. Some activities such as network calls or lifecycle activities are captured. For all other activities you need to call the SDK in the part of your code where the activity is started and finished.&nbsp;  
You need to create an action (root action or child action depending on your situation). See the docs:

- [Android](https://www.dynatrace.com/support/help/shortlink/oneagent-sdk-for-android#create-custom-actions)
- [iOS](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/mobile-apps/instrument-ios-app/customization/oneagent-sdk-for-ios#create-custom-user-action)

Also, don’t forget to capture and send errors using reportError methods - if they matter to the user. No errors except network calls or crashes are captured by the Mobile App SDKs.

Julius

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [June 21, 2022, 11:19am UTC](https://community.dynatrace.com/t/mobile-application-sql-lite-instrumentation-using-oneagent-sdk-or-custom-agent/35488/3 "2022-06-21T11:19:47Z")

</div>

Julius, I have gone through this documentation, so its left with the developer now to define custom errors right if I need to summarize this?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 21, 2022, 4:51pm UTC](https://community.dynatrace.com/t/mobile-application-sql-lite-instrumentation-using-oneagent-sdk-or-custom-agent/35488/4 "2022-06-21T16:51:49Z")

</div>

Correct. Reporting errors, values and creating custom user actions or child actions to existing actions which will represent the calls you need to observe in the app.
