Skip to content

Commit

Permalink
Default to internal_error rather than unknown_error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberdelia committed Nov 23, 2024
1 parent a9b3687 commit 26e5605
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def update_span_status(sentry_span, otel_span)
if (http_status_code = otel_span.attributes[SEMANTIC_CONVENTIONS::HTTP_STATUS_CODE])
sentry_span.set_http_status(http_status_code)
elsif (status_code = otel_span.status.code)
status = [0, 1].include?(status_code) ? "ok" : "unknown_error"
status = [0, 1].include?(status_code) ? "ok" : "internal_error"
sentry_span.set_status(status)
end
end
Expand Down

0 comments on commit 26e5605

Please sign in to comment.