Skip to content

Commit 40ba259

Browse files
committed
format tests
1 parent deceaa7 commit 40ba259

2 files changed

Lines changed: 13 additions & 20 deletions

File tree

bottlecap/src/lifecycle/invocation/span_inferrer.rs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ impl SpanInferrer {
112112

113113
wrapped_inferred_span.duration =
114114
inferred_span.start - wrapped_inferred_span.start;
115-
wrapped_inferred_span.meta.insert(
116-
"_inferred_span.tag_source".to_string(),
117-
"self".to_string(),
118-
);
115+
wrapped_inferred_span
116+
.meta
117+
.insert("_inferred_span.tag_source".to_string(), "self".to_string());
119118
wrapped_inferred_span.meta.insert(
120119
"_inferred_span.synchronicity".to_string(),
121120
"async".to_string(),
@@ -139,10 +138,9 @@ impl SpanInferrer {
139138

140139
wrapped_inferred_span.duration =
141140
inferred_span.start - wrapped_inferred_span.start;
142-
wrapped_inferred_span.meta.insert(
143-
"_inferred_span.tag_source".to_string(),
144-
"self".to_string(),
145-
);
141+
wrapped_inferred_span
142+
.meta
143+
.insert("_inferred_span.tag_source".to_string(), "self".to_string());
146144
wrapped_inferred_span.meta.insert(
147145
"_inferred_span.synchronicity".to_string(),
148146
"async".to_string(),
@@ -174,10 +172,9 @@ impl SpanInferrer {
174172

175173
wrapped_inferred_span.duration =
176174
inferred_span.start - wrapped_inferred_span.start;
177-
wrapped_inferred_span.meta.insert(
178-
"_inferred_span.tag_source".to_string(),
179-
"self".to_string(),
180-
);
175+
wrapped_inferred_span
176+
.meta
177+
.insert("_inferred_span.tag_source".to_string(), "self".to_string());
181178
wrapped_inferred_span.meta.insert(
182179
"_inferred_span.synchronicity".to_string(),
183180
"async".to_string(),
@@ -273,10 +270,9 @@ impl SpanInferrer {
273270
self.inferred_span = None;
274271
} else {
275272
let synchronicity = if t.is_async() { "async" } else { "sync" };
276-
inferred_span.meta.insert(
277-
"_inferred_span.tag_source".to_string(),
278-
"self".to_string(),
279-
);
273+
inferred_span
274+
.meta
275+
.insert("_inferred_span.tag_source".to_string(), "self".to_string());
280276
inferred_span.meta.insert(
281277
"_inferred_span.synchronicity".to_string(),
282278
synchronicity.to_string(),

bottlecap/src/traces/trace_processor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,10 +1567,7 @@ mod tests {
15671567

15681568
fn create_inferred_span() -> pb::Span {
15691569
let mut meta = HashMap::new();
1570-
meta.insert(
1571-
"_inferred_span.tag_source".to_string(),
1572-
"self".to_string(),
1573-
);
1570+
meta.insert("_inferred_span.tag_source".to_string(), "self".to_string());
15741571
pb::Span {
15751572
name: "aws.sqs".to_string(),
15761573
service: "sqs".to_string(),

0 commit comments

Comments
 (0)