Skip to main content

daravel_pulse 1.25.0 copy "daravel_pulse: ^1.25.0" to clipboard
daravel_pulse: ^1.25.0 copied to clipboard

An observability dashboard for Daravel, after Laravel Pulse. Requests, slow requests and queries, exceptions, queues and jobs across every worker isolate, with no external service.

example/main.dart

import 'package:daravel/daravel.dart';
import 'package:daravel_pulse/daravel_pulse.dart';

/// Serves the dashboard at `/pulse` (open in `APP_ENV=local`; give it
/// middleware elsewhere). `GET /slow` takes 1.2 s and `GET /boom` throws,
/// so both show up on it.
Application createApp() =>
    Application.configure(basePath: '.')
        .withPulse()
        .withRouting(
          api: (router) {
            router
              ..get('/slow', (_) async {
                await Future<void>.delayed(const Duration(milliseconds: 1200));
                return {'slow': true};
              })
              ..get('/boom', (_) => throw StateError('Something broke'));
          },
        )
        .create();

Future<void> main() async => Application.serveWith(createApp);
0
likes
160
points
498
downloads

Documentation

Documentation
API reference

Publisher

verified publisherframework.daravel.dev

Weekly Downloads

An observability dashboard for Daravel, after Laravel Pulse. Requests, slow requests and queries, exceptions, queues and jobs across every worker isolate, with no external service.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#monitoring #observability #dashboard #performance #server

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

daravel

More

Packages that depend on daravel_pulse