jnelle / dio_firebase_performance

Dio Interceptor for reporting network metrics to Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dio_fire_png

Description

Dio's Interceptor implementation that sends http request metric data to Firebase.

STATUS: works for us in production.

Usage

final dio = Dio();
final performanceInterceptor = DioFirebasePerformanceInterceptor();
dio.interceptors.add(performanceInterceptor);

SUGGESTION: If you use dio client as a singleton you can use this interceptor as singleton as well.

About

Dio Interceptor for reporting network metrics to Firebase

License:MIT License


Languages

Language:Dart 100.0%