libdatadog 24.0.1.1.0 → 25.0.0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libdatadog/version.rb +1 -1
- data/vendor/{libdatadog-24.0.1/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-25.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/LICENSE-3rdparty.yml +5184 -4131
- data/vendor/{libdatadog-24.0.1/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-25.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/common.h +379 -109
- data/vendor/{libdatadog-24.0.1/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-25.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/crashtracker.h +1 -1
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/profiling.h +188 -0
- data/vendor/{libdatadog-24.0.1/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-25.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/telemetry.h +2 -1
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-24.0.1/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-25.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/LICENSE-3rdparty.yml +5184 -4131
- data/vendor/{libdatadog-24.0.1/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-25.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/common.h +379 -109
- data/vendor/{libdatadog-24.0.1/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-25.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/crashtracker.h +1 -1
- data/vendor/{libdatadog-24.0.1/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-25.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/profiling.h +188 -0
- data/vendor/{libdatadog-24.0.1/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-25.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/telemetry.h +2 -1
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-24.0.1/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-25.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/LICENSE-3rdparty.yml +5184 -4131
- data/vendor/{libdatadog-24.0.1/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-25.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/include/datadog/common.h +379 -109
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/crashtracker.h +1 -1
- data/vendor/{libdatadog-24.0.1/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-25.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/include/datadog/profiling.h +188 -0
- data/vendor/{libdatadog-24.0.1/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-25.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/include/datadog/telemetry.h +2 -1
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-24.0.1/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-25.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/LICENSE-3rdparty.yml +5184 -4131
- data/vendor/{libdatadog-24.0.1/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-25.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/common.h +379 -109
- data/vendor/{libdatadog-24.0.1/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-25.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/crashtracker.h +1 -1
- data/vendor/{libdatadog-24.0.1/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-25.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/profiling.h +188 -0
- data/vendor/{libdatadog-24.0.1/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-25.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/telemetry.h +2 -1
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- metadata +65 -65
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/LICENSE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/data-pipeline.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/library-config.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/data-pipeline.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/library-config.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/data-pipeline.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/library-config.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/data-pipeline.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/library-config.h +0 -0
- /data/vendor/{libdatadog-24.0.1 → libdatadog-25.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/log.h +0 -0
|
@@ -20,6 +20,41 @@ extern "C" {
|
|
|
20
20
|
|
|
21
21
|
extern const ddog_prof_StringId ddog_INTERNED_EMPTY_STRING;
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* A StringId that represents the empty string.
|
|
25
|
+
* This is always available in every string set and can be used without
|
|
26
|
+
* needing to insert it into a string set.
|
|
27
|
+
*/
|
|
28
|
+
extern const ddog_prof_StringId2 DDOG_PROF_STRINGID2_EMPTY;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A StringId that represents the string "end_timestamp_ns".
|
|
32
|
+
* This is always available in every string set and can be used without
|
|
33
|
+
* needing to insert it into a string set.
|
|
34
|
+
*/
|
|
35
|
+
extern const ddog_prof_StringId2 DDOG_PROF_STRINGID2_END_TIMESTAMP_NS;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* A StringId that represents the string "local root span id".
|
|
39
|
+
* This is always available in every string set and can be used without
|
|
40
|
+
* needing to insert it into a string set.
|
|
41
|
+
*/
|
|
42
|
+
extern const ddog_prof_StringId2 DDOG_PROF_STRINGID2_LOCAL_ROOT_SPAN_ID;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A StringId that represents the string "trace endpoint".
|
|
46
|
+
* This is always available in every string set and can be used without
|
|
47
|
+
* needing to insert it into a string set.
|
|
48
|
+
*/
|
|
49
|
+
extern const ddog_prof_StringId2 DDOG_PROF_STRINGID2_TRACE_ENDPOINT;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A StringId that represents the string "span id".
|
|
53
|
+
* This is always available in every string set and can be used without
|
|
54
|
+
* needing to insert it into a string set.
|
|
55
|
+
*/
|
|
56
|
+
extern const ddog_prof_StringId2 DDOG_PROF_STRINGID2_SPAN_ID;
|
|
57
|
+
|
|
23
58
|
DDOG_CHECK_RETURN struct ddog_prof_Exporter_Slice_File ddog_prof_Exporter_Slice_File_empty(void);
|
|
24
59
|
|
|
25
60
|
/**
|
|
@@ -113,6 +148,7 @@ struct ddog_prof_Request_Result ddog_prof_Exporter_Request_build(struct ddog_pro
|
|
|
113
148
|
struct ddog_prof_Exporter_Slice_File files_to_compress_and_export,
|
|
114
149
|
struct ddog_prof_Exporter_Slice_File files_to_export_unmodified,
|
|
115
150
|
const struct ddog_Vec_Tag *optional_additional_tags,
|
|
151
|
+
const ddog_CharSlice *optional_process_tags,
|
|
116
152
|
const ddog_CharSlice *optional_internal_metadata_json,
|
|
117
153
|
const ddog_CharSlice *optional_info_json);
|
|
118
154
|
|
|
@@ -190,6 +226,15 @@ bool ddog_CancellationToken_cancel(struct ddog_CancellationToken *cancel);
|
|
|
190
226
|
*/
|
|
191
227
|
void ddog_CancellationToken_drop(struct ddog_CancellationToken *token);
|
|
192
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Frees any error associated with the status, and replaces it with an OK.
|
|
231
|
+
*
|
|
232
|
+
* # Safety
|
|
233
|
+
*
|
|
234
|
+
* The pointer should point at a valid Status object, if it's not null.
|
|
235
|
+
*/
|
|
236
|
+
void ddog_prof_Status_drop(struct ddog_prof_Status *status);
|
|
237
|
+
|
|
193
238
|
/**
|
|
194
239
|
* Create a new profile with the given sample types. Must call
|
|
195
240
|
* `ddog_prof_Profile_drop` when you are done with the profile.
|
|
@@ -208,6 +253,32 @@ DDOG_CHECK_RETURN
|
|
|
208
253
|
struct ddog_prof_Profile_NewResult ddog_prof_Profile_new(struct ddog_prof_Slice_ValueType sample_types,
|
|
209
254
|
const struct ddog_prof_Period *period);
|
|
210
255
|
|
|
256
|
+
/**
|
|
257
|
+
* Create a new profile with the given sample types. Must call
|
|
258
|
+
* `ddog_prof_Profile_drop` when you are done with the profile.
|
|
259
|
+
*
|
|
260
|
+
* # Arguments
|
|
261
|
+
* * `out` - a non-null pointer to an uninitialized Profile.
|
|
262
|
+
* * `dict`: a valid reference to a ProfilesDictionary handle.
|
|
263
|
+
* * `sample_types`
|
|
264
|
+
* * `period` - Optional period of the profile. Passing None/null translates to zero values.
|
|
265
|
+
*
|
|
266
|
+
* # Safety
|
|
267
|
+
* All slices must have pointers that are suitably aligned for their type
|
|
268
|
+
* and must have the correct number of elements for the slice.
|
|
269
|
+
*
|
|
270
|
+
* The `dict` reference must be to a valid ProfilesDictionary handle. It may
|
|
271
|
+
* be an empty handle, but it must be a valid handle.
|
|
272
|
+
*
|
|
273
|
+
* The `out` pointer must be non-null and suitable for pointer writes,
|
|
274
|
+
* including that it has the correct size and alignment.
|
|
275
|
+
*/
|
|
276
|
+
DDOG_CHECK_RETURN
|
|
277
|
+
struct ddog_prof_Status ddog_prof_Profile_with_dictionary(struct ddog_prof_Profile *out,
|
|
278
|
+
const ddog_prof_ProfilesDictionaryHandle *dict,
|
|
279
|
+
struct ddog_prof_Slice_ValueType sample_types,
|
|
280
|
+
const struct ddog_prof_Period *period);
|
|
281
|
+
|
|
211
282
|
/**
|
|
212
283
|
* Same as `ddog_profile_new` but also configures a `string_storage` for the profile.
|
|
213
284
|
* TODO: @ivoanjo Should this take a `*mut ManagedStringStorage` like Profile APIs do?
|
|
@@ -243,6 +314,22 @@ struct ddog_prof_Profile_Result ddog_prof_Profile_add(struct ddog_prof_Profile *
|
|
|
243
314
|
struct ddog_prof_Sample sample,
|
|
244
315
|
int64_t timestamp);
|
|
245
316
|
|
|
317
|
+
/**
|
|
318
|
+
* # Safety
|
|
319
|
+
* The `profile` ptr must point to a valid Profile object created by this
|
|
320
|
+
* module. All pointers inside the `sample` need to be valid for the duration
|
|
321
|
+
* of this call.
|
|
322
|
+
*
|
|
323
|
+
* If successful, it returns the Ok variant.
|
|
324
|
+
* On error, it holds an error message in the error variant.
|
|
325
|
+
*
|
|
326
|
+
* This call is _NOT_ thread-safe.
|
|
327
|
+
*/
|
|
328
|
+
DDOG_CHECK_RETURN
|
|
329
|
+
struct ddog_prof_Status ddog_prof_Profile_add2(struct ddog_prof_Profile *profile,
|
|
330
|
+
struct ddog_prof_Sample2 sample,
|
|
331
|
+
int64_t timestamp);
|
|
332
|
+
|
|
246
333
|
/**
|
|
247
334
|
* Associate an endpoint to a given local root span id.
|
|
248
335
|
* During the serialization of the profile, an endpoint label will be added
|
|
@@ -713,6 +800,107 @@ struct ddog_VoidResult ddog_prof_Profile_sample_end(struct ddog_prof_Profile *pr
|
|
|
713
800
|
DDOG_CHECK_RETURN
|
|
714
801
|
struct ddog_VoidResult ddog_prof_Profile_sample_start(struct ddog_prof_Profile *profile);
|
|
715
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Allocates a new `ProfilesDictionary` and writes a handle to it in `handle`.
|
|
805
|
+
*
|
|
806
|
+
* # Safety
|
|
807
|
+
*
|
|
808
|
+
* - `handle` must be non-null and valid for writes of `ProfilesDictionaryHandle`.
|
|
809
|
+
* - The returned handle must eventually drop the resource; see
|
|
810
|
+
* [`ddog_prof_ProfilesDictionary_drop`] for more details.
|
|
811
|
+
* - If you need a copy, use [`ddog_prof_ProfilesDictionary_try_clone`]; don't just memcpy a new
|
|
812
|
+
* handle.
|
|
813
|
+
*/
|
|
814
|
+
struct ddog_prof_Status ddog_prof_ProfilesDictionary_new(ddog_prof_ProfilesDictionaryHandle *handle);
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Creates a new handle to the same `ProfilesDictionary` by incrementing the
|
|
818
|
+
* internal reference count.
|
|
819
|
+
*
|
|
820
|
+
* # Safety
|
|
821
|
+
*
|
|
822
|
+
* - `out` must be non-null and valid for writes of `ProfilesDictionaryHandle`.
|
|
823
|
+
* - `handle` must point to a live dictionary resource.
|
|
824
|
+
* - Do not duplicate handles via memcpy; always use this API to create new handles so the
|
|
825
|
+
* reference count is maintained correctly.
|
|
826
|
+
*/
|
|
827
|
+
struct ddog_prof_Status ddog_prof_ProfilesDictionary_try_clone(ddog_prof_ProfilesDictionaryHandle *out,
|
|
828
|
+
ddog_prof_ProfilesDictionaryHandle handle);
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Inserts a `Function` into the dictionary and returns its id.
|
|
832
|
+
*
|
|
833
|
+
* # Safety
|
|
834
|
+
*
|
|
835
|
+
* - `function_id` must be non-null and valid for writes of `FunctionId`.
|
|
836
|
+
* - `dict` must refer to a live dictionary.
|
|
837
|
+
* - `function` must be non-null and point to a valid `Function` for the duration of the call.
|
|
838
|
+
*/
|
|
839
|
+
struct ddog_prof_Status ddog_prof_ProfilesDictionary_insert_function(ddog_prof_FunctionId2 *function_id,
|
|
840
|
+
const struct ddog_prof_ProfilesDictionary *dict,
|
|
841
|
+
const struct ddog_prof_Function2 *function);
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Inserts a `Mapping` into the dictionary and returns its id.
|
|
845
|
+
*
|
|
846
|
+
* # Safety
|
|
847
|
+
*
|
|
848
|
+
* - `mapping_id` must be non-null and valid for writes of `MappingId`.
|
|
849
|
+
* - `dict` must refer to a live dictionary.
|
|
850
|
+
* - `mapping` must be non-null and point to a valid `Mapping` for the duration of the call.
|
|
851
|
+
*/
|
|
852
|
+
struct ddog_prof_Status ddog_prof_ProfilesDictionary_insert_mapping(ddog_prof_MappingId2 *mapping_id,
|
|
853
|
+
const struct ddog_prof_ProfilesDictionary *dict,
|
|
854
|
+
const struct ddog_prof_Mapping2 *mapping);
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Inserts a UTF-8 string into the dictionary string table.
|
|
858
|
+
*
|
|
859
|
+
* # Safety
|
|
860
|
+
*
|
|
861
|
+
* - `string_id` must be non-null and valid for writes of `StringId`.
|
|
862
|
+
* - `handle` must refer to a live dictionary.
|
|
863
|
+
* - The UTF-8 policy indicated by `utf8_option` must be respected by caller for the provided
|
|
864
|
+
* `byte_slice`.
|
|
865
|
+
*/
|
|
866
|
+
struct ddog_prof_Status ddog_prof_ProfilesDictionary_insert_str(ddog_prof_StringId2 *string_id,
|
|
867
|
+
const struct ddog_prof_ProfilesDictionary *dict,
|
|
868
|
+
ddog_CharSlice byte_slice,
|
|
869
|
+
enum ddog_prof_Utf8Option utf8_option);
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Tries to get the string value associated with the string id. Fails if the
|
|
873
|
+
* handle has been taken from, or the result param is null.
|
|
874
|
+
*
|
|
875
|
+
* # Safety
|
|
876
|
+
*
|
|
877
|
+
* 1. The lifetime of the return slice is tied to the underlying storage of the string set, make
|
|
878
|
+
* sure the string set is still alive when using the returned slice.
|
|
879
|
+
* 2. The string id should belong to the string set in this dictionary. Well-known strings are an
|
|
880
|
+
* exception, as they exist in every set.
|
|
881
|
+
* 3. The handle must represent a live profiles dictionary. Remember handles can be copied, and if
|
|
882
|
+
* _any_ handle drops the resource, then all handles pointing the resource are now invalid,
|
|
883
|
+
* even if though they are unaware of it.
|
|
884
|
+
* 4. The result pointer must valid for [`core::ptr::write`].
|
|
885
|
+
*/
|
|
886
|
+
struct ddog_prof_Status ddog_prof_ProfilesDictionary_get_str(ddog_CharSlice *result,
|
|
887
|
+
const struct ddog_prof_ProfilesDictionary *dict,
|
|
888
|
+
ddog_prof_StringId2 string_id);
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Drops the `ProfilesDictionary` that the handle owns, leaving a valid but
|
|
892
|
+
* useless handle (all operations on it will error). This takes a pointer to
|
|
893
|
+
* the handle to be able to modify it to leave behind an empty handle.
|
|
894
|
+
*
|
|
895
|
+
* # Safety
|
|
896
|
+
*
|
|
897
|
+
* - If non-null, `handle` must point to a valid `ProfilesDictionaryHandle`.
|
|
898
|
+
* - The underlying resource must be dropped exactly once across all copies of the handle. After
|
|
899
|
+
* dropping, all other copies become invalid and must not be used; they should be discarded
|
|
900
|
+
* without dropping.
|
|
901
|
+
*/
|
|
902
|
+
void ddog_prof_ProfilesDictionary_drop(ddog_prof_ProfilesDictionaryHandle *handle);
|
|
903
|
+
|
|
716
904
|
DDOG_CHECK_RETURN
|
|
717
905
|
struct ddog_prof_ManagedStringStorageNewResult ddog_prof_ManagedStringStorage_new(void);
|
|
718
906
|
|
|
@@ -42,7 +42,8 @@ ddog_MaybeError ddog_telemetry_builder_with_config(struct ddog_TelemetryWorkerBu
|
|
|
42
42
|
ddog_CharSlice name,
|
|
43
43
|
ddog_CharSlice value,
|
|
44
44
|
enum ddog_ConfigurationOrigin origin,
|
|
45
|
-
ddog_CharSlice config_id
|
|
45
|
+
ddog_CharSlice config_id,
|
|
46
|
+
struct ddog_Option_U64 seq_id);
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
49
|
* Builds the telemetry worker and return a handle to it
|
|
Binary file
|
|
@@ -8,7 +8,7 @@ includedir=${prefix}/include
|
|
|
8
8
|
|
|
9
9
|
Name: datadog_profiling
|
|
10
10
|
Description: Contains common code used to implement Datadog's Continuous Profilers. (Dynamic linking variant, sets rpath)
|
|
11
|
-
Version:
|
|
11
|
+
Version: 25.0.0
|
|
12
12
|
Requires:
|
|
13
13
|
Libs: -L${libdir} -ldatadog_profiling -Wl,-rpath,${libdir}
|
|
14
14
|
Libs.private:
|