sentry_dio 6.4.0-beta.1 copy "sentry_dio: ^6.4.0-beta.1" to clipboard
sentry_dio: ^6.4.0-beta.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://[email protected]/example';
    },
    appRunner: initDio, // Init your App.
  );
}

void initDio() {
  final dio = Dio();
  dio.httpClientAdapter = SentryHttpClientAdapter();
}
26
likes
0
pub points
97%
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