Skip to content

Add a WithErrorCheck option for redis #1771

Description

@lsgndln

Hello ! I would like discuss about adding a WithErrorCheck option for Redis. This has been implemented already in many packages, and the goal of this option is to have a way to define which error should be marked as a datadog error.

For example, a context.Canceled error could be ignored in datadog.

redistrace.WithErrorCheck(func(err error) bool {
    return err != nil && !errors.Is(err, context.Canceled)
})

I have already done the code for this and would be happy to create a PR for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apm:ecosystemcontrib/* related feature requests or bugsproposalmore in depth change that requires full team approvalproposal/acceptedAccepted proposals

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions