Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- Ref: execute before send callback
- Feat: add lastEventId to the Sentry static API
- Feat: addBreadcrumb on Static API
- Fix: Breadcrumb data should accept serialziable types and not only String values

# `package:sentry` changelog

Expand Down
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