From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- .../opentracing-cpp/include/opentracing/noop.h | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/jaegertracing/opentracing-cpp/include/opentracing/noop.h (limited to 'src/jaegertracing/opentracing-cpp/include/opentracing/noop.h') diff --git a/src/jaegertracing/opentracing-cpp/include/opentracing/noop.h b/src/jaegertracing/opentracing-cpp/include/opentracing/noop.h new file mode 100644 index 000000000..53134893d --- /dev/null +++ b/src/jaegertracing/opentracing-cpp/include/opentracing/noop.h @@ -0,0 +1,28 @@ +#ifndef OPENTRACING_NOOP_H +#define OPENTRACING_NOOP_H + +#include +#include +#include +#include + +namespace opentracing { +BEGIN_OPENTRACING_ABI_NAMESPACE +// A NoopTracer is a trivial, minimum overhead implementation of Tracer +// for which all operations are no-ops. +// +// The primary use of this implementation is in libraries, such as RPC +// frameworks, that make tracing an optional feature controlled by the +// end user. A no-op implementation allows said libraries to use it +// as the default Tracer and to write instrumentation that does +// not need to keep checking if the tracer instance is nil. +// +// For the same reason, the NoopTracer is the default "global" tracer +// (see Tracer::Global and Tracer::InitGlobal functions). +// +// WARNING: NoopTracer does not support baggage propagation. +OPENTRACING_API std::shared_ptr MakeNoopTracer() noexcept; +END_OPENTRACING_ABI_NAMESPACE +} // namespace opentracing + +#endif // OPENTRACING_NOOP_H -- cgit v1.2.3