Skip to content

Commit

Permalink
Fix StatusCode in stdout exporter (open-telemetry#1453)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-white committed Dec 24, 2023
1 parent bd572d5 commit 2ee6b6a
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 2ee6b6a

Please sign in to comment.