Debian Codegraph @

examples/http/BUILD

raw
1 # Copyright The OpenTelemetry Authors
2 # SPDX-License-Identifier: Apache-2.0
3
4 cc_binary(
5 name = "example_http_client",
6 srcs = [
7 "client.cc",
8 "tracer_common.h",
9 ],
10 linkopts = select({
11 "//bazel:windows": [
12 "-DEFAULTLIB:advapi32.lib",
13 "-DEFAULTLIB:crypt32.lib",
14 "-DEFAULTLIB:Normaliz.lib",
15 ],
16 "//conditions:default": [],
17 }),
18 tags = ["ostream"],
19 deps = [
20 "//api",
21 "//exporters/ostream:ostream_span_exporter",
22 "//ext:headers",
23 "//ext/src/http/client/curl:http_client_curl",
24 "//sdk/src/trace",
25 ],
26 )
27
28 cc_binary(
29 name = "example_http_server",
30 srcs = [
31 "server.cc",
32 "server.h",
33 "tracer_common.h",
34 ],
35 tags = ["ostream"],
36 deps = [
37 "//api",
38 "//exporters/ostream:ostream_span_exporter",
39 "//ext:headers",
40 "//sdk/src/trace",
41 ],
42 )