getsentry / sentry-dart

Sentry SDK for Dart and Flutter
https://sentry.io/for/flutter/
MIT License
746 stars 227 forks source link

Doc s/example for new `http` API `runWithClient` #1192

Closed marandaneto closed 1 week ago

marandaneto commented 1 year ago

Description

https://pub.dev/documentation/http/latest/http/runWithClient.html Example: https://pub.dev/packages/cupertino_http

So you can technically create a single Sentry HTTP Client and set it as global.

ueman commented 1 year ago

According to https://github.com/dart-lang/http/issues/828 it doesn't quite work that well for Flutter. It still works for pure Dart though.