Sentry Integration for Couchbase Lite
Supplements Sentry error reports with database context and gathers performance metrics for cbl operations.
Features
- Breadcrumbs — Automatically records database operations as Sentry breadcrumbs for richer error context.
- Performance Tracing — Tracks database and data sync operations as Sentry transactions and spans.
Getting Started
Add the package:
dart pub add cbl_sentry
Add the integration to your Sentry configuration:
import 'package:cbl_sentry/cbl_sentry.dart';
import 'package:sentry/sentry.dart';
await Sentry.init(
(options) => options
..dsn = 'your-sentry-dsn'
..tracesSampleRate = 1
..addIntegration(CouchbaseLiteIntegration()),
appRunner: () async {
// ...
},
);
Read the full documentation at cbl-dart.dev
Contributing
Pull requests are welcome. For major changes, please open an issue first. Read CONTRIBUTING to get started.
Disclaimer
This is not an official Couchbase product.