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", ], )