Skip to content

Commit

Permalink
Fix StatusCode in stdout exporter (#1453) (#1454)
Browse files Browse the repository at this point in the history
Fixes #1453

## Changes

Swap the ordinals to match the spec.

Co-authored-by: Lalit Kumar Bhasin <[email protected]>
  • Loading branch information
j-white and lalitb authored Jan 4, 2024
1 parent f31c4dd commit 4c5c101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-stdout/src/trace/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ impl From<opentelemetry::trace::Status> for Status {
},
opentelemetry::trace::Status::Error { description } => Status {
message: Some(description),
code: 1,
code: 2,
},
opentelemetry::trace::Status::Ok => Status {
message: None,
code: 2,
code: 1,
},
}
}
Expand Down

0 comments on commit 4c5c101

Please sign in to comment.