Skip to content

Commit

Permalink
♻️ Make fields of event and status public to make using them in tests…
Browse files Browse the repository at this point in the history
… easier (#160)

Signed-off-by: Caleb Schoepp <[email protected]>
  • Loading branch information
calebschoepp authored Sep 12, 2024
1 parent 720174c commit db43316
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fake-opentelemetry-collector/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ impl From<opentelemetry_proto::tonic::trace::v1::Span> for ExportedSpan {

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Serialize)]
pub struct Status {
message: String,
code: String,
pub message: String,
pub code: String,
}

impl From<opentelemetry_proto::tonic::trace::v1::Status> for Status {
Expand Down Expand Up @@ -90,10 +90,10 @@ impl From<&opentelemetry_proto::tonic::trace::v1::span::Link> for Link {

#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
pub struct Event {
time_unix_nano: u64,
name: String,
attributes: BTreeMap<String, String>,
dropped_attributes_count: u32,
pub time_unix_nano: u64,
pub name: String,
pub attributes: BTreeMap<String, String>,
pub dropped_attributes_count: u32,
}

impl From<&opentelemetry_proto::tonic::trace::v1::span::Event> for Event {
Expand Down

0 comments on commit db43316

Please sign in to comment.