summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentelemetry-cpp/exporters/elasticsearch/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'src/jaegertracing/opentelemetry-cpp/exporters/elasticsearch/BUILD')
-rw-r--r--src/jaegertracing/opentelemetry-cpp/exporters/elasticsearch/BUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/jaegertracing/opentelemetry-cpp/exporters/elasticsearch/BUILD b/src/jaegertracing/opentelemetry-cpp/exporters/elasticsearch/BUILD
new file mode 100644
index 000000000..78ff94d46
--- /dev/null
+++ b/src/jaegertracing/opentelemetry-cpp/exporters/elasticsearch/BUILD
@@ -0,0 +1,43 @@
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+ name = "es_log_exporter",
+ srcs = [
+ "src/es_log_exporter.cc",
+ ],
+ hdrs = [
+ "include/opentelemetry/exporters/elasticsearch/es_log_exporter.h",
+ "include/opentelemetry/exporters/elasticsearch/es_log_recordable.h",
+ ],
+ linkopts = select({
+ "//bazel:windows": [
+ "-DEFAULTLIB:advapi32.lib",
+ "-DEFAULTLIB:crypt32.lib",
+ "-DEFAULTLIB:Normaliz.lib",
+ ],
+ "//conditions:default": [],
+ }),
+ strip_include_prefix = "include",
+ tags = ["es"],
+ deps = [
+ "//ext:headers",
+ "//ext/src/http/client/curl:http_client_curl",
+ "//sdk/src/logs",
+ "@curl",
+ "@github_nlohmann_json//:json",
+ ],
+)
+
+cc_test(
+ name = "es_log_exporter_test",
+ srcs = ["test/es_log_exporter_test.cc"],
+ tags = [
+ "es",
+ "test",
+ ],
+ deps = [
+ ":es_log_exporter",
+ "@com_google_googletest//:gtest_main",
+ "@curl",
+ ],
+)