libdatadog 6.0.0.2.0 → 7.0.0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/libdatadog/version.rb +2 -2
  3. data/lib/libdatadog.rb +8 -0
  4. data/vendor/{libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-7.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/LICENSE-3rdparty.yml +15459 -6284
  5. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
  6. data/vendor/libdatadog-7.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/blazesym.h +895 -0
  7. data/vendor/{libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-7.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/common.h +135 -20
  8. data/vendor/{libdatadog-6.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-7.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/profiling.h +54 -38
  9. data/vendor/libdatadog-7.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/telemetry.h +290 -0
  10. data/vendor/libdatadog-7.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  11. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +2 -4
  12. data/vendor/{libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-7.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/LICENSE-3rdparty.yml +15459 -6284
  13. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  14. data/vendor/libdatadog-7.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/blazesym.h +895 -0
  15. data/vendor/{libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-7.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/common.h +135 -20
  16. data/vendor/{libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-7.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/profiling.h +54 -38
  17. data/vendor/libdatadog-7.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/telemetry.h +290 -0
  18. data/vendor/libdatadog-7.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  19. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +2 -4
  20. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE-3rdparty.yml +15459 -6284
  21. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
  22. data/vendor/libdatadog-7.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/blazesym.h +895 -0
  23. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h +135 -20
  24. data/vendor/{libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-7.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/include/datadog/profiling.h +54 -38
  25. data/vendor/libdatadog-7.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/telemetry.h +290 -0
  26. data/vendor/libdatadog-7.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  27. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +2 -4
  28. data/vendor/{libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-7.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/LICENSE-3rdparty.yml +15459 -6284
  29. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  30. data/vendor/libdatadog-7.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/blazesym.h +895 -0
  31. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/common.h +135 -20
  32. data/vendor/{libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-7.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/profiling.h +54 -38
  33. data/vendor/libdatadog-7.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/telemetry.h +290 -0
  34. data/vendor/libdatadog-7.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  35. data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +2 -4
  36. metadata +42 -34
  37. data/vendor/libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  38. data/vendor/libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  39. data/vendor/libdatadog-6.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  40. data/vendor/libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  41. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/LICENSE +0 -0
  42. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -0
  43. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/LICENSE +0 -0
  44. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -0
  45. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
  46. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
  47. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
  48. /data/vendor/{libdatadog-6.0.0 → libdatadog-7.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
@@ -0,0 +1,290 @@
1
+ // Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+
5
+ #ifndef DDOG_TELEMETRY_H
6
+ #define DDOG_TELEMETRY_H
7
+
8
+ #include <stdbool.h>
9
+ #include <stddef.h>
10
+ #include <stdint.h>
11
+ #include <stdio.h>
12
+ #include "common.h"
13
+
14
+ void ddog_MaybeError_drop(ddog_MaybeError);
15
+
16
+ /**
17
+ * # Safety
18
+ * * builder should be a non null pointer to a null pointer to a builder
19
+ */
20
+ ddog_MaybeError ddog_builder_instantiate(struct ddog_TelemetryWorkerBuilder **out_builder,
21
+ ddog_CharSlice service_name,
22
+ ddog_CharSlice language_name,
23
+ ddog_CharSlice language_version,
24
+ ddog_CharSlice tracer_version);
25
+
26
+ /**
27
+ * # Safety
28
+ * * builder should be a non null pointer to a null pointer to a builder
29
+ */
30
+ ddog_MaybeError ddog_builder_instantiate_with_hostname(struct ddog_TelemetryWorkerBuilder **out_builder,
31
+ ddog_CharSlice hostname,
32
+ ddog_CharSlice service_name,
33
+ ddog_CharSlice language_name,
34
+ ddog_CharSlice language_version,
35
+ ddog_CharSlice tracer_version);
36
+
37
+ ddog_MaybeError ddog_builder_with_native_deps(struct ddog_TelemetryWorkerBuilder *builder,
38
+ bool include_native_deps);
39
+
40
+ ddog_MaybeError ddog_builder_with_rust_shared_lib_deps(struct ddog_TelemetryWorkerBuilder *builder,
41
+ bool include_rust_shared_lib_deps);
42
+
43
+ ddog_MaybeError ddog_builder_with_config(struct ddog_TelemetryWorkerBuilder *builder,
44
+ ddog_CharSlice name,
45
+ ddog_CharSlice value,
46
+ enum ddog_ConfigurationOrigin origin);
47
+
48
+ /**
49
+ * Builds the telemetry worker and return a handle to it
50
+ *
51
+ * # Safety
52
+ * * handle should be a non null pointer to a null pointer
53
+ */
54
+ ddog_MaybeError ddog_builder_run(struct ddog_TelemetryWorkerBuilder *builder,
55
+ struct ddog_TelemetryWorkerHandle **out_handle);
56
+
57
+ /**
58
+ * Builds the telemetry worker and return a handle to it. The worker will only process and send
59
+ * telemetry metrics and telemetry logs. Any lifecyle/dependency/configuration event will be
60
+ * ignored
61
+ *
62
+ * # Safety
63
+ * * handle should be a non null pointer to a null pointer
64
+ */
65
+ ddog_MaybeError ddog_builder_run_metric_logs(struct ddog_TelemetryWorkerBuilder *builder,
66
+ struct ddog_TelemetryWorkerHandle **out_handle);
67
+
68
+ ddog_MaybeError ddog_builder_with_str_application_service_version(struct ddog_TelemetryWorkerBuilder *builder,
69
+ ddog_CharSlice param);
70
+
71
+ ddog_MaybeError ddog_builder_with_str_application_env(struct ddog_TelemetryWorkerBuilder *builder,
72
+ ddog_CharSlice param);
73
+
74
+ ddog_MaybeError ddog_builder_with_str_application_runtime_name(struct ddog_TelemetryWorkerBuilder *builder,
75
+ ddog_CharSlice param);
76
+
77
+ ddog_MaybeError ddog_builder_with_str_application_runtime_version(struct ddog_TelemetryWorkerBuilder *builder,
78
+ ddog_CharSlice param);
79
+
80
+ ddog_MaybeError ddog_builder_with_str_application_runtime_patches(struct ddog_TelemetryWorkerBuilder *builder,
81
+ ddog_CharSlice param);
82
+
83
+ ddog_MaybeError ddog_builder_with_str_host_container_id(struct ddog_TelemetryWorkerBuilder *builder,
84
+ ddog_CharSlice param);
85
+
86
+ ddog_MaybeError ddog_builder_with_str_host_os(struct ddog_TelemetryWorkerBuilder *builder,
87
+ ddog_CharSlice param);
88
+
89
+ ddog_MaybeError ddog_builder_with_str_host_kernel_name(struct ddog_TelemetryWorkerBuilder *builder,
90
+ ddog_CharSlice param);
91
+
92
+ ddog_MaybeError ddog_builder_with_str_host_kernel_release(struct ddog_TelemetryWorkerBuilder *builder,
93
+ ddog_CharSlice param);
94
+
95
+ ddog_MaybeError ddog_builder_with_str_host_kernel_version(struct ddog_TelemetryWorkerBuilder *builder,
96
+ ddog_CharSlice param);
97
+
98
+ ddog_MaybeError ddog_builder_with_str_runtime_id(struct ddog_TelemetryWorkerBuilder *builder,
99
+ ddog_CharSlice param);
100
+
101
+ /**
102
+ * Sets a property from it's string value.
103
+ *
104
+ * Available properties:
105
+ *
106
+ * * application.service_version
107
+ *
108
+ * * application.env
109
+ *
110
+ * * application.runtime_name
111
+ *
112
+ * * application.runtime_version
113
+ *
114
+ * * application.runtime_patches
115
+ *
116
+ * * host.container_id
117
+ *
118
+ * * host.os
119
+ *
120
+ * * host.kernel_name
121
+ *
122
+ * * host.kernel_release
123
+ *
124
+ * * host.kernel_version
125
+ *
126
+ * * runtime_id
127
+ *
128
+ *
129
+ */
130
+ ddog_MaybeError ddog_builder_with_property_str(struct ddog_TelemetryWorkerBuilder *builder,
131
+ enum ddog_TelemetryWorkerBuilderStrProperty property,
132
+ ddog_CharSlice param);
133
+
134
+ /**
135
+ * Sets a property from it's string value.
136
+ *
137
+ * Available properties:
138
+ *
139
+ * * application.service_version
140
+ *
141
+ * * application.env
142
+ *
143
+ * * application.runtime_name
144
+ *
145
+ * * application.runtime_version
146
+ *
147
+ * * application.runtime_patches
148
+ *
149
+ * * host.container_id
150
+ *
151
+ * * host.os
152
+ *
153
+ * * host.kernel_name
154
+ *
155
+ * * host.kernel_release
156
+ *
157
+ * * host.kernel_version
158
+ *
159
+ * * runtime_id
160
+ *
161
+ *
162
+ */
163
+ ddog_MaybeError ddog_builder_with_str_named_property(struct ddog_TelemetryWorkerBuilder *builder,
164
+ ddog_CharSlice property,
165
+ ddog_CharSlice param);
166
+
167
+ ddog_MaybeError ddog_builder_with_bool_config_telemetry_debug_logging_enabled(struct ddog_TelemetryWorkerBuilder *builder,
168
+ bool param);
169
+
170
+ /**
171
+ * Sets a property from it's string value.
172
+ *
173
+ * Available properties:
174
+ *
175
+ * * config.telemetry_debug_logging_enabled
176
+ *
177
+ *
178
+ */
179
+ ddog_MaybeError ddog_builder_with_property_bool(struct ddog_TelemetryWorkerBuilder *builder,
180
+ enum ddog_TelemetryWorkerBuilderBoolProperty property,
181
+ bool param);
182
+
183
+ /**
184
+ * Sets a property from it's string value.
185
+ *
186
+ * Available properties:
187
+ *
188
+ * * config.telemetry_debug_logging_enabled
189
+ *
190
+ *
191
+ */
192
+ ddog_MaybeError ddog_builder_with_bool_named_property(struct ddog_TelemetryWorkerBuilder *builder,
193
+ ddog_CharSlice property,
194
+ bool param);
195
+
196
+ ddog_MaybeError ddog_builder_with_endpoint_config_endpoint(struct ddog_TelemetryWorkerBuilder *builder,
197
+ const struct ddog_Endpoint *param);
198
+
199
+ /**
200
+ * Sets a property from it's string value.
201
+ *
202
+ * Available properties:
203
+ *
204
+ * * config.endpoint
205
+ *
206
+ *
207
+ */
208
+ ddog_MaybeError ddog_builder_with_property_endpoint(struct ddog_TelemetryWorkerBuilder *builder,
209
+ enum ddog_TelemetryWorkerBuilderEndpointProperty property,
210
+ const struct ddog_Endpoint *param);
211
+
212
+ /**
213
+ * Sets a property from it's string value.
214
+ *
215
+ * Available properties:
216
+ *
217
+ * * config.endpoint
218
+ *
219
+ *
220
+ */
221
+ ddog_MaybeError ddog_builder_with_endpoint_named_property(struct ddog_TelemetryWorkerBuilder *builder,
222
+ ddog_CharSlice property,
223
+ const struct ddog_Endpoint *param);
224
+
225
+ ddog_MaybeError ddog_handle_add_dependency(const struct ddog_TelemetryWorkerHandle *handle,
226
+ ddog_CharSlice dependency_name,
227
+ ddog_CharSlice dependency_version);
228
+
229
+ ddog_MaybeError ddog_handle_add_integration(const struct ddog_TelemetryWorkerHandle *handle,
230
+ ddog_CharSlice dependency_name,
231
+ ddog_CharSlice dependency_version,
232
+ bool enabled,
233
+ struct ddog_Option_Bool compatible,
234
+ struct ddog_Option_Bool auto_enabled);
235
+
236
+ /**
237
+ * * indentifier: identifies a logging location uniquely. This can for instance be the template
238
+ * using for the log message or the concatenated file + line of the origin of the log
239
+ * * stack_trace: stack trace associated with the log. If no stack trace is available, an empty
240
+ * string should be passed
241
+ */
242
+ ddog_MaybeError ddog_handle_add_log(const struct ddog_TelemetryWorkerHandle *handle,
243
+ ddog_CharSlice indentifier,
244
+ ddog_CharSlice message,
245
+ enum ddog_LogLevel level,
246
+ ddog_CharSlice stack_trace);
247
+
248
+ ddog_MaybeError ddog_handle_start(const struct ddog_TelemetryWorkerHandle *handle);
249
+
250
+ struct ddog_TelemetryWorkerHandle *ddog_handle_clone(const struct ddog_TelemetryWorkerHandle *handle);
251
+
252
+ ddog_MaybeError ddog_handle_stop(const struct ddog_TelemetryWorkerHandle *handle);
253
+
254
+ /**
255
+ * * compatible: should be false if the metric is language specific, true otherwise
256
+ */
257
+ struct ddog_ContextKey ddog_handle_register_metric_context(const struct ddog_TelemetryWorkerHandle *handle,
258
+ ddog_CharSlice name,
259
+ enum ddog_MetricType metric_type,
260
+ struct ddog_Vec_Tag tags,
261
+ bool common,
262
+ enum ddog_MetricNamespace namespace_);
263
+
264
+ ddog_MaybeError ddog_handle_add_point(const struct ddog_TelemetryWorkerHandle *handle,
265
+ const struct ddog_ContextKey *context_key,
266
+ double value);
267
+
268
+ ddog_MaybeError ddog_handle_add_point_with_tags(const struct ddog_TelemetryWorkerHandle *handle,
269
+ const struct ddog_ContextKey *context_key,
270
+ double value,
271
+ struct ddog_Vec_Tag extra_tags);
272
+
273
+ /**
274
+ * This function takes ownership of the handle. It should not be used after calling it
275
+ */
276
+ void ddog_handle_wait_for_shutdown(struct ddog_TelemetryWorkerHandle *handle);
277
+
278
+ /**
279
+ * This function takes ownership of the handle. It should not be used after calling it
280
+ */
281
+ void ddog_handle_wait_for_shutdown_ms(struct ddog_TelemetryWorkerHandle *handle,
282
+ uint64_t wait_for_ms);
283
+
284
+ /**
285
+ * Drops the handle without waiting for shutdown. The worker will continue running in the
286
+ * background until it exits by itself
287
+ */
288
+ void ddog_handle_drop(struct ddog_TelemetryWorkerHandle *handle);
289
+
290
+ #endif /* DDOG_TELEMETRY_H */
@@ -1,7 +1,5 @@
1
- # Unless explicitly stated otherwise all files in this repository are licensed
2
- # under the Apache License Version 2.0. This product includes software
3
- # developed at Datadog (https://www.datadoghq.com/). Copyright 2021-Present
4
- # Datadog, Inc.
1
+ # Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
2
+ # SPDX-License-Identifier: Apache-2.0
5
3
 
6
4
  prefix=${pcfiledir}/../..
7
5
  exec_prefix=${prefix}