Set up Network Monitoring
This page helps you get started with Luciq's network performance monitoring on Android
Getting Started
plugins {
id("ai.luciq.library") version "18.0.0" apply false // adds luciq plugin
}buildscript {
dependencies {
// ...
classpath 'com.luciq.library:luciq-plugin:13.0.1'
}
}plugins {
id("luciq-apm") // Luciq APM Plugin
}apply plugin: 'luciq-apm'OkHttpClient.Builder()
// add your interceptors here
.addInterceptor(LuciqAPMOkhttpInterceptor())
// Add Luciq EventListener
.eventListener(LuciqApmOkHttpEventListener(/** optional: add your own EventListener here **/))
// Or Add Luciq EventListenerFactory
.eventListenerFactory(LuciqApmOkHttpEventListener.Factory(/** optional: add your own EventListener factory here **/))
.build()new OkHttpClient.Builder()
// add your interceptors here
.addInterceptor(new LuciqAPMOkhttpInterceptor())
// Add Luciq EventListener
.eventListener(new LuciqApmOkHttpEventListener(/** optional: add your own EventListener here **/))
// Or Add Luciq EventListenerFactory
.eventListenerFactory(new LuciqApmOkHttpEventListener.Factory(/** optional: add your own EventListener factory here **/))
.build();gRPC Support
Integration
Intercepting gRPC requests
Trace Attributes
Payload Size
Disabling/Enabling Network Performance Monitoring
Last updated