sentry_dio 6.3.0-beta.3 sentry_dio: ^6.3.0-beta.3 copied to clipboard
An integration which adds support for performance tracing for the Dio package.
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();
}