|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
6 #include "opentelemetry/common/attribute_value.h"
7 #include "opentelemetry/common/key_value_iterable_view.h"
8 #include "opentelemetry/nostd/shared_ptr.h"
9 #include "opentelemetry/nostd/span.h"
10 #include "opentelemetry/nostd/string_view.h"
11 #include "opentelemetry/nostd/type_traits.h"
12 #include "opentelemetry/nostd/variant.h"
13 #include "opentelemetry/version.h"
30 virtual void Observe(T value) noexcept = 0;
36 void Observe(T value,
const U &attributes) noexcept
42 std::initializer_list<std::pair<nostd::string_view, common::AttributeValue>>
45 this->
Observe(value,
nostd::span<
const std::pair<nostd::string_view, common::AttributeValue>>{
46 attributes.begin(), attributes.end()});
Provide a type-erased version of std::shared_ptr that has ABI stability.
ObserverResultT class is necessary for the callback recording asynchronous instrument use.
#define OPENTELEMETRY_BEGIN_NAMESPACE
virtual ~ObserverResultT()=default
#define OPENTELEMETRY_END_NAMESPACE
Supports internal iteration over a collection of key-value pairs.
typename std::enable_if< B, T >::type enable_if_t
Back port of std::enable_if_t.
Container for key-value pairs that can transform every value in it to one of types listed in common::...
nostd::variant< nostd::shared_ptr< ObserverResultT< int64_t > >, nostd::shared_ptr< ObserverResultT< double > >> ObserverResult
void Observe(T value, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept
virtual void Observe(T value) noexcept=0
void Observe(T value, const U &attributes) noexcept