Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix: Breadcrumb data should accept serialziable types and not only St…
…ring values
  • Loading branch information
marandaneto committed Oct 26, 2020
commit 87327bd0ce36285bf722b407949ec0e64742b05f
4 changes: 2 additions & 2 deletions dart/lib/src/protocol/breadcrumb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Breadcrumb {
/// See also:
///
/// * https://docs.sentry.io/development/sdk-dev/event-payloads/breadcrumbs/#breadcrumb-types
final Map<String, String> data;
final Map<String, dynamic> data;

/// Severity of the breadcrumb.
///
Expand Down Expand Up @@ -85,7 +85,7 @@ class Breadcrumb {
json['category'] = category;
}
if (data != null && data.isNotEmpty) {
json['data'] = Map.of(data);
json['data'] = data;
}
if (level != null) {
json['level'] = level.name;
Expand Down