forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
47 lines (44 loc) · 1.17 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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",
],
)