From 87327bd0ce36285bf722b407949ec0e64742b05f Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Mon, 26 Oct 2020 12:09:41 +0100 Subject: [PATCH 1/3] Fix: Breadcrumb data should accept serialziable types and not only String values --- dart/lib/src/protocol/breadcrumb.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; From bf3492736ae015cd437682b498b2b2b55a69294e Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Mon, 26 Oct 2020 12:10:12 +0100 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b35b89037..4ef8d6f8b8 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 serialziable types and not only String values # `package:sentry` changelog From 20ed605f9bef85b13bf1adb92078e9169049eda7 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Mon, 26 Oct 2020 12:52:45 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Erick Ghaumez --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef8d6f8b8..4e8e5c3587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,7 +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 +- Fix: Breadcrumb data should accept serializable types and not only String values # `package:sentry` changelog