Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <memory>

#include "opentelemetry/exporters/otlp/otlp_grpc_client.h"
// IWYU pragma: no_include "opentelemetry/exporters/otlp/otlp_grpc_client.h"
#include "opentelemetry/exporters/otlp/otlp_grpc_client_options.h"
#include "opentelemetry/version.h"

Expand All @@ -15,6 +15,9 @@ namespace exporter
namespace otlp
{

class OtlpGrpcClient; // IWYU pragma: keep
class OtlpGrpcClientReferenceGuard; // IWYU pragma: keep

/**
* Factory class for OtlpGrpcClient.
*/
Expand Down
9 changes: 9 additions & 0 deletions exporters/otlp/test/otlp_grpc_exporter_factory_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
Implementation, this requires protobuf.
*/
#include "opentelemetry/exporters/otlp/otlp_grpc_client_factory.h"

/*
Make sure OtlpGrpcClientFactory does not require,
even indirectly, gRPC headers.
*/
#if defined(GRPC_CPP_VERSION_MAJOR) || defined(GRPC_CPP_VERSION_STRING)
# error "gRPC should not be included"
#endif

#include "opentelemetry/exporters/otlp/otlp_grpc_exporter.h"

OPENTELEMETRY_BEGIN_NAMESPACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
Implementation, this requires protobuf.
*/
#include "opentelemetry/exporters/otlp/otlp_grpc_client_factory.h"

/*
Make sure OtlpGrpcClientFactory does not require,
even indirectly, gRPC headers.
*/
#if defined(GRPC_CPP_VERSION_MAJOR) || defined(GRPC_CPP_VERSION_STRING)
# error "gRPC should not be included"
#endif

#include "opentelemetry/exporters/otlp/otlp_grpc_log_record_exporter.h"

OPENTELEMETRY_BEGIN_NAMESPACE
Expand Down
9 changes: 9 additions & 0 deletions exporters/otlp/test/otlp_grpc_metric_exporter_factory_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
Implementation, this requires protobuf.
*/
#include "opentelemetry/exporters/otlp/otlp_grpc_client_factory.h"

/*
Make sure OtlpGrpcClientFactory does not require,
even indirectly, gRPC headers.
*/
#if defined(GRPC_CPP_VERSION_MAJOR) || defined(GRPC_CPP_VERSION_STRING)
# error "gRPC should not be included"
#endif

#include "opentelemetry/exporters/otlp/otlp_grpc_metric_exporter.h"

OPENTELEMETRY_BEGIN_NAMESPACE
Expand Down
Loading