hindsight_sentry 0.9.0 copy "hindsight_sentry: ^0.9.0" to clipboard
hindsight_sentry: ^0.9.0 copied to clipboard

Session replay for Flutter Sentry integration: tags every Sentry event with the live replay link and mirrors breadcrumbs onto the replay timeline.

hindsight_sentry #

Sentry integration for the hindsight session replay SDK. Keep your Sentry — every error report gains a one-click link to the moment in the session replay.

What it does:

  • Tags the Sentry scope (and every outgoing error event) with hindsight.session_id and hindsight.replay_url.
  • Records each Sentry error as an error marker on the replay timeline and force-flushes the replay buffer so the moment survives a crashing app.
  • Mirrors Sentry breadcrumbs onto the replay timeline (opt out with mirrorBreadcrumbs: false).

Usage #

await Hindsight.init(HindsightConfig(
  projectId: 'my-app',
  apiKey: 'hs_...',
));

await SentryFlutter.init(
  (options) {
    options.dsn = 'https://...@sentry.io/...';
    options.addIntegration(HindsightSentryIntegration());
  },
  appRunner: () => runApp(HindsightWidget(child: const MyApp())),
);

The integration resolves the Hindsight singleton when Sentry starts it. Multi-client setups can inject a specific client instead: HindsightSentryIntegration(client: myClient).

Pre-existing beforeSend / beforeBreadcrumb callbacks keep working: the integration wraps them and honors their drop decisions.

0
likes
140
points
36
downloads

Documentation

API reference

Publisher

verified publisherunlimit.ing

Weekly Downloads

Session replay for Flutter Sentry integration: tags every Sentry event with the live replay link and mirrors breadcrumbs onto the replay timeline.

License

Apache-2.0 (license)

Dependencies

flutter, hindsight_flutter, sentry_flutter

More

Packages that depend on hindsight_sentry