|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
13 #include "opentelemetry/common/attribute_value.h"
14 #include "opentelemetry/common/key_value_iterable.h"
15 #include "opentelemetry/common/timestamp.h"
16 #include "opentelemetry/context/context_value.h"
17 #include "opentelemetry/nostd/shared_ptr.h"
18 #include "opentelemetry/nostd/string_view.h"
19 #include "opentelemetry/nostd/unique_ptr.h"
20 #include "opentelemetry/trace/span.h"
21 #include "opentelemetry/trace/span_context.h"
22 #include "opentelemetry/trace/span_context_kv_iterable.h"
23 #include "opentelemetry/trace/span_metadata.h"
24 #include "opentelemetry/trace/span_startoptions.h"
25 #include "opentelemetry/trace/tracer.h"
26 #include "opentelemetry/trace/tracer_provider.h"
27 #include "opentelemetry/version.h"
29 namespace trace_api = opentelemetry::trace;
40 explicit NoopSpan(
const std::shared_ptr<Tracer> &tracer) noexcept
41 : tracer_{tracer}, span_context_{
new SpanContext(
false,
false)}
44 explicit NoopSpan(
const std::shared_ptr<Tracer> &tracer,
46 : tracer_{tracer}, span_context_{
std::move(span_context)}
68 #if OPENTELEMETRY_ABI_VERSION_NO >= 2
73 void AddLinks(
const SpanContextKeyValueIterable & ) noexcept
override {}
87 std::shared_ptr<Tracer> tracer_;
95 public std::enable_shared_from_this<NoopTracer>
101 #if OPENTELEMETRY_ABI_VERSION_NO >= 2
102 UpdateEnabled(
false);
118 #if OPENTELEMETRY_ABI_VERSION_NO == 1
120 void ForceFlushWithMicroseconds(uint64_t ) noexcept
override {}
122 void CloseWithMicroseconds(uint64_t ) noexcept
override {}
137 #if OPENTELEMETRY_ABI_VERSION_NO >= 2
EndSpanOptions provides options to set properties of a Span when it is ended.
#define OPENTELEMETRY_EXPORT
StartSpanOptions provides options to set properties of a Span at the time of its creation.
void UpdateName(nostd::string_view) noexcept override
Supports internal iteration over a collection of SpanContext/key-value pairs.
void AddEvent(nostd::string_view) noexcept override
No-op implementation of Span.
Provide a simplified port of std::unique_ptr that has ABI stability.
nostd::shared_ptr< trace::Tracer > GetTracer(nostd::string_view, nostd::string_view, nostd::string_view) noexcept override
void AddEvent(nostd::string_view, const common::KeyValueIterable &) noexcept override
Provide a type-erased version of std::shared_ptr that has ABI stability.
NoopSpan(const std::shared_ptr< Tracer > &tracer) noexcept
void AddEvent(nostd::string_view, common::SystemTimestamp) noexcept override
A timepoint relative to the system clock epoch.
SpanContext GetContext() const noexcept override
#define OPENTELEMETRY_BEGIN_NAMESPACE
void AddEvent(nostd::string_view, common::SystemTimestamp, const common::KeyValueIterable &) noexcept override
Creates new Tracer instances.
No-op implementation of Tracer.
#define OPENTELEMETRY_END_NAMESPACE
constexpr absl::OTABSL_OPTION_NAMESPACE_NAME::remove_reference_t< T > && move(T &&t) noexcept
Supports internal iteration over a collection of key-value pairs.
void SetAttribute(nostd::string_view, const common::AttributeValue &) noexcept override
NoopSpan(const std::shared_ptr< Tracer > &tracer, nostd::unique_ptr< SpanContext > span_context) noexcept
void SetStatus(StatusCode, nostd::string_view) noexcept override
nostd::shared_ptr< Span > StartSpan(nostd::string_view, const common::KeyValueIterable &, const SpanContextKeyValueIterable &, const StartSpanOptions &) noexcept override
bool IsRecording() const noexcept override
void End(const EndSpanOptions &) noexcept override
NoopTracerProvider() noexcept
Back port of std::string_view to work with pre-cpp-17 compilers.