We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79270ce commit d8f2f80Copy full SHA for d8f2f80
examples/tracing-http-propagator/src/server.rs
@@ -136,7 +136,9 @@ impl SpanProcessor for RouteConcurrencyCounterSpanProcessor {
136
else {
137
return;
138
};
139
- let mut counts = self.0.lock().unwrap();
+ let Ok(mut counts) = self.0.lock() else {
140
+ return;
141
+ };
142
let count = counts.entry(route.key.clone()).or_default();
143
*count += 1;
144
span.set_attribute(KeyValue::new(
@@ -156,7 +158,9 @@ impl SpanProcessor for RouteConcurrencyCounterSpanProcessor {
156
158
157
159
160
161
162
163
164
let Some(count) = counts.get_mut(&route.key) else {
165
166
0 commit comments