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.
Hello ! I would like discuss about adding a
WithErrorCheckoption 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.Cancelederror could be ignored in datadog.I have already done the code for this and would be happy to create a PR for it.