sentry_supabase 9.9.0-beta.4 copy "sentry_supabase: ^9.9.0-beta.4" to clipboard
sentry_supabase: ^9.9.0-beta.4 copied to clipboard

Sentry integration to instrument Supabase.

example/example.dart

import 'package:supabase_flutter/supabase_flutter.dart';
import 'package:sentry_supabase/sentry_supabase.dart';

Future<void> main() async {
  // Create a [SentrySupabaseClient] and pass it to Supabase during initialization.

  final sentrySupabaseClient = SentrySupabaseClient();
  await Supabase.initialize(
    url: '<YOUR_SUPABASE_URL>',
    anonKey: '<YOUR_SUPABASE_ANON_KEY>',
    httpClient: sentrySupabaseClient,
  );

  // Now all [Supabase] operations and queries will
  // be instrumented with Sentry breadcrumbs, traces and errors.

  final issues = await Supabase.instance.client.from('issues').select();
}
0
likes
0
points
620
downloads

Publisher

unverified uploader

Weekly Downloads

Sentry integration to instrument Supabase.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, sentry

More

Packages that depend on sentry_supabase