Skip to content

Sentry.captureTransaction should return Future<SentryId?> instead of Future<SentryId> #712

@ueman

Description

@ueman

Platform:

  • Dart
  • Flutter Android or iOS
  • Flutter Web

IDE:

  • VSCode
  • IntelliJ/AS
  • XCode
  • Other, which one?

split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):

  • Enabled
  • Disabled

Platform installed with:

  • pub.dev
  • GitHub

The version of the SDK (See pubspec.lock):
6.3.0 beta3


I have the following issue:

Sentry.captureTransaction should return Future<SentryId?> instead of Future<SentryId>.
If the transport, for whatever reason, returns null, which is allowed, Sentry crashes because
it does a force unwrap here

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions