Skip to content

Commit

Permalink
fix: duplicate breadcrumbs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jun 3, 2024
1 parent c76e99c commit eec5fd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sentry/utils/envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function createUserFeedbackEnvelope(
};
const item = createUserFeedbackEnvelopeItem(feedback);

return createEnvelope(headers, [item]) as any;
return createEnvelope<any>(headers, [item]);
}

function createUserFeedbackEnvelopeItem(feedback: UserFeedback): UserFeedbackItem {
Expand Down
4 changes: 2 additions & 2 deletions src/sentry/wrapper.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ export namespace NATIVE {
const event = _processLevels(itemPayload as Event);

// fix for native SDK
event.timestamp = new Date(event.timestamp * 1000).toISOString() as any;
// event.timestamp = new Date(event.timestamp * 1000).toISOString() as any;
if ('message' in event) {
// @ts-ignore Android still uses the old message object, without this the serialization of events will break.
event.message = { message: event.message };
}
event.breadcrumbs = _getBreadcrumbs(event);
// event.breadcrumbs = _getBreadcrumbs(event);

return [itemHeader, event];
}
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/wrapper.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export namespace NATIVE {
const event = _processLevels(itemPayload as Event);
// console.log('_processItem', JSON.stringify(event.exception.values[0].stacktrace.frames.reverse()))

event.breadcrumbs = _getBreadcrumbs(event);
// event.breadcrumbs = _getBreadcrumbs(event);
return [itemHeader, event];
}

Expand Down

0 comments on commit eec5fd8

Please sign in to comment.