File tree Expand file tree Collapse file tree 8 files changed +82
-32
lines changed
include/opentelemetry/exporters/otlp Expand file tree Collapse file tree 8 files changed +82
-32
lines changed Original file line number Diff line number Diff line change 8787 readonly WARNING_COUNT=`grep -c "include-what-you-use reported diagnostics:" iwyu.log`
8888 echo "include-what-you-use reported ${WARNING_COUNT} warning(s)"
8989 # Acceptable limit, to decrease over time down to 0
90- readonly WARNING_LIMIT=122
90+ readonly WARNING_LIMIT=0
9191 # FAIL the build if WARNING_COUNT > WARNING_LIMIT
9292 if [ $WARNING_COUNT -gt $WARNING_LIMIT ] ; then
9393 exit 1
Original file line number Diff line number Diff line change 33
44#pragma once
55
6- #include < grpcpp/completion_queue.h>
76#include < grpcpp/grpcpp.h>
8-
7+ # include < grpcpp/support/status.h >
98#include < atomic>
9+ #include < chrono>
1010#include < memory>
11-
12- #include " opentelemetry/sdk/common/exporter_utils.h"
11+ #include < string>
1312
1413#include " opentelemetry/exporters/otlp/otlp_grpc_client_options.h"
14+ #include " opentelemetry/version.h"
1515
1616// clang-format off
17- #include " opentelemetry/exporters/otlp/protobuf_include_prefix.h"
18- // clang-format on
19-
20- #include " google/protobuf/arena.h"
17+ #include " opentelemetry/exporters/otlp/protobuf_include_prefix.h" // IWYU pragma: keep
2118#include " opentelemetry/proto/collector/logs/v1/logs_service.grpc.pb.h"
2219#include " opentelemetry/proto/collector/metrics/v1/metrics_service.grpc.pb.h"
2320#include " opentelemetry/proto/collector/trace/v1/trace_service.grpc.pb.h"
24-
25- // clang-format off
26- #include " opentelemetry/exporters/otlp/protobuf_include_suffix.h"
21+ #include " opentelemetry/exporters/otlp/protobuf_include_suffix.h" // IWYU pragma: keep
2722// clang-format on
2823
24+ namespace google
25+ {
26+ namespace protobuf
27+ {
28+ class Arena ;
29+ }
30+ } // namespace google
31+
32+ namespace opentelemetry
33+ {
34+ namespace proto
35+ {
36+ namespace collector
37+ {
38+
39+ namespace logs
40+ {
41+ namespace v1
42+ {
43+ class ExportLogsServiceRequest ;
44+ class ExportLogsServiceResponse ;
45+ } // namespace v1
46+ } // namespace logs
47+
48+ namespace metrics
49+ {
50+ namespace v1
51+ {
52+ class ExportMetricsServiceRequest ;
53+ class ExportMetricsServiceResponse ;
54+ } // namespace v1
55+ } // namespace metrics
56+
57+ namespace trace
58+ {
59+ namespace v1
60+ {
61+ class ExportTraceServiceRequest ;
62+ class ExportTraceServiceResponse ;
63+ } // namespace v1
64+
65+ } // namespace trace
66+
67+ } // namespace collector
68+ } // namespace proto
69+ } // namespace opentelemetry
70+
2971OPENTELEMETRY_BEGIN_NAMESPACE
3072namespace exporter
3173{
Original file line number Diff line number Diff line change 33
44#pragma once
55
6- #include < chrono>
7-
8- #include " opentelemetry/exporters/otlp/otlp_environment.h"
96#include " opentelemetry/exporters/otlp/otlp_grpc_client_options.h"
107#include " opentelemetry/version.h"
118
Original file line number Diff line number Diff line change 33
44#include " opentelemetry/exporters/otlp/otlp_grpc_client.h"
55
6- #if defined(HAVE_GSL)
7- # include < gsl/gsl>
8- #else
9- # include < assert.h>
10- #endif
11-
6+ #include < grpc/compression.h>
7+ #include < grpcpp/resource_quota.h>
8+ #include < grpcpp/security/credentials.h>
9+ #include < grpcpp/support/channel_arguments.h>
10+ #include < stdint.h>
1211#include < atomic>
1312#include < chrono>
14- #include < condition_variable>
15- #include < cstdio>
1613#include < fstream>
1714#include < iterator>
15+ #include < map>
1816#include < memory>
19- #include < mutex>
2017#include < string>
21- #include < thread>
22- #include < unordered_set>
18+ #include < utility>
2319
24- #include " opentelemetry/common/timestamp.h"
2520#include " opentelemetry/ext/http/common/url_parser.h"
26- #include " opentelemetry/nostd/function_ref.h"
27- #include " opentelemetry/nostd/string_view.h"
2821#include " opentelemetry/sdk/common/global_log_handler.h"
2922
23+ // clang-format off
24+ #include " opentelemetry/exporters/otlp/protobuf_include_prefix.h" // IWYU pragma: keep
25+ #include " opentelemetry/proto/collector/logs/v1/logs_service.pb.h"
26+ #include " opentelemetry/proto/collector/metrics/v1/metrics_service.pb.h"
27+ #include " opentelemetry/proto/collector/trace/v1/trace_service.pb.h"
28+ #include " opentelemetry/exporters/otlp/protobuf_include_suffix.h" // IWYU pragma: keep
29+ // clang-format on
30+
31+ namespace google
32+ {
33+ namespace protobuf
34+ {
35+ class Arena ;
36+ }
37+ } // namespace google
38+
3039OPENTELEMETRY_BEGIN_NAMESPACE
3140namespace exporter
3241{
Original file line number Diff line number Diff line change 11// Copyright The OpenTelemetry Authors
22// SPDX-License-Identifier: Apache-2.0
33
4+ #include < chrono>
5+ #include < string>
6+
7+ #include " opentelemetry/exporters/otlp/otlp_environment.h"
48#include " opentelemetry/exporters/otlp/otlp_grpc_log_record_exporter_options.h"
59#include " opentelemetry/version.h"
610
Original file line number Diff line number Diff line change 66
77#include " opentelemetry/exporters/otlp/otlp_environment.h"
88#include " opentelemetry/exporters/otlp/otlp_grpc_metric_exporter_options.h"
9+ #include " opentelemetry/exporters/otlp/otlp_preferred_temporality.h"
910#include " opentelemetry/version.h"
1011
1112OPENTELEMETRY_BEGIN_NAMESPACE
Original file line number Diff line number Diff line change 44#include < grpc/support/port_platform.h>
55#include < grpcpp/grpcpp.h>
66#include < grpcpp/support/status.h>
7- #include < gtest/gtest.h>
87#include < stdint.h>
98#include < stdlib.h>
109#include < chrono>
4039#include " opentelemetry/sdk/trace/tracer_provider.h"
4140#include " opentelemetry/sdk/trace/tracer_provider_factory.h"
4241#include " opentelemetry/trace/noop.h"
43- #include " opentelemetry/trace/provider.h"
4442#include " opentelemetry/trace/scope.h"
4543#include " opentelemetry/trace/span.h"
4644#include " opentelemetry/trace/span_id.h"
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33
44#include < gtest/gtest.h>
5- #include < algorithm>
65#include < initializer_list>
76#include < string>
87#include < utility>
You can’t perform that action at this time.
0 commit comments