levit_monitor 0.0.7 copy "levit_monitor: ^0.0.7" to clipboard
levit_monitor: ^0.0.7 copied to clipboard

A monitoring package for Levit applications. Uses Scope and Reactive State middlewares to stream events to customizable transports.

levit_monitor #

Pub Version Platforms License: MIT codecov

Purpose & Scope #

levit_monitor is the diagnostics and event export layer for Levit runtimes.

This package is responsible for:

  • Capturing structured runtime events from DI and reactive layers.
  • Filtering and obfuscating payloads before export.
  • Dispatching events through pluggable transports.
  • Maintaining optional in-memory shadow state for debugging workflows.

This package does not include:

  • Visualization UI or dashboards.
  • Business logic instrumentation outside the Levit runtime event model.

Conceptual Overview #

Monitoring is opt-in. Calling LevitMonitor.attach() installs middleware into the runtime. Event flow:

  1. Runtime emits DI/reactive events.
  2. Filter decides whether to forward the event.
  3. Obfuscator redacts sensitive values.
  4. Transport(s) deliver encoded events.

Getting Started #

dependencies:
  levit_monitor: ^latest
import 'package:levit_monitor/levit_monitor.dart';

void main() {
  LevitMonitor.attach(
    transport: ConsoleTransport(),
    filter: (event) => true,
  );
}

Design Principles #

  • Opt-in instrumentation with explicit attach/detach lifecycle.
  • Transport-agnostic event delivery.
  • Privacy-aware output through obfuscation hooks.
  • Low-friction integration with existing Levit middleware semantics.
1
likes
160
points
132
downloads

Publisher

unverified uploader

Weekly Downloads

A monitoring package for Levit applications. Uses Scope and Reactive State middlewares to stream events to customizable transports.

Repository (GitHub)
View/report issues
Contributing

Topics

#devtools #debugging #monitoring

Documentation

API reference

License

MIT (license)

Dependencies

levit_dart_core, levit_reactive, levit_scope, logger, meta, web_socket_channel

More

Packages that depend on levit_monitor