Struct rustracing::span::StartSpanOptions [−][src]
pub struct StartSpanOptions<'a, S: 'a, T: 'a> { /* fields omitted */ }
Options for starting a span.
Methods
impl<'a, S: 'a, T: 'a> StartSpanOptions<'a, S, T> where
S: Sampler<T>,
[src]
impl<'a, S: 'a, T: 'a> StartSpanOptions<'a, S, T> where
S: Sampler<T>,
pub fn start_time(self, time: SystemTime) -> Self
[src]
pub fn start_time(self, time: SystemTime) -> Self
Sets the start time of this span.
pub fn tag(self, tag: Tag) -> Self
[src]
pub fn tag(self, tag: Tag) -> Self
Sets the tag to this span.
pub fn child_of<C>(self, context: &C) -> Self where
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
[src]
pub fn child_of<C>(self, context: &C) -> Self where
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
Adds the ChildOf
reference to this span.
pub fn follows_from<C>(self, context: &C) -> Self where
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
[src]
pub fn follows_from<C>(self, context: &C) -> Self where
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
Adds the FollowsFrom
reference to this span.
pub fn start(self) -> Span<T> where
T: for<'b> From<CandidateSpan<'b, T>>,
[src]
pub fn start(self) -> Span<T> where
T: for<'b> From<CandidateSpan<'b, T>>,
Starts a new span.
pub fn start_with_state(self, state: T) -> Span<T>
[src]
pub fn start_with_state(self, state: T) -> Span<T>
Starts a new span with the explicit state
.
Trait Implementations
impl<'a, S: Debug + 'a, T: Debug + 'a> Debug for StartSpanOptions<'a, S, T>
[src]
impl<'a, S: Debug + 'a, T: Debug + 'a> Debug for StartSpanOptions<'a, S, T>
Auto Trait Implementations
impl<'a, S, T> !Send for StartSpanOptions<'a, S, T>
impl<'a, S, T> !Send for StartSpanOptions<'a, S, T>
impl<'a, S, T> !Sync for StartSpanOptions<'a, S, T>
impl<'a, S, T> !Sync for StartSpanOptions<'a, S, T>