mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-08-03 07:22:51 +02:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Copyright The OpenTelemetry Authors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
cc_library(
|
|
name = "es_log_record_exporter",
|
|
srcs = [
|
|
"src/es_log_record_exporter.cc",
|
|
"src/es_log_recordable.cc",
|
|
],
|
|
hdrs = [
|
|
"include/opentelemetry/exporters/elasticsearch/es_log_record_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_record_exporter_test",
|
|
srcs = ["test/es_log_record_exporter_test.cc"],
|
|
tags = [
|
|
"es",
|
|
"test",
|
|
],
|
|
deps = [
|
|
":es_log_record_exporter",
|
|
"@com_google_googletest//:gtest_main",
|
|
"@curl",
|
|
],
|
|
)
|