Skip to content

Inconsistent behaviour regarding forwardErrorsToLogs and forwardConsoleLogs #3356

Open
@OliverJAsh

Description

@OliverJAsh

When forwardErrorsToLogs is explicitly enabled, Datadog adds error to forwardConsoleLogs:

if (initConfiguration.forwardErrorsToLogs && !forwardConsoleLogs.includes(ConsoleApiName.error)) {
forwardConsoleLogs.push(ConsoleApiName.error)
}

However, if forwardErrorsToLogs is omitted from the initial configuration, this does not happen, despite the fact that forwardErrorsToLogs defaults to true.

Datadog should behave the same when forwardErrorsToLogs: true and when forwardErrorsToLogs is omitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions