From 8cbe7271a0b5bab57a24b29e1e5302f17fc8e2e3 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Sat, 27 Jan 2024 01:17:20 -0800 Subject: [PATCH] [BUILD] Remove unnecessary usage/includes of nostd/type_traits (#2509) --- .../exporters/elasticsearch/es_log_record_exporter.h | 1 - .../opentelemetry/exporters/ostream/log_record_exporter.h | 2 +- .../include/opentelemetry/exporters/ostream/span_exporter.h | 2 +- .../include/opentelemetry/opentracingshim/propagation.h | 3 ++- .../sdk/instrumentationscope/instrumentation_scope.h | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exporters/elasticsearch/include/opentelemetry/exporters/elasticsearch/es_log_record_exporter.h b/exporters/elasticsearch/include/opentelemetry/exporters/elasticsearch/es_log_record_exporter.h index b72ff4f917..31d63af983 100644 --- a/exporters/elasticsearch/include/opentelemetry/exporters/elasticsearch/es_log_record_exporter.h +++ b/exporters/elasticsearch/include/opentelemetry/exporters/elasticsearch/es_log_record_exporter.h @@ -7,7 +7,6 @@ #include "opentelemetry/common/spin_lock_mutex.h" #include "opentelemetry/ext/http/client/http_client_factory.h" #include "opentelemetry/nostd/shared_ptr.h" -#include "opentelemetry/nostd/type_traits.h" #include "opentelemetry/sdk/logs/exporter.h" #include "opentelemetry/sdk/logs/recordable.h" diff --git a/exporters/ostream/include/opentelemetry/exporters/ostream/log_record_exporter.h b/exporters/ostream/include/opentelemetry/exporters/ostream/log_record_exporter.h index a2897a5f26..ba5b28b9de 100644 --- a/exporters/ostream/include/opentelemetry/exporters/ostream/log_record_exporter.h +++ b/exporters/ostream/include/opentelemetry/exporters/ostream/log_record_exporter.h @@ -5,7 +5,7 @@ #include "opentelemetry/common/attribute_value.h" #include "opentelemetry/common/spin_lock_mutex.h" -#include "opentelemetry/nostd/type_traits.h" +#include "opentelemetry/nostd/span.h" #include "opentelemetry/sdk/common/attribute_utils.h" #include "opentelemetry/sdk/logs/exporter.h" diff --git a/exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h b/exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h index 03c95c23f9..139653686d 100644 --- a/exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h +++ b/exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h @@ -4,7 +4,7 @@ #pragma once #include "opentelemetry/common/spin_lock_mutex.h" -#include "opentelemetry/nostd/type_traits.h" +#include "opentelemetry/nostd/span.h" #include "opentelemetry/sdk/trace/exporter.h" #include "opentelemetry/sdk/trace/span_data.h" #include "opentelemetry/version.h" diff --git a/opentracing-shim/include/opentelemetry/opentracingshim/propagation.h b/opentracing-shim/include/opentelemetry/opentracingshim/propagation.h index c226d9da83..b2a9be5a80 100644 --- a/opentracing-shim/include/opentelemetry/opentracingshim/propagation.h +++ b/opentracing-shim/include/opentelemetry/opentracingshim/propagation.h @@ -8,7 +8,8 @@ #include "opentelemetry/baggage/baggage.h" #include "opentelemetry/common/attribute_value.h" #include "opentelemetry/context/propagation/text_map_propagator.h" -#include "opentelemetry/nostd/type_traits.h" +#include "opentelemetry/nostd/function_ref.h" +#include "opentelemetry/nostd/string_view.h" #include "opentracing/propagation.h" #include "opentracing/value.h" diff --git a/sdk/include/opentelemetry/sdk/instrumentationscope/instrumentation_scope.h b/sdk/include/opentelemetry/sdk/instrumentationscope/instrumentation_scope.h index 35b0dc6863..4f7c9069bf 100644 --- a/sdk/include/opentelemetry/sdk/instrumentationscope/instrumentation_scope.h +++ b/sdk/include/opentelemetry/sdk/instrumentationscope/instrumentation_scope.h @@ -4,10 +4,10 @@ #pragma once #include +#include #include "opentelemetry/common/key_value_iterable_view.h" #include "opentelemetry/nostd/string_view.h" -#include "opentelemetry/nostd/type_traits.h" #include "opentelemetry/nostd/unique_ptr.h" #include "opentelemetry/nostd/variant.h" #include "opentelemetry/sdk/common/attribute_utils.h" @@ -73,7 +73,7 @@ class InstrumentationScope */ template < class ArgumentType, - nostd::enable_if_t::value> + std::enable_if_t::value> * = nullptr> static nostd::unique_ptr Create(nostd::string_view name, nostd::string_view version,