Namespaces | |
| detail | |
Data Structures | |
| class | DurationUtil |
| class | KeyValueIterable |
| Supports internal iteration over a collection of key-value pairs. More... | |
| class | KeyValueIterableView |
| Container for key-value pairs that can transform every value in it to one of types listed in common::AttributeValue. More... | |
| class | KeyValueProperties |
| class | KeyValueStringTokenizer |
| struct | KeyValueStringTokenizerOptions |
| class | NoopKeyValueIterable |
| Supports internal iteration over a collection of key-value pairs. More... | |
| class | SpinLockMutex |
| A Mutex which uses atomic flags and spin-locks instead of halting threads. More... | |
| class | SteadyTimestamp |
| A timepoint relative to the monotonic clock epoch. More... | |
| class | StringUtil |
| class | SystemTimestamp |
| A timepoint relative to the system clock epoch. More... | |
| struct | Thread |
| A simple thread, derived class overloads onThread() method. More... | |
Typedefs | |
| using | AttributeValue = nostd::variant< bool, int32_t, int64_t, uint32_t, double, const char *, nostd::string_view, nostd::span< const bool >, nostd::span< const int32_t >, nostd::span< const int64_t >, nostd::span< const uint32_t >, nostd::span< const double >, nostd::span< const nostd::string_view >, uint64_t, nostd::span< const uint64_t >, nostd::span< const uint8_t > > |
| OpenTelemetry signals can be enriched by adding attributes. More... | |
Functions | |
| template<class T , nostd::enable_if_t< detail::is_key_value_iterable< T >::value > * = nullptr> | |
| KeyValueIterableView< T > | MakeKeyValueIterableView (const T &container) noexcept |
| static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > | MakeAttributes (std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept |
| Utility function to help to make a attribute view from initializer_list. More... | |
| static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > | MakeAttributes (nostd::span< const std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept |
| Utility function to help to make a attribute view from a span. More... | |
| static const common::KeyValueIterable & | MakeAttributes (const common::KeyValueIterable &attributes) noexcept |
| Utility function to help to make a attribute view from a KeyValueIterable. More... | |
| template<class ArgumentType , nostd::enable_if_t< common::detail::is_key_value_iterable< ArgumentType >::value > * = nullptr> | |
| static common::KeyValueIterableView< ArgumentType > | MakeAttributes (const ArgumentType &attributes) noexcept |
| Utility function to help to make a attribute view from a key-value iterable object. More... | |
| static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > | MakeAttributes (std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept |
| Utility function to help to make a attribute view from initializer_list. More... | |
| static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > | MakeAttributes (nostd::span< const std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept |
| Utility function to help to make a attribute view from a span. More... | |
| static const common::KeyValueIterable & | MakeAttributes (const common::KeyValueIterable &attributes) noexcept |
| Utility function to help to make a attribute view from a KeyValueIterable. More... | |
| template<class ArgumentType , nostd::enable_if_t< common::detail::is_key_value_iterable< ArgumentType >::value > * = nullptr> | |
| static common::KeyValueIterableView< ArgumentType > | MakeAttributes (const ArgumentType &attributes) noexcept |
| Utility function to help to make a attribute view from a key-value iterable object. More... | |
Variables | |
| constexpr int | SPINLOCK_FAST_ITERATIONS = 100 |
| constexpr int | SPINLOCK_SLEEP_MS = 1 |
| typedef nostd::variant< bool, int32_t, int64_t, uint32_t, double, const char *, nostd::string_view, nostd::span< const bool >, nostd::span< const int32_t >, nostd::span< const int64_t >, nostd::span< const uint32_t >, nostd::span< const double >, nostd::span< const nostd::string_view >, uint64_t, nostd::span< const uint64_t >, nostd::span< const uint8_t > > common::AttributeValue |
OpenTelemetry signals can be enriched by adding attributes.
The AttributeValue type is defined as a variant of all attribute value types the OpenTelemetry C++ API supports.
The following attribute value types are supported by the OpenTelemetry specification:
The OpenTelemetry C++ API currently supports several attribute value types that are not covered by the OpenTelemetry specification:
uint64_t nostd::span<const uint64_t> nostd::span<const uint8_t> Those types are reserved for future use and currently should not be used. There are no guarantees around how those values are handled by exporters.
Definition at line 58 of file includes/opentelemetry/common/attribute_value.h.
Definition at line 60 of file includes/opentelemetry/common/attribute_value.h.
Definition at line 60 of file 9.2/includes/opentelemetry/common/attribute_value.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from a key-value iterable object.
| ArgumentType | Expected to be ArgumentType |
| attributes | The key-value iterable object |
Definition at line 140 of file includes/opentelemetry/common/key_value_iterable_view.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from a key-value iterable object.
| ArgumentType | Expected to be ArgumentType |
| attributes | The key-value iterable object |
Definition at line 140 of file 9.2/includes/opentelemetry/common/key_value_iterable_view.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from a KeyValueIterable.
| attributes | The KeyValueIterable of key-value pairs |
Definition at line 124 of file 9.2/includes/opentelemetry/common/key_value_iterable_view.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from a KeyValueIterable.
| attributes | The KeyValueIterable of key-value pairs |
Definition at line 124 of file includes/opentelemetry/common/key_value_iterable_view.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from a span.
| attributes | The span of key-value pairs |
Definition at line 112 of file includes/opentelemetry/common/key_value_iterable_view.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from a span.
| attributes | The span of key-value pairs |
Definition at line 112 of file 9.2/includes/opentelemetry/common/key_value_iterable_view.h.
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from initializer_list.
| attributes | The initializer_list of key-value pairs |
Definition at line 98 of file 9.2/includes/opentelemetry/common/key_value_iterable_view.h.
References nostd::span< T, Extent >::begin().
|
inlinestaticnoexcept |
Utility function to help to make a attribute view from initializer_list.
| attributes | The initializer_list of key-value pairs |
Definition at line 98 of file includes/opentelemetry/common/key_value_iterable_view.h.
References nostd::span< T, Extent >::begin().
|
noexcept |
Definition at line 86 of file includes/opentelemetry/common/key_value_iterable_view.h.
|
constexpr |
Definition at line 27 of file includes/opentelemetry/common/spin_lock_mutex.h.
Referenced by common::SpinLockMutex::lock().
|
constexpr |
Definition at line 28 of file includes/opentelemetry/common/spin_lock_mutex.h.
Referenced by common::SpinLockMutex::lock().