Skip to content

Commit

Permalink
beforeSend can now return a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Feb 23, 2021
1 parent 23f9568 commit 0fdce7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/logs/src/boot/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { buildEnv } from './buildEnv'

export interface LogsUserConfiguration extends UserConfiguration {
forwardErrorsToLogs?: boolean
beforeSend?: (event: LogsEvent) => void
beforeSend?: (event: LogsEvent) => void | boolean
}

const FIELDS_WITH_SENSITIVE_DATA = ['view.url', 'view.referrer', 'message', 'error.stack', 'http.url']
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-core/src/boot/rumPublicApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { startRum } from './rum'

export interface RumUserConfiguration extends UserConfiguration {
applicationId: string
beforeSend?: (event: RumEvent) => void
beforeSend?: (event: RumEvent) => void | boolean
}

export type RumPublicApi = ReturnType<typeof makeRumPublicApi>
Expand Down

0 comments on commit 0fdce7e

Please sign in to comment.