Skip to content

Commit

Permalink
remove recordable header from installable (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb authored Jul 26, 2021
1 parent 041df24 commit a1db1ca
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion exporters/elasticsearch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ install(
DIRECTORY include/opentelemetry/exporters/elasticsearch
DESTINATION include/opentelemetry/exporters/
FILES_MATCHING
PATTERN "*.h")
PATTERN "*.h"
PATTERN "es_log_recordable.h" EXCLUDE)

if(BUILD_TESTING)
add_executable(es_log_exporter_test test/es_log_exporter_test.cc)
Expand Down
3 changes: 2 additions & 1 deletion exporters/jaeger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ install(
DIRECTORY include/opentelemetry/exporters/jaeger
DESTINATION include/opentelemetry/exporters/
FILES_MATCHING
PATTERN "*.h")
PATTERN "*.h"
PATTERN "recordable.h" EXCLUDE)

if(BUILD_TESTING)
add_executable(jaeger_recordable_test test/jaeger_recordable_test.cc)
Expand Down
3 changes: 2 additions & 1 deletion exporters/otlp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ install(
DIRECTORY include/opentelemetry/exporters/otlp
DESTINATION include/opentelemetry/exporters/
FILES_MATCHING
PATTERN "*.h")
PATTERN "*.h"
PATTERN "otlp_recordable.h" EXCLUDE)

if(BUILD_TESTING)
add_executable(otlp_recordable_test test/otlp_recordable_test.cc)
Expand Down
3 changes: 2 additions & 1 deletion exporters/zipkin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ install(
DIRECTORY include/opentelemetry/exporters/zipkin
DESTINATION include/opentelemetry/exporters/
FILES_MATCHING
PATTERN "*.h")
PATTERN "*.h"
PATTERN "recordable.h" EXCLUDE)

if(BUILD_TESTING)
add_executable(zipkin_recordable_test test/zipkin_recordable_test.cc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ namespace zipkin
{
using ZipkinSpan = nlohmann::json;

enum class TransportFormat
{
kJson,
kProtobuf
};

class Recordable final : public sdk::trace::Recordable
{
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once

#include "opentelemetry/exporters/zipkin/recordable.h"
#include "opentelemetry/ext/http/client/http_client_factory.h"
#include "opentelemetry/ext/http/common/url_parser.h"
#include "opentelemetry/sdk/trace/exporter.h"
Expand Down Expand Up @@ -41,6 +40,12 @@ inline const std::string GetDefaultZipkinEndpoint()
return std::string{endpoint_from_env ? endpoint_from_env : kZipkinEndpointDefault};
}

enum class TransportFormat
{
kJson,
kProtobuf
};

/**
* Struct to hold Zipkin exporter options.
*/
Expand Down

0 comments on commit a1db1ca

Please sign in to comment.