|
| 1 | +load("@rules_cc//cc:defs.bzl", "cc_library") |
| 2 | + |
1 | 3 | cc_library( |
2 | 4 | name = "dd_trace_cpp", |
3 | 5 | srcs = [ |
4 | | - "src/datadog/common/hash.cpp", |
5 | | - "src/datadog/telemetry/configuration.cpp", |
6 | | - "src/datadog/telemetry/log.h", |
7 | | - "src/datadog/telemetry/telemetry.cpp", |
8 | | - "src/datadog/telemetry/telemetry_impl.h", |
9 | | - "src/datadog/telemetry/telemetry_impl.cpp", |
10 | | - "src/datadog/telemetry/metric_context.h", |
11 | | - "src/datadog/baggage.cpp", |
12 | | - "src/datadog/base64.cpp", |
13 | | - "src/datadog/cerr_logger.cpp", |
14 | | - "src/datadog/clock.cpp", |
15 | | - "src/datadog/config_manager.cpp", |
16 | | - "src/datadog/collector_response.cpp", |
17 | | - "src/datadog/datadog_agent_config.cpp", |
18 | | - "src/datadog/datadog_agent.cpp", |
19 | | - "src/datadog/default_http_client_null.cpp", |
20 | | - "src/datadog/endpoint_inferral.cpp", |
21 | | - "src/datadog/environment.cpp", |
22 | | - "src/datadog/error.cpp", |
23 | | - "src/datadog/extraction_util.cpp", |
24 | | - "src/datadog/glob.cpp", |
25 | | - "src/datadog/http_client.cpp", |
26 | | - "src/datadog/id_generator.cpp", |
27 | | - "src/datadog/limiter.cpp", |
28 | | - "src/datadog/logger.cpp", |
29 | | - "src/datadog/msgpack.cpp", |
30 | | - "src/datadog/parse_util.cpp", |
31 | | - "src/datadog/propagation_style.cpp", |
32 | | - "src/datadog/random.cpp", |
33 | | - "src/datadog/rate.cpp", |
34 | | - "src/datadog/remote_config/remote_config.cpp", |
35 | | - "src/datadog/remote_config/product.cpp", |
36 | | - "src/datadog/runtime_id.cpp", |
37 | | - "src/datadog/span.cpp", |
38 | | - "src/datadog/span_data.cpp", |
39 | | - "src/datadog/span_matcher.cpp", |
40 | | - "src/datadog/span_sampler_config.cpp", |
41 | | - "src/datadog/span_sampler.cpp", |
42 | | - "src/datadog/string_util.cpp", |
43 | | - "src/datadog/tag_propagation.cpp", |
44 | | - "src/datadog/tags.cpp", |
45 | | - "src/datadog/trace_source.cpp", |
46 | | - "src/datadog/telemetry_metrics.cpp", |
47 | | - "src/datadog/threaded_event_scheduler.cpp", |
48 | | - "src/datadog/tracer_config.cpp", |
49 | | - "src/datadog/tracer.cpp", |
50 | | - "src/datadog/trace_id.cpp", |
51 | | - "src/datadog/trace_sampler_config.cpp", |
52 | | - "src/datadog/trace_sampler.cpp", |
53 | | - "src/datadog/trace_segment.cpp", |
54 | | - "src/datadog/version.cpp", |
55 | | - "src/datadog/w3c_propagation.cpp", |
56 | | - "src/datadog/common/hash.h", |
57 | | - "src/datadog/base64.h", |
58 | | - "src/datadog/config_manager.h", |
59 | | - "src/datadog/collector_response.h", |
60 | | - "src/datadog/datadog_agent.h", |
61 | | - "src/datadog/default_http_client.h", |
62 | | - "src/datadog/extracted_data.h", |
63 | | - "src/datadog/endpoint_inferral.h", |
64 | | - "src/datadog/extraction_util.h", |
65 | | - "src/datadog/glob.h", |
66 | | - "src/datadog/hex.h", |
67 | | - "src/datadog/json.hpp", |
68 | | - "src/datadog/json_serializer.h", |
69 | | - "src/datadog/limiter.h", |
70 | | - "src/datadog/msgpack.h", |
71 | | - "src/datadog/null_logger.h", |
72 | | - "src/datadog/parse_util.h", |
73 | | - "src/datadog/platform_util.h", |
74 | | - "src/datadog/random.h", |
75 | | - "src/datadog/remote_config/remote_config.h", |
76 | | - "src/datadog/sampling_util.h", |
77 | | - "src/datadog/span_data.h", |
78 | | - "src/datadog/span_sampler.h", |
79 | | - "src/datadog/string_util.h", |
80 | | - "src/datadog/tag_propagation.h", |
81 | | - "src/datadog/tags.h", |
82 | | - "src/datadog/telemetry_metrics.h", |
83 | | - "src/datadog/threaded_event_scheduler.h", |
84 | | - "src/datadog/trace_sampler.h", |
85 | | - "src/datadog/w3c_propagation.h", |
86 | | -] + select({ |
87 | | - "@platforms//os:windows": [ |
88 | | - "src/datadog/platform_util_windows.cpp", |
89 | | - ], |
90 | | - "@platforms//os:linux": [ |
91 | | - "src/datadog/platform_util_unix.cpp", |
92 | | - ], |
93 | | - "@platforms//os:macos": [ |
94 | | - "src/datadog/platform_util_darwin.cpp", |
95 | | - ], |
96 | | - "//conditions:default": [ |
97 | | - "src/datadog/platform_util_unknown.cpp", |
98 | | - ], |
99 | | -}), |
| 6 | + "src/datadog/baggage.cpp", |
| 7 | + "src/datadog/base64.cpp", |
| 8 | + "src/datadog/base64.h", |
| 9 | + "src/datadog/cerr_logger.cpp", |
| 10 | + "src/datadog/clock.cpp", |
| 11 | + "src/datadog/collector_response.cpp", |
| 12 | + "src/datadog/collector_response.h", |
| 13 | + "src/datadog/common/hash.cpp", |
| 14 | + "src/datadog/common/hash.h", |
| 15 | + "src/datadog/config_manager.cpp", |
| 16 | + "src/datadog/config_manager.h", |
| 17 | + "src/datadog/datadog_agent.cpp", |
| 18 | + "src/datadog/datadog_agent.h", |
| 19 | + "src/datadog/datadog_agent_config.cpp", |
| 20 | + "src/datadog/default_http_client.h", |
| 21 | + "src/datadog/default_http_client_null.cpp", |
| 22 | + "src/datadog/endpoint_inferral.cpp", |
| 23 | + "src/datadog/endpoint_inferral.h", |
| 24 | + "src/datadog/environment.cpp", |
| 25 | + "src/datadog/error.cpp", |
| 26 | + "src/datadog/extracted_data.h", |
| 27 | + "src/datadog/extraction_util.cpp", |
| 28 | + "src/datadog/extraction_util.h", |
| 29 | + "src/datadog/glob.cpp", |
| 30 | + "src/datadog/glob.h", |
| 31 | + "src/datadog/hex.h", |
| 32 | + "src/datadog/http_client.cpp", |
| 33 | + "src/datadog/id_generator.cpp", |
| 34 | + "src/datadog/json.hpp", |
| 35 | + "src/datadog/json_serializer.h", |
| 36 | + "src/datadog/limiter.cpp", |
| 37 | + "src/datadog/limiter.h", |
| 38 | + "src/datadog/logger.cpp", |
| 39 | + "src/datadog/msgpack.cpp", |
| 40 | + "src/datadog/msgpack.h", |
| 41 | + "src/datadog/null_logger.h", |
| 42 | + "src/datadog/parse_util.cpp", |
| 43 | + "src/datadog/parse_util.h", |
| 44 | + "src/datadog/platform_util.h", |
| 45 | + "src/datadog/propagation_style.cpp", |
| 46 | + "src/datadog/random.cpp", |
| 47 | + "src/datadog/random.h", |
| 48 | + "src/datadog/rate.cpp", |
| 49 | + "src/datadog/remote_config/product.cpp", |
| 50 | + "src/datadog/remote_config/remote_config.cpp", |
| 51 | + "src/datadog/remote_config/remote_config.h", |
| 52 | + "src/datadog/runtime_id.cpp", |
| 53 | + "src/datadog/sampling_util.h", |
| 54 | + "src/datadog/span.cpp", |
| 55 | + "src/datadog/span_data.cpp", |
| 56 | + "src/datadog/span_data.h", |
| 57 | + "src/datadog/span_matcher.cpp", |
| 58 | + "src/datadog/span_sampler.cpp", |
| 59 | + "src/datadog/span_sampler.h", |
| 60 | + "src/datadog/span_sampler_config.cpp", |
| 61 | + "src/datadog/string_util.cpp", |
| 62 | + "src/datadog/string_util.h", |
| 63 | + "src/datadog/tag_propagation.cpp", |
| 64 | + "src/datadog/tag_propagation.h", |
| 65 | + "src/datadog/tags.cpp", |
| 66 | + "src/datadog/tags.h", |
| 67 | + "src/datadog/telemetry/configuration.cpp", |
| 68 | + "src/datadog/telemetry/log.h", |
| 69 | + "src/datadog/telemetry/metric_context.h", |
| 70 | + "src/datadog/telemetry/telemetry.cpp", |
| 71 | + "src/datadog/telemetry/telemetry_impl.cpp", |
| 72 | + "src/datadog/telemetry/telemetry_impl.h", |
| 73 | + "src/datadog/telemetry_metrics.cpp", |
| 74 | + "src/datadog/telemetry_metrics.h", |
| 75 | + "src/datadog/threaded_event_scheduler.cpp", |
| 76 | + "src/datadog/threaded_event_scheduler.h", |
| 77 | + "src/datadog/trace_id.cpp", |
| 78 | + "src/datadog/trace_sampler.cpp", |
| 79 | + "src/datadog/trace_sampler.h", |
| 80 | + "src/datadog/trace_sampler_config.cpp", |
| 81 | + "src/datadog/trace_segment.cpp", |
| 82 | + "src/datadog/trace_source.cpp", |
| 83 | + "src/datadog/tracer.cpp", |
| 84 | + "src/datadog/tracer_config.cpp", |
| 85 | + "src/datadog/version.cpp", |
| 86 | + "src/datadog/w3c_propagation.cpp", |
| 87 | + "src/datadog/w3c_propagation.h", |
| 88 | + ] + select({ |
| 89 | + "@platforms//os:windows": [ |
| 90 | + "src/datadog/platform_util_windows.cpp", |
| 91 | + ], |
| 92 | + "@platforms//os:linux": [ |
| 93 | + "src/datadog/platform_util_unix.cpp", |
| 94 | + ], |
| 95 | + "@platforms//os:macos": [ |
| 96 | + "src/datadog/platform_util_darwin.cpp", |
| 97 | + ], |
| 98 | + "//conditions:default": [ |
| 99 | + "src/datadog/platform_util_unknown.cpp", |
| 100 | + ], |
| 101 | + }), |
100 | 102 | hdrs = [ |
101 | | - "include/datadog/baggage.h", |
102 | | - "include/datadog/cerr_logger.h", |
103 | | - "include/datadog/clock.h", |
104 | | - "include/datadog/collector.h", |
105 | | - "include/datadog/config.h", |
106 | | - "include/datadog/datadog_agent_config.h", |
107 | | - "include/datadog/dict_reader.h", |
108 | | - "include/datadog/dict_writer.h", |
109 | | - "include/datadog/error.h", |
110 | | - "include/datadog/environment.h", |
111 | | - "include/datadog/event_scheduler.h", |
112 | | - "include/datadog/expected.h", |
113 | | - "include/datadog/http_client.h", |
114 | | - "include/datadog/http_endpoint_calculation_mode.h", |
115 | | - "include/datadog/id_generator.h", |
116 | | - "include/datadog/injection_options.h", |
117 | | - "include/datadog/logger.h", |
118 | | - "include/datadog/null_collector.h", |
119 | | - "include/datadog/optional.h", |
120 | | - "include/datadog/propagation_style.h", |
121 | | - "include/datadog/rate.h", |
122 | | - "include/datadog/runtime_id.h", |
123 | | - "include/datadog/sampling_decision.h", |
124 | | - "include/datadog/sampling_mechanism.h", |
125 | | - "include/datadog/sampling_priority.h", |
126 | | - "include/datadog/span.h", |
127 | | - "include/datadog/span_config.h", |
128 | | - "include/datadog/span_defaults.h", |
129 | | - "include/datadog/span_matcher.h", |
130 | | - "include/datadog/span_sampler_config.h", |
131 | | - "include/datadog/string_view.h", |
132 | | - "include/datadog/tracer.h", |
133 | | - "include/datadog/tracer_config.h", |
134 | | - "include/datadog/tracer_signature.h", |
135 | | - "include/datadog/trace_id.h", |
136 | | - "include/datadog/trace_source.h", |
137 | | - "include/datadog/trace_sampler_config.h", |
138 | | - "include/datadog/trace_segment.h", |
139 | | - "include/datadog/version.h", |
140 | | - "include/datadog/telemetry/configuration.h", |
141 | | - "include/datadog/telemetry/metrics.h", |
142 | | - "include/datadog/telemetry/telemetry.h", |
143 | | - "include/datadog/telemetry/product.h", |
144 | | - "include/datadog/remote_config/capability.h", |
145 | | - "include/datadog/remote_config/listener.h", |
146 | | - "include/datadog/remote_config/product.h", |
| 103 | + "include/datadog/baggage.h", |
| 104 | + "include/datadog/cerr_logger.h", |
| 105 | + "include/datadog/clock.h", |
| 106 | + "include/datadog/collector.h", |
| 107 | + "include/datadog/config.h", |
| 108 | + "include/datadog/datadog_agent_config.h", |
| 109 | + "include/datadog/dict_reader.h", |
| 110 | + "include/datadog/dict_writer.h", |
| 111 | + "include/datadog/environment.h", |
| 112 | + "include/datadog/error.h", |
| 113 | + "include/datadog/event_scheduler.h", |
| 114 | + "include/datadog/expected.h", |
| 115 | + "include/datadog/http_client.h", |
| 116 | + "include/datadog/http_endpoint_calculation_mode.h", |
| 117 | + "include/datadog/id_generator.h", |
| 118 | + "include/datadog/injection_options.h", |
| 119 | + "include/datadog/logger.h", |
| 120 | + "include/datadog/null_collector.h", |
| 121 | + "include/datadog/optional.h", |
| 122 | + "include/datadog/propagation_style.h", |
| 123 | + "include/datadog/rate.h", |
| 124 | + "include/datadog/remote_config/capability.h", |
| 125 | + "include/datadog/remote_config/listener.h", |
| 126 | + "include/datadog/remote_config/product.h", |
| 127 | + "include/datadog/runtime_id.h", |
| 128 | + "include/datadog/sampling_decision.h", |
| 129 | + "include/datadog/sampling_mechanism.h", |
| 130 | + "include/datadog/sampling_priority.h", |
| 131 | + "include/datadog/span.h", |
| 132 | + "include/datadog/span_config.h", |
| 133 | + "include/datadog/span_defaults.h", |
| 134 | + "include/datadog/span_matcher.h", |
| 135 | + "include/datadog/span_sampler_config.h", |
| 136 | + "include/datadog/string_view.h", |
| 137 | + "include/datadog/telemetry/configuration.h", |
| 138 | + "include/datadog/telemetry/metrics.h", |
| 139 | + "include/datadog/telemetry/product.h", |
| 140 | + "include/datadog/telemetry/telemetry.h", |
| 141 | + "include/datadog/trace_id.h", |
| 142 | + "include/datadog/trace_sampler_config.h", |
| 143 | + "include/datadog/trace_segment.h", |
| 144 | + "include/datadog/trace_source.h", |
| 145 | + "include/datadog/tracer.h", |
| 146 | + "include/datadog/tracer_config.h", |
| 147 | + "include/datadog/tracer_signature.h", |
| 148 | + "include/datadog/version.h", |
147 | 149 | ], |
148 | | - strip_include_prefix = "include/", |
149 | 150 | includes = ["src/datadog"], |
| 151 | + strip_include_prefix = "include/", |
150 | 152 | visibility = ["//visibility:public"], |
151 | 153 | deps = [ |
152 | 154 | "@com_google_absl//absl/strings", |
|
0 commit comments