Skip to content

Commit 8231e1e

Browse files
authored
Merge branch 'main' into SetExemplarInSDK
2 parents d9bb11f + 830651a commit 8231e1e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

exporters/etw/include/opentelemetry/exporters/etw/etw_properties.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "opentelemetry/common/key_value_iterable_view.h"
88

99
#include <opentelemetry/nostd/span.h>
10+
#include <opentelemetry/nostd/type_traits.h>
1011
#include <map>
1112
#include <string>
1213
#include <vector>
@@ -106,7 +107,7 @@ class PropertyValue : public PropertyVariant
106107
* @param vec Vector of integral type primitives to convert to span.
107108
* @return Span of integral type primitives.
108109
*/
109-
template <typename T, std::enable_if_t<std::is_integral<T>::value, bool> = true>
110+
template <typename T, nostd::enable_if_t<std::is_integral<T>::value, bool> = true>
110111
static nostd::span<const T> to_span(const std::vector<T> &vec)
111112
{
112113
nostd::span<const T> result(vec.data(), vec.size());
@@ -119,7 +120,7 @@ class PropertyValue : public PropertyVariant
119120
* @param vec Vector of float type primitives to convert to span.
120121
* @return Span of float type primitives.
121122
*/
122-
template <typename T, std::enable_if_t<std::is_floating_point<T>::value, bool> = true>
123+
template <typename T, nostd::enable_if_t<std::is_floating_point<T>::value, bool> = true>
123124
static nostd::span<const T> to_span(const std::vector<T> &vec)
124125
{
125126
nostd::span<const T> result(vec.data(), vec.size());
@@ -139,7 +140,7 @@ class PropertyValue : public PropertyVariant
139140
* @param v
140141
* @return
141142
*/
142-
template <typename TInteger, std::enable_if_t<std::is_integral<TInteger>::value, bool> = true>
143+
template <typename TInteger, nostd::enable_if_t<std::is_integral<TInteger>::value, bool> = true>
143144
PropertyValue(TInteger number) : PropertyVariant(number)
144145
{}
145146

@@ -148,7 +149,7 @@ class PropertyValue : public PropertyVariant
148149
* @param v
149150
* @return
150151
*/
151-
template <typename TFloat, std::enable_if_t<std::is_floating_point<TFloat>::value, bool> = true>
152+
template <typename TFloat, nostd::enable_if_t<std::is_floating_point<TFloat>::value, bool> = true>
152153
PropertyValue(TFloat number) : PropertyVariant(double(number))
153154
{}
154155

sdk/include/opentelemetry/sdk/instrumentationscope/instrumentation_scope.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "opentelemetry/common/key_value_iterable_view.h"
1010
#include "opentelemetry/nostd/string_view.h"
11+
#include "opentelemetry/nostd/type_traits.h"
1112
#include "opentelemetry/nostd/unique_ptr.h"
1213
#include "opentelemetry/nostd/variant.h"
1314
#include "opentelemetry/sdk/common/attribute_utils.h"
@@ -73,7 +74,7 @@ class InstrumentationScope
7374
*/
7475
template <
7576
class ArgumentType,
76-
std::enable_if_t<opentelemetry::common::detail::is_key_value_iterable<ArgumentType>::value>
77+
nostd::enable_if_t<opentelemetry::common::detail::is_key_value_iterable<ArgumentType>::value>
7778
* = nullptr>
7879
static nostd::unique_ptr<InstrumentationScope> Create(nostd::string_view name,
7980
nostd::string_view version,

0 commit comments

Comments
 (0)