diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b35b89037..4e8e5c3587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 serializable types and not only String values # `package:sentry` changelog diff --git a/dart/lib/src/protocol/breadcrumb.dart b/dart/lib/src/protocol/breadcrumb.dart index 7769cf33cb..03c41dfb44 100644 --- a/dart/lib/src/protocol/breadcrumb.dart +++ b/dart/lib/src/protocol/breadcrumb.dart @@ -47,7 +47,7 @@ class Breadcrumb { /// See also: /// /// * https://docs.sentry.io/development/sdk-dev/event-payloads/breadcrumbs/#breadcrumb-types - final Map data; + final Map data; /// Severity of the breadcrumb. /// @@ -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;