Skip to content

Commit

Permalink
fix(core): Revert to original addBreadcrumb code
Browse files Browse the repository at this point in the history
Signed-off-by: Kaung Zin Hein <kaungzinhein113@gmail.com>
  • Loading branch information
Zen-cronic committed Sep 18, 2024
1 parent 3100ead commit 7cea142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): vo
if (maxBreadcrumbs <= 0) return;

const timestamp = dateTimestampInSeconds();
const mergedBreadcrumb = { timestamp, breadcrumb };
const mergedBreadcrumb = { timestamp, ...breadcrumb };
const finalBreadcrumb = beforeBreadcrumb
? (consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) as Breadcrumb | null)
: mergedBreadcrumb;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class ScopeClass implements ScopeInterface {

const mergedBreadcrumb = {
timestamp: dateTimestampInSeconds(),
breadcrumb,
...breadcrumb,
};

const breadcrumbs = this._breadcrumbs;
Expand Down

0 comments on commit 7cea142

Please sign in to comment.