avo_inspector 1.0.0 copy "avo_inspector: ^1.0.0" to clipboard
avo_inspector: ^1.0.0 copied to clipboard

Avo Inspector for Dart. Find out what's wrong with your data. The first step to better analytics governance is knowing what's wrong with your data today.

Avo Inspector #

Installation #

With Flutter:

$ flutter pub add avo_inspector

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  avo_inspector: ^1.0.0

Import it #

Now in your Dart code, you can use:

import 'package:avo_inspector/avo_inspector.dart';

Initialization #

Obtain the API key at Avo.app

import 'package:avo_inspector/avo_inspector.dart';

AvoInspector avoInspector = await AvoInspector.create(
      apiKey: "my_key",
      env: AvoInspectorEnv.dev,
      appVersion: "1.0",
      appName: "Hello Flutter");

Enabling logs #

Logs are enabled by default in the dev mode and disabled in prod mode.

AvoInspector.shouldLog = true;

Sending event schemas to Avo Inspector #

This method gets actual tracking event parameters, extracts schema automatically and sends it to the Avo Inspector backend. Just call this method at the same place you call your analytics tools' track methods with the same parameters.

avoInspector.trackSchemaFromEvent(
            eventName: "Event name",
            eventProperties: {
                "String Prop": "Prop Value",
                "Float Prop": 1.0,
                "Boolean Prop": true});

Read more in the Avo documentation

Batching control #

In order to ensure our SDK doesn't have a large impact on performance or battery life it supports event schemas batching.

Default batch size is 30 and default batch flush timeout is 30 seconds. In development mode batching is disabled.

AvoBatcher.batchSizeThreshold = 10;
AvoBatcher.batchFlushSecondsThreshold = 10;

Author #

Avo (https://www.avo.app), friends@avo.app

License #

AvoInspector is available under the MIT license.

1
likes
110
pub points
54%
popularity

Publisher

unverified uploader

Avo Inspector for Dart. Find out what's wrong with your data. The first step to better analytics governance is knowing what's wrong with your data today.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, shared_preferences, uuid

More

Packages that depend on avo_inspector