sentry_dio 6.5.0-alpha.1 copy "sentry_dio: ^6.5.0-alpha.1" to clipboard
sentry_dio: ^6.5.0-alpha.1 copied to clipboard

outdated

An integration which adds support for performance tracing for the Dio package.

example/example.dart

import 'package:dio/dio.dart';
import 'package:sentry/sentry.dart';
import 'package:sentry_dio/sentry_dio.dart';

Future<void> main() async {
  await Sentry.init(
    (options) {
      options.dsn = 'https://example@sentry.io/example';
    },
    appRunner: initDio, // Init your App.
  );
}

void initDio() {
  final dio = Dio();
  dio.httpClientAdapter = SentryHttpClientAdapter();
}
32
likes
0
pub points
98%
popularity

Publisher

verified publishersentry.io

An integration which adds support for performance tracing for the Dio package.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, meta, sentry

More

Packages that depend on sentry_dio