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 d87fc75 commit 79244e4Copy full SHA for 79244e4
opentelemetry-contrib/src/trace/context.rs
@@ -30,7 +30,7 @@ use std::{
30
/// }
31
/// ```
32
pub fn new_span_if_parent_sampled(
33
- builder_fn: impl Fn() -> SpanBuilder,
+ builder_fn: impl FnOnce() -> SpanBuilder,
34
tracer: TracerSource<'_>,
35
) -> Option<Context> {
36
Context::map_current(|current| {
@@ -64,7 +64,7 @@ pub fn new_span_if_parent_sampled(
64
65
66
pub fn new_span_if_recording(
67
68
69
70
0 commit comments