Skip to content

Commit

Permalink
Fix log sdk builder (open-telemetry#1486)
Browse files Browse the repository at this point in the history
Fixed build break.
  • Loading branch information
marcalff committed Aug 1, 2022
1 parent f6ab143 commit fa5dd8d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions exporters/otlp/test/otlp_http_log_exporter_factory_test.cc
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

#include <gtest/gtest.h>
#ifdef ENABLE_LOGS_PREVIEW

#include "opentelemetry/exporters/otlp/otlp_http_log_exporter_factory.h"
#include "opentelemetry/exporters/otlp/otlp_http_log_exporter_options.h"
# include <gtest/gtest.h>

# include "opentelemetry/exporters/otlp/otlp_http_log_exporter_factory.h"
# include "opentelemetry/exporters/otlp/otlp_http_log_exporter_options.h"

/*
Make sure OtlpHttpExporterFactory does not require,
even indirectly, nlohmann/json headers.
*/
#ifdef NLOHMANN_JSON_VERSION_MAJOR
# error "nlohmann/json should not be included"
#endif /* NLOHMANN_JSON_VERSION_MAJOR */
# ifdef NLOHMANN_JSON_VERSION_MAJOR
# error "nlohmann/json should not be included"
# endif /* NLOHMANN_JSON_VERSION_MAJOR */

/*
Make sure OtlpHttpExporterFactory does not require,
even indirectly, protobuf headers.
*/
#ifdef GOOGLE_PROTOBUF_VERSION
# error "protobuf should not be included"
#endif
# ifdef GOOGLE_PROTOBUF_VERSION
# error "protobuf should not be included"
# endif

OPENTELEMETRY_BEGIN_NAMESPACE
namespace exporter
Expand All @@ -42,3 +44,5 @@ TEST(OtlpHttpLogExporterFactoryTest, BuildTest)
} // namespace otlp
} // namespace exporter
OPENTELEMETRY_END_NAMESPACE

#endif // ENABLE_LOGS_PREVIEW

0 comments on commit fa5dd8d

Please sign in to comment.