| 1 |
# Copyright The OpenTelemetry Authors |
| 2 |
# SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package(default_visibility = ["//visibility:public"]) |
| 5 |
|
| 6 |
cc_library( |
| 7 |
name = "opentracing_shim", |
| 8 |
srcs = [ |
| 9 |
"src/shim_utils.cc", |
| 10 |
"src/span_context_shim.cc", |
| 11 |
"src/span_shim.cc", |
| 12 |
"src/tracer_shim.cc", |
| 13 |
], |
| 14 |
hdrs = [ |
| 15 |
"include/opentelemetry/opentracingshim/propagation.h", |
| 16 |
"include/opentelemetry/opentracingshim/shim_utils.h", |
| 17 |
"include/opentelemetry/opentracingshim/span_context_shim.h", |
| 18 |
"include/opentelemetry/opentracingshim/span_shim.h", |
| 19 |
"include/opentelemetry/opentracingshim/tracer_shim.h", |
| 20 |
], |
| 21 |
strip_include_prefix = "include", |
| 22 |
tags = ["opentracing"], |
| 23 |
deps = [ |
| 24 |
"//api", |
| 25 |
"@com_github_opentracing//:opentracing", |
| 26 |
], |
| 27 |
) |
| 28 |
|
| 29 |
cc_test( |
| 30 |
name = "propagation_test", |
| 31 |
srcs = [ |
| 32 |
"test/propagation_test.cc", |
| 33 |
"test/shim_mocks.h", |
| 34 |
], |
| 35 |
tags = [ |
| 36 |
"opentracing_shim", |
| 37 |
"test", |
| 38 |
], |
| 39 |
deps = [ |
| 40 |
":opentracing_shim", |
| 41 |
"@com_google_googletest//:gtest_main", |
| 42 |
], |
| 43 |
) |
| 44 |
|
| 45 |
cc_test( |
| 46 |
name = "shim_utils_test", |
| 47 |
srcs = [ |
| 48 |
"test/shim_mocks.h", |
| 49 |
"test/shim_utils_test.cc", |
| 50 |
], |
| 51 |
tags = [ |
| 52 |
"opentracing_shim", |
| 53 |
"test", |
| 54 |
], |
| 55 |
deps = [ |
| 56 |
":opentracing_shim", |
| 57 |
"@com_google_googletest//:gtest_main", |
| 58 |
], |
| 59 |
) |
| 60 |
|
| 61 |
cc_test( |
| 62 |
name = "span_shim_test", |
| 63 |
srcs = [ |
| 64 |
"test/shim_mocks.h", |
| 65 |
"test/span_shim_test.cc", |
| 66 |
], |
| 67 |
tags = [ |
| 68 |
"opentracing_shim", |
| 69 |
"test", |
| 70 |
], |
| 71 |
deps = [ |
| 72 |
":opentracing_shim", |
| 73 |
"@com_google_googletest//:gtest_main", |
| 74 |
], |
| 75 |
) |
| 76 |
|
| 77 |
cc_test( |
| 78 |
name = "span_context_shim_test", |
| 79 |
srcs = [ |
| 80 |
"test/span_context_shim_test.cc", |
| 81 |
], |
| 82 |
tags = [ |
| 83 |
"opentracing_shim", |
| 84 |
"test", |
| 85 |
], |
| 86 |
deps = [ |
| 87 |
":opentracing_shim", |
| 88 |
"@com_google_googletest//:gtest_main", |
| 89 |
], |
| 90 |
) |
| 91 |
|
| 92 |
cc_test( |
| 93 |
name = "tracer_shim_test", |
| 94 |
srcs = [ |
| 95 |
"test/shim_mocks.h", |
| 96 |
"test/tracer_shim_test.cc", |
| 97 |
], |
| 98 |
tags = [ |
| 99 |
"opentracing_shim", |
| 100 |
"test", |
| 101 |
], |
| 102 |
deps = [ |
| 103 |
":opentracing_shim", |
| 104 |
"@com_google_googletest//:gtest_main", |
| 105 |
], |
| 106 |
) |