-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Description
Description:
CSP violation events reported by Sentry have event.type === 'csp', but the current EventType type in the SDK does not include 'csp'. This causes TypeScript errors when handling CSP events in beforeSend.
Reference:
EventType definition (line 69)
Proposed fix:
Add 'csp' to EventType:
export type EventType =
| 'transaction'
| 'profile'
| 'replay_event'
| 'feedback'
| 'csp'
| undefined;Why:
The SDK emits CSP events with type: 'csp', so TypeScript definitions should accurately represent this.
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Waiting for: Community