Skip to content

Commit

Permalink
core: fix the error condition for Datadog report
Browse files Browse the repository at this point in the history
  • Loading branch information
woshilapin committed Feb 13, 2024
1 parent 4105b19 commit 6f8adec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/fr/sncf/osrd/cli/TkDataDog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f8adec

Please sign in to comment.