sentry_dio 6.3.0 copy "sentry_dio: ^6.3.0" to clipboard
sentry_dio: ^6.3.0 copied to clipboard

outdated

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


Sentry integration for dio package #

package build pub likes popularity pub points
sentry_dio build pub package likes popularity pub points

Integration for the dio package.

dio is in an experimental stage and it could lead to bugs. We recognize the irony.

Usage

  • Sign up for a Sentry.io account and get a DSN at http://sentry.io.

  • Follow the installing instructions on pub.dev.

  • Initialize the Sentry SDK using the DSN issued by Sentry.io:

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();
  // Make sure this is the last initialization method, 
  // otherwise you might override Sentrys configuration.
  dio.addSentry(...);
}

Dependending on you configuration, this can add performance tracing, http breadcrumbs and automatic recording of bad http requests.

Resources

  • Documentation
  • Forum
  • Discord
  • Stack Overflow
  • Twitter Follow
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