Skip to main content

daravel_pulse 1.22.0 copy "daravel_pulse: ^1.22.0" to clipboard
daravel_pulse: ^1.22.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
0
points
1.03k
downloads

Documentation

Documentation

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

Topics

#monitoring #observability #dashboard #performance #server

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

daravel

More

Packages that depend on daravel_pulse