Skip to main content

vigil_backend 0.1.1 copy "vigil_backend: ^0.1.1" to clipboard
vigil_backend: ^0.1.1 copied to clipboard

Optional HTTP uploader that batches locally captured Vigil network calls and sends them to a protected backend ingest endpoint.

example/main.dart

import 'package:vigil_backend/vigil_backend.dart';
import 'package:vigil_core/vigil_core.dart';

Future<void> main() async {
  Vigil.instance.init();

  final connection = VigilBackendConnection.connect(
    config: VigilBackendConfig(
      enabled: false,
      endpoint: Uri.parse('https://dev-api.example.com/vigil/ingest'),
      ingestKey: const String.fromEnvironment('VIGIL_INGEST_KEY'),
      clientInfo: const {'app': 'example'},
    ),
  );

  await connection.dispose();
}
1
likes
160
points
467
downloads

Documentation

API reference

Publisher

verified publisherguptan404.com

Weekly Downloads

Optional HTTP uploader that batches locally captured Vigil network calls and sends them to a protected backend ingest endpoint.

Repository (GitHub)
View/report issues
Contributing

Topics

#network-monitoring #http #debugging #observability #developer-tools

License

BSD-3-Clause (license)

Dependencies

http, vigil_core

More

Packages that depend on vigil_backend