Skip to content

Commit

Permalink
Impl clone for noop tracer/provider/span (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtescher authored Mar 14, 2021
1 parent e17a131 commit 0b1074e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opentelemetry/src/trace/noop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use async_trait::async_trait;
use std::time::SystemTime;

/// A no-op instance of a `TracerProvider`.
#[derive(Debug, Default)]
#[derive(Clone, Debug, Default)]
pub struct NoopTracerProvider {
_private: (),
}
Expand All @@ -35,7 +35,7 @@ impl trace::TracerProvider for NoopTracerProvider {
}

/// A no-op instance of a `Span`.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct NoopSpan {
span_context: trace::SpanContext,
}
Expand Down Expand Up @@ -109,7 +109,7 @@ impl trace::Span for NoopSpan {
}

/// A no-op instance of a `Tracer`.
#[derive(Debug, Default)]
#[derive(Clone, Debug, Default)]
pub struct NoopTracer {
_private: (),
}
Expand Down

0 comments on commit 0b1074e

Please sign in to comment.