Skip to content

Commit 4eb80a3

Browse files
committed
cleanup
1 parent f7078c6 commit 4eb80a3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_client.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <string>
1212

1313
#include "opentelemetry/exporters/otlp/otlp_grpc_client_options.h"
14-
#include "opentelemetry/sdk/common/exporter_utils.h"
1514
#include "opentelemetry/version.h"
1615

1716
// clang-format off
@@ -22,6 +21,10 @@
2221
#include "opentelemetry/exporters/otlp/protobuf_include_suffix.h" // IWYU pragma: keep
2322
// clang-format on
2423

24+
#ifdef ENABLE_ASYNC_EXPORT
25+
# include "opentelemetry/sdk/common/exporter_utils.h"
26+
#endif /* ENABLE_ASYNC_EXPORT */
27+
2528
namespace google
2629
{
2730
namespace protobuf
@@ -75,9 +78,8 @@ namespace exporter
7578
namespace otlp
7679
{
7780

78-
class OtlpGrpcClient;
79-
struct OtlpGrpcClientOptions;
80-
struct OtlpGrpcClientAsyncData;
81+
struct OtlpGrpcClientOptions; // IWYU pragma: keep
82+
struct OtlpGrpcClientAsyncData; // IWYU pragma: keep
8183

8284
class OtlpGrpcClientReferenceGuard
8385
{

exporters/otlp/src/otlp_grpc_exporter_options.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
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_exporter_options.h"
59
#include "opentelemetry/version.h"
610

7-
#include <string>
8-
911
OPENTELEMETRY_BEGIN_NAMESPACE
1012
namespace exporter
1113
{

0 commit comments

Comments
 (0)