diff --git a/core/src/main/java/fr/sncf/osrd/cli/TkDataDog.kt b/core/src/main/java/fr/sncf/osrd/cli/TkDataDog.kt index 19a20f4906a..8ef16da6a6b 100644 --- a/core/src/main/java/fr/sncf/osrd/cli/TkDataDog.kt +++ b/core/src/main/java/fr/sncf/osrd/cli/TkDataDog.kt @@ -25,9 +25,9 @@ class TkDataDog(take: Take) : TkWrap(Take { request: Request -> datadog(take, re val statusCode = RsStatus.Base(response).status() span.setTag(Tags.HTTP_STATUS, statusCode) if (statusCode < 400) { - span.setTag(Tags.ERROR, true) - } else { span.setTag(Tags.ERROR, false) + } else { + span.setTag(Tags.ERROR, true) } return response