Skip to content

Commit db43316

Browse files
authored
♻️ Make fields of event and status public to make using them in tests easier (#160)
Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
1 parent 720174c commit db43316

File tree

1 file changed

+6
-6
lines changed
  • fake-opentelemetry-collector/src

1 file changed

+6
-6
lines changed

fake-opentelemetry-collector/src/trace.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ impl From<opentelemetry_proto::tonic::trace::v1::Span> for ExportedSpan {
5454

5555
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Serialize)]
5656
pub struct Status {
57-
message: String,
58-
code: String,
57+
pub message: String,
58+
pub code: String,
5959
}
6060

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

9191
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
9292
pub struct Event {
93-
time_unix_nano: u64,
94-
name: String,
95-
attributes: BTreeMap<String, String>,
96-
dropped_attributes_count: u32,
93+
pub time_unix_nano: u64,
94+
pub name: String,
95+
pub attributes: BTreeMap<String, String>,
96+
pub dropped_attributes_count: u32,
9797
}
9898

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

0 commit comments

Comments
 (0)