Datadog traces for bad requests (4xx) reported as errors


We're running Traefik ingress as a DaemonSet in Kubernetes with metrics and traces sent to Datadog.

Currently, the bad request Traefik traces that have HTTP 4xx status codes are counted and reported as errors. Is it possible to rather limit error traces to HTTP 5xx series status codes?

These are useful metrics when setting up SLIs, monitors and dashboard graphs.

Version: traefik:1.7.24

Thank you.