Skip to content

Commit

Permalink
Fix putHttpStatusCode() (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesSteiner authored Jul 26, 2024
1 parent 7d12a8b commit 0dd37c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OpenTelemetryApi/Trace/Span.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public extension Span {
case 200 ..< 400:
newStatus = .ok
case 400 ..< 600:
newStatus = .error(description: description)
newStatus = .error(description: reasonPhrase)
default:
newStatus = .unset
}
Expand Down

0 comments on commit 0dd37c4

Please sign in to comment.