Skip to content

Commit

Permalink
fix: address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyCpp committed Mar 1, 2022
1 parent 559c11c commit 46e6a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-proto/src/transform/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub mod tonic {
.schema_url
.as_ref()
.map(ToString::to_string)
.unwrap_or_else(|| "".to_string()),
.unwrap_or_default(),
instrumentation_library: Some(source_span.instrumentation_lib.into()),
spans: vec![Span {
trace_id: source_span.span_context.trace_id().to_bytes().to_vec(),
Expand Down Expand Up @@ -182,7 +182,7 @@ pub mod grpcio {
.schema_url
.as_ref()
.map(ToString::to_string)
.unwrap_or_else(|| "".to_string()),
.unwrap_or_default(),
instrumentation_library: protobuf::SingularPtrField::some(
source_span.instrumentation_lib.into(),
),
Expand Down

0 comments on commit 46e6a58

Please sign in to comment.