Set up Flows
Instrument the key journeys in your Android app to track completion and drop-off rates and their causes. Flows needs Android SDK v13.0.0 or later.
Flows gives you consolidated view of the health and performance of your app's most important flows. With simple instrumentation, you can measure the time it takes users to complete key user journeys, understand completion and drop-off rates as well as their root causes, learn what crashes are affecting your flows, and gain insight into the various spans and operations occurring within those flows and their performance.
Instrumentation
To create a flow you just need to define a start and an end for that flow in your code. Luciq automatically captures data health and performance data between those two points. All instances of flows with the same name are aggregated on your dashboard.
Start a Flow
To mark the beginning of a Flow, add the following API call to your code:
//Start a Flow
APM.startFlow("flowName")//Start a Flow
APM.startFlow("flowName");This API call initiates an instance of a flow named “flowName”. If any other instances of the same flow are already started and weren’t ended yet, they are considered drop-offs.
Naming Limitation for Flows:
Flow name can be up to 150 characters. Any extra characters are truncated.
Flow name can't be null or an empty string.
Avoid adding any of these special characters [, (, ), =, {, }, <, >, /, , ] (commas not included) as they will be replaced with _.
End a Flow
To mark the end of an already started Flow, use the following API call:
This API call ends an instance of the flow “flowName”. Be sure to call this at the right point in your call to accurately capture the duration and completion state of the flow.
Adding Custom Flow Attributes
Luciq automatically attaches some attributes like app version, OS version, and device to all Flows. You can use those attributes to drill-down and find insightful patterns in your data (e.g . if a performance problem is related to a specific device model).
For advanced analysis, you can create your own custom attributes and attach them to any flow. This step is optional but can provide valuable context for debugging specific user segments or behaviors.
This API call creates a new custom attribute called “key” with the value “value” and attaches it to the flow “flowName”.
Last updated