|
1 | 1 | // Copyright The OpenTelemetry Authors |
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
| 4 | +#include <gmock/gmock.h> |
| 5 | +#include <google/protobuf/message_lite.h> |
| 6 | +#include <gtest/gtest.h> |
4 | 7 | #include <chrono> |
| 8 | +#include <cstdint> |
5 | 9 | #include <cstdlib> |
6 | | -#include <thread> |
7 | | - |
| 10 | +#include <functional> |
| 11 | +#include <initializer_list> |
| 12 | +#include <map> |
| 13 | +#include <memory> |
| 14 | +#include <nlohmann/json.hpp> |
| 15 | +#include <string> |
| 16 | +#include <type_traits> |
| 17 | +#include <utility> |
| 18 | +#include <vector> |
| 19 | + |
| 20 | +#include "opentelemetry/common/timestamp.h" |
| 21 | +#include "opentelemetry/exporters/otlp/otlp_environment.h" |
| 22 | +#include "opentelemetry/exporters/otlp/otlp_http.h" |
| 23 | +#include "opentelemetry/exporters/otlp/otlp_http_client.h" |
8 | 24 | #include "opentelemetry/exporters/otlp/otlp_http_metric_exporter.h" |
9 | | - |
10 | | -#include "opentelemetry/exporters/otlp/protobuf_include_prefix.h" |
11 | | - |
12 | | -#include "opentelemetry/proto/collector/metrics/v1/metrics_service.pb.h" |
13 | | - |
| 25 | +#include "opentelemetry/exporters/otlp/otlp_http_metric_exporter_options.h" |
14 | 26 | #include "opentelemetry/exporters/otlp/otlp_metric_utils.h" |
15 | | -#include "opentelemetry/exporters/otlp/protobuf_include_suffix.h" |
16 | | - |
17 | | -#include "opentelemetry/common/key_value_iterable_view.h" |
18 | | -#include "opentelemetry/ext/http/client/http_client_factory.h" |
| 27 | +#include "opentelemetry/exporters/otlp/otlp_preferred_temporality.h" |
| 28 | +#include "opentelemetry/ext/http/client/http_client.h" |
19 | 29 | #include "opentelemetry/ext/http/server/http_server.h" |
| 30 | +#include "opentelemetry/nostd/string_view.h" |
| 31 | +#include "opentelemetry/proto/common/v1/common.pb.h" |
| 32 | +#include "opentelemetry/proto/metrics/v1/metrics.pb.h" |
| 33 | +#include "opentelemetry/sdk/common/exporter_utils.h" |
20 | 34 | #include "opentelemetry/sdk/instrumentationscope/instrumentation_scope.h" |
21 | | -#include "opentelemetry/sdk/metrics/aggregation/default_aggregation.h" |
22 | | -#include "opentelemetry/sdk/metrics/aggregation/histogram_aggregation.h" |
23 | 35 | #include "opentelemetry/sdk/metrics/data/metric_data.h" |
| 36 | +#include "opentelemetry/sdk/metrics/data/point_data.h" |
24 | 37 | #include "opentelemetry/sdk/metrics/export/metric_producer.h" |
25 | 38 | #include "opentelemetry/sdk/metrics/instruments.h" |
| 39 | +#include "opentelemetry/sdk/metrics/push_metric_exporter.h" |
26 | 40 | #include "opentelemetry/sdk/resource/resource.h" |
27 | 41 | #include "opentelemetry/test_common/ext/http/client/http_client_test_factory.h" |
28 | 42 | #include "opentelemetry/test_common/ext/http/client/nosend/http_client_nosend.h" |
| 43 | +#include "opentelemetry/version.h" |
29 | 44 |
|
30 | | -#include <google/protobuf/message_lite.h> |
31 | | -#include <gtest/gtest.h> |
32 | | -#include "gmock/gmock.h" |
33 | | - |
34 | | -#include "nlohmann/json.hpp" |
| 45 | +// clang-format off |
| 46 | +#include "opentelemetry/exporters/otlp/protobuf_include_prefix.h" // IWYU pragma: keep |
| 47 | +#include "opentelemetry/proto/collector/metrics/v1/metrics_service.pb.h" |
| 48 | +#include "opentelemetry/exporters/otlp/protobuf_include_suffix.h" // IWYU pragma: keep |
| 49 | +// clang-format on |
35 | 50 |
|
36 | 51 | #if defined(_MSC_VER) |
37 | 52 | # include "opentelemetry/sdk/common/env_variables.h" |
|
0 commit comments