Skip to content

Commit 2e3ec77

Browse files
committed
Fixes for iwyu
1 parent 62e2a6a commit 2e3ec77

8 files changed

+15
-3
lines changed

exporters/otlp/src/otlp_environment.cc

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include <chrono>
5+
#include <cstdint>
56
#include <map>
67
#include <string>
78
#include <unordered_set>

exporters/otlp/src/otlp_http_exporter.cc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "opentelemetry/exporters/otlp/otlp_http_exporter_options.h"
1515
#include "opentelemetry/exporters/otlp/otlp_recordable.h"
1616
#include "opentelemetry/exporters/otlp/otlp_recordable_utils.h"
17+
#include "opentelemetry/ext/http/client/http_client.h"
1718
#include "opentelemetry/nostd/span.h"
1819
#include "opentelemetry/nostd/string_view.h"
1920
#include "opentelemetry/sdk/common/exporter_utils.h"

exporters/otlp/src/otlp_http_log_record_exporter.cc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter_options.h"
1515
#include "opentelemetry/exporters/otlp/otlp_log_recordable.h"
1616
#include "opentelemetry/exporters/otlp/otlp_recordable_utils.h"
17+
#include "opentelemetry/ext/http/client/http_client.h"
1718
#include "opentelemetry/nostd/span.h"
1819
#include "opentelemetry/nostd/string_view.h"
1920
#include "opentelemetry/sdk/common/exporter_utils.h"

exporters/otlp/src/otlp_http_metric_exporter.cc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "opentelemetry/exporters/otlp/otlp_http_metric_exporter.h"
1515
#include "opentelemetry/exporters/otlp/otlp_http_metric_exporter_options.h"
1616
#include "opentelemetry/exporters/otlp/otlp_metric_utils.h"
17+
#include "opentelemetry/ext/http/client/http_client.h"
1718
#include "opentelemetry/nostd/string_view.h"
1819
#include "opentelemetry/sdk/common/exporter_utils.h"
1920
#include "opentelemetry/sdk/common/global_log_handler.h"

ext/src/http/client/curl/http_client_curl.cc

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#include <chrono>
1010
#include <cstdint>
1111
#include <cstring>
12+
#include <deque>
1213
#include <functional>
14+
#include <iterator>
1315
#include <list>
1416
#include <mutex>
1517
#include <string>

ext/src/http/client/curl/http_operation_curl.cc

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <map>
1616
#include <memory>
1717
#include <random>
18+
#include <ratio>
1819
#include <sstream>
1920
#include <string>
2021
#include <thread>

ext/test/http/curl_http_test.cc

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#include <curl/curl.h>
45
#include <curl/curlver.h>
5-
#include <gmock/gmock.h>
6-
#include <gtest/gtest.h>
6+
#include "gmock/gmock.h"
7+
#include "gtest/gtest.h"
8+
79
#include <string.h>
10+
#include <algorithm>
811
#include <atomic>
912
#include <chrono>
1013
#include <condition_variable>

sdk/test/common/env_var_test.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include <gtest/gtest.h>
5-
#include <stdlib.h>
5+
66
#include <chrono>
7+
#include <cstdint>
8+
#include <cstdlib>
79
#include <string>
810

911
#include "opentelemetry/sdk/common/env_variables.h"

0 commit comments

Comments
 (0)