Skip to content

Commit

Permalink
πŸ› fix beforeSend type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Apr 4, 2024
1 parent 61258c1 commit 3f9cd43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/logs/src/domain/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import {
objectValues,
} from '@datadog/browser-core'
import type { LogsEvent } from '../logsEvent.types'
import type { LogsEventDomainContext } from './lifeCycle'

export interface LogsInitConfiguration extends InitConfiguration {
beforeSend?: ((event: LogsEvent) => boolean) | undefined
beforeSend?: (<T extends LogsEvent>(event: T, context: LogsEventDomainContext<T['origin']>) => boolean) | undefined
forwardErrorsToLogs?: boolean | undefined
forwardConsoleLogs?: ConsoleApiName[] | 'all' | undefined
forwardReports?: RawReportType[] | 'all' | undefined
Expand Down

0 comments on commit 3f9cd43

Please sign in to comment.