libdatadog 44.0.1.1.0 → 46.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-44.0.1/aarch64-linux-musl → libdatadog-46.0.0/aarch64-linux}/LICENSE-3rdparty.csv +6 -9
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/include/datadog/common.h +235 -143
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux}/include/datadog/crashtracker.h +4 -4
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux}/include/datadog/data-pipeline.h +78 -2
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux}/include/datadog/ddsketch.h +2 -2
- data/vendor/{libdatadog-44.0.1/aarch64-linux-musl → libdatadog-46.0.0/aarch64-linux}/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-44.0.1/x86_64-linux-musl → libdatadog-46.0.0/aarch64-linux}/include/datadog/otel-thread-ctx.h +20 -6
- data/vendor/{libdatadog-44.0.1/x86_64-linux-musl → libdatadog-46.0.0/aarch64-linux}/include/datadog/profiling.h +1 -1
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux-musl}/LICENSE-3rdparty.csv +6 -9
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/common.h +235 -143
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/aarch64-linux-musl}/include/datadog/crashtracker.h +4 -4
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/aarch64-linux-musl}/include/datadog/data-pipeline.h +78 -2
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/ddsketch.h +2 -2
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux-musl}/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux-musl}/include/datadog/otel-thread-ctx.h +20 -6
- data/vendor/{libdatadog-44.0.1/arm64-darwin → libdatadog-46.0.0/aarch64-linux-musl}/include/datadog/profiling.h +1 -1
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/arm64-darwin}/LICENSE-3rdparty.csv +6 -9
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/include/datadog/common.h +235 -143
- data/vendor/{libdatadog-44.0.1/aarch64-linux-musl → libdatadog-46.0.0/arm64-darwin}/include/datadog/crashtracker.h +4 -4
- data/vendor/{libdatadog-44.0.1/x86_64-linux-musl → libdatadog-46.0.0/arm64-darwin}/include/datadog/data-pipeline.h +78 -2
- data/vendor/{libdatadog-44.0.1/x86_64-linux-musl → libdatadog-46.0.0/arm64-darwin}/include/datadog/ddsketch.h +2 -2
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/arm64-darwin}/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/arm64-darwin}/include/datadog/otel-thread-ctx.h +20 -6
- data/vendor/{libdatadog-44.0.1/aarch64-linux-musl → libdatadog-46.0.0/arm64-darwin}/include/datadog/profiling.h +1 -1
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/lib/libdatadog_profiling.dylib +0 -0
- data/vendor/{libdatadog-44.0.1/x86_64-linux-musl → libdatadog-46.0.0/arm64-darwin}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/libdatadog-46.0.0/x86_64-linux/LICENSE-3rdparty.csv +557 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/common.h +3215 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/crashtracker.h +1026 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/data-pipeline.h +732 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/ddsketch.h +89 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/library-config.h +138 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/otel-thread-ctx.h +116 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/include/datadog/profiling.h +1167 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/lib/libdatadog_profiling.so +0 -0
- data/vendor/libdatadog-46.0.0/x86_64-linux/lib/pkgconfig/datadog_profiling_with_rpath.pc +15 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/LICENSE-3rdparty.csv +6 -9
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/common.h +235 -143
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/crashtracker.h +4 -4
- data/vendor/{libdatadog-44.0.1/aarch64-linux-musl → libdatadog-46.0.0/x86_64-linux-musl}/include/datadog/data-pipeline.h +78 -2
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/x86_64-linux-musl}/include/datadog/ddsketch.h +2 -2
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-44.0.1/aarch64-linux-musl → libdatadog-46.0.0/x86_64-linux-musl}/include/datadog/otel-thread-ctx.h +20 -6
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/x86_64-linux-musl}/include/datadog/profiling.h +1 -1
- data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-44.0.1/aarch64-linux → libdatadog-46.0.0/x86_64-linux-musl}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- metadata +91 -91
- data/vendor/libdatadog-44.0.1/x86_64-linux/LICENSE-3rdparty.csv +0 -560
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/common.h +0 -3123
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/crashtracker.h +0 -1026
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/data-pipeline.h +0 -656
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/ddsketch.h +0 -89
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/library-config.h +0 -115
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/otel-thread-ctx.h +0 -102
- data/vendor/libdatadog-44.0.1/x86_64-linux/include/datadog/profiling.h +0 -1167
- data/vendor/libdatadog-44.0.1/x86_64-linux/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -15
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/LICENSE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/NOTICE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/aarch64-linux-musl/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/LICENSE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/NOTICE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/LICENSE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/NOTICE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/ffe.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/x86_64-linux-musl/include/datadog/telemetry.h +0 -0
|
@@ -20,6 +20,31 @@ extern "C" {
|
|
|
20
20
|
*/
|
|
21
21
|
void ddog_trace_exporter_error_free(struct ddog_TraceExporterError *error);
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Select external observation delivery and disable native telemetry delivery.
|
|
25
|
+
*
|
|
26
|
+
* # Safety
|
|
27
|
+
* `config`, when non-null, must be a live, exclusively borrowed configuration.
|
|
28
|
+
*/
|
|
29
|
+
struct ddog_TraceExporterError *ddog_trace_exporter_config_enable_observations(struct ddog_TraceExporterConfig *config);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Send chunks with caller-owned observations on success, failure, or cancellation.
|
|
33
|
+
* Native telemetry is not submitted for this operation. Both outputs are initialised
|
|
34
|
+
* before validation; invalid input and contained panics leave zero observations.
|
|
35
|
+
* `chunks` is consumed on every return, including invalid arguments and panics.
|
|
36
|
+
*
|
|
37
|
+
* # Safety
|
|
38
|
+
* Non-null pointers must be valid for their types. Output slots must be writable,
|
|
39
|
+
* unaliased, and contain no live owned response. Free a returned response with
|
|
40
|
+
* `ddog_trace_exporter_response_free`; observations require no cleanup.
|
|
41
|
+
*/
|
|
42
|
+
struct ddog_TraceExporterError *ddog_trace_exporter_send_trace_chunks_observed(const ddog_TraceExporter *exporter,
|
|
43
|
+
ddog_TracerTraceChunks *chunks,
|
|
44
|
+
struct ddog_TraceExporterResponse **response_out,
|
|
45
|
+
struct ddog_TraceExporterObservations *observations_out,
|
|
46
|
+
const ddog_TraceExporterCancelToken *cancel);
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* Return a borrowed view of the response body. The returned slice is
|
|
25
50
|
* only valid as long as `response` is alive. Returns an empty slice
|
|
@@ -137,6 +162,13 @@ struct ddog_TraceExporterError *ddog_trace_exporter_config_enable_telemetry(stru
|
|
|
137
162
|
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_compute_stats(struct ddog_TraceExporterConfig *config,
|
|
138
163
|
bool is_enabled);
|
|
139
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Indicates that the tracer has already marked top-level spans with `_dd.top_level`.
|
|
167
|
+
* Sets the `Datadog-Client-Computed-Top-Level` header without enabling stats computation.
|
|
168
|
+
*/
|
|
169
|
+
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_client_computed_top_level(struct ddog_TraceExporterConfig *config,
|
|
170
|
+
bool client_computed_top_level);
|
|
171
|
+
|
|
140
172
|
/**
|
|
141
173
|
* Sets `Datadog-Client-Computed-Stats` header to `true`.
|
|
142
174
|
* This indicates that the upstream system has already computed the stats,
|
|
@@ -154,12 +186,31 @@ struct ddog_TraceExporterError *ddog_trace_exporter_config_set_compute_stats(str
|
|
|
154
186
|
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_client_computed_stats(struct ddog_TraceExporterConfig *config,
|
|
155
187
|
bool client_computed_stats);
|
|
156
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Shares a mutable metadata handle with the exporter config.
|
|
191
|
+
*
|
|
192
|
+
* When set, this supersedes `ddog_trace_exporter_config_set_process_tags` and
|
|
193
|
+
* `ddog_trace_exporter_config_set_runtime_id`.
|
|
194
|
+
*/
|
|
195
|
+
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_mutable_metadata(struct ddog_TraceExporterConfig *config,
|
|
196
|
+
const ddog_MutableMetadataHandle *metadata);
|
|
197
|
+
|
|
157
198
|
/**
|
|
158
199
|
* Sets the process tags to be included in the stats payload.
|
|
200
|
+
*
|
|
201
|
+
* This should not be used when `ddog_trace_exporter_config_set_mutable_metadata` is used.
|
|
159
202
|
*/
|
|
160
203
|
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_process_tags(struct ddog_TraceExporterConfig *config,
|
|
161
204
|
ddog_CharSlice process_tags);
|
|
162
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Sets the runtime id used in payloads.
|
|
208
|
+
*
|
|
209
|
+
* This should not be used when `ddog_trace_exporter_config_set_mutable_metadata` is used.
|
|
210
|
+
*/
|
|
211
|
+
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_runtime_id(struct ddog_TraceExporterConfig *config,
|
|
212
|
+
ddog_CharSlice runtime_id);
|
|
213
|
+
|
|
163
214
|
/**
|
|
164
215
|
* Sets the `X-Datadog-Test-Session-Token` header. Only used for testing with the test agent.
|
|
165
216
|
*/
|
|
@@ -175,13 +226,13 @@ struct ddog_TraceExporterError *ddog_trace_exporter_config_set_connection_timeou
|
|
|
175
226
|
/**
|
|
176
227
|
* Sets a shared runtime for the TraceExporter to use for background workers.
|
|
177
228
|
*
|
|
178
|
-
* `handle` must have been initialized with
|
|
229
|
+
* `handle` must have been initialized with `ddog_shared_runtime_new`.
|
|
179
230
|
*
|
|
180
231
|
* When set, the exporter will use the provided runtime instead of creating its own.
|
|
181
232
|
* This allows multiple exporters (or other components) to share a single runtime.
|
|
182
233
|
* The config holds a clone of the `Arc` (increments the strong count), so the
|
|
183
234
|
* original handle remains valid and must still be freed with
|
|
184
|
-
*
|
|
235
|
+
* `ddog_shared_runtime_free`.
|
|
185
236
|
*/
|
|
186
237
|
struct ddog_TraceExporterError *ddog_trace_exporter_config_set_shared_runtime(struct ddog_TraceExporterConfig *config,
|
|
187
238
|
struct ddog_ForkSafeRuntime *handle);
|
|
@@ -328,6 +379,31 @@ struct ddog_TraceExporterError *ddog_trace_exporter_new(ddog_TraceExporter **out
|
|
|
328
379
|
*/
|
|
329
380
|
void ddog_trace_exporter_free(ddog_TraceExporter *handle);
|
|
330
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Consumes the exporter and waits at most `timeout_ms` for its workers to flush.
|
|
384
|
+
* The handle is consumed on success and error. Other workers on a shared runtime
|
|
385
|
+
* are unaffected. The deadline bounds worker flushing, not runtime destruction:
|
|
386
|
+
* dropping the last runtime owner can additionally wait for blocking tasks such
|
|
387
|
+
* as system DNS resolution. Hosts must account for that separately.
|
|
388
|
+
*
|
|
389
|
+
* # Safety
|
|
390
|
+
*
|
|
391
|
+
* `handle` must be valid and must not be used concurrently or after this call.
|
|
392
|
+
*/
|
|
393
|
+
struct ddog_TraceExporterError *ddog_trace_exporter_shutdown(ddog_TraceExporter *handle,
|
|
394
|
+
uint64_t timeout_ms);
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Releases the exporter without flushing or stopping its workers.
|
|
398
|
+
* The caller must also dispose of the runtime that owns those workers. This is
|
|
399
|
+
* intended for finalisation and failed fork recovery with an exclusively owned runtime.
|
|
400
|
+
*
|
|
401
|
+
* # Safety
|
|
402
|
+
*
|
|
403
|
+
* `handle` must be valid and must not be used concurrently or after this call.
|
|
404
|
+
*/
|
|
405
|
+
void ddog_trace_exporter_discard(ddog_TraceExporter *handle);
|
|
406
|
+
|
|
331
407
|
/**
|
|
332
408
|
* Send traces to the Datadog Agent.
|
|
333
409
|
*
|
|
@@ -73,11 +73,11 @@ struct ddog_VoidResult ddog_ddsketch_count(struct ddsketch_Handle_DDSketch *sket
|
|
|
73
73
|
struct ddog_Vec_U8 ddog_ddsketch_encode(struct ddsketch_Handle_DDSketch *sketch);
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Frees the memory allocated for a Vec<u8
|
|
76
|
+
* Frees the memory allocated for a `Vec<u8>` returned by ddsketch functions.
|
|
77
77
|
*
|
|
78
78
|
* # Safety
|
|
79
79
|
*
|
|
80
|
-
* The vec parameter must be a valid Vec<u8
|
|
80
|
+
* The vec parameter must be a valid `Vec<u8>` returned by this library.
|
|
81
81
|
* After being called, the vec will not point to valid memory.
|
|
82
82
|
*/
|
|
83
83
|
void ddog_Vec_U8_drop(struct ddog_Vec_U8 _vec);
|
|
@@ -24,32 +24,8 @@ void ddog_library_configurator_with_fleet_path(struct ddog_Configurator *c,
|
|
|
24
24
|
void ddog_library_configurator_with_process_info(struct ddog_Configurator *c,
|
|
25
25
|
struct ddog_ProcessInfo p);
|
|
26
26
|
|
|
27
|
-
void ddog_library_configurator_with_detect_process_info(struct ddog_Configurator *c);
|
|
28
|
-
|
|
29
27
|
void ddog_library_configurator_drop(struct ddog_Configurator*);
|
|
30
28
|
|
|
31
|
-
struct ddog_LibraryConfigLoggedResult ddog_library_configurator_get(const struct ddog_Configurator *configurator);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Returns a static null-terminated string, containing the name of the environment variable
|
|
35
|
-
* associated with the library configuration
|
|
36
|
-
*/
|
|
37
|
-
struct ddog_CStr ddog_library_config_source_to_string(enum ddog_LibraryConfigSource name);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Returns a static null-terminated string with the path to the managed stable config yaml config
|
|
41
|
-
* file
|
|
42
|
-
*/
|
|
43
|
-
struct ddog_CStr ddog_library_config_fleet_stable_config_path(void);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Returns a static null-terminated string with the path to the local stable config yaml config
|
|
47
|
-
* file
|
|
48
|
-
*/
|
|
49
|
-
struct ddog_CStr ddog_library_config_local_stable_config_path(void);
|
|
50
|
-
|
|
51
|
-
void ddog_library_config_drop(struct ddog_LibraryConfigLoggedResult config_result);
|
|
52
|
-
|
|
53
29
|
/**
|
|
54
30
|
* Allocates and returns a pointer to a new `TracerMetadata` object on the heap.
|
|
55
31
|
*
|
|
@@ -89,6 +65,29 @@ void ddog_tracer_metadata_set(struct ddog_TracerMetadata *ptr,
|
|
|
89
65
|
enum ddog_MetadataKind kind,
|
|
90
66
|
const char *value);
|
|
91
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Includes thread-context discovery metadata in the `TracerMetadata` object pointed to by `ptr`.
|
|
70
|
+
*
|
|
71
|
+
* If the builder has no thread-context metadata, configures it to publish
|
|
72
|
+
* the `tlsdesc_v1_dev` schema and a key map containing `datadog.local_root_span_id`.
|
|
73
|
+
* If the thread-context metadata is already set, leaves it unchanged.
|
|
74
|
+
*
|
|
75
|
+
* This function only updates the builder. Call `ddog_tracer_metadata_store` to publish it.
|
|
76
|
+
*
|
|
77
|
+
* # Arguments
|
|
78
|
+
* - `ptr`: Pointer to a `TracerMetadata` instance.
|
|
79
|
+
*
|
|
80
|
+
* # Safety
|
|
81
|
+
* - If non-null, `ptr` must point to a valid, properly aligned, live `TracerMetadata`.
|
|
82
|
+
* - The caller must ensure exclusive access to the instance for the duration of the call.
|
|
83
|
+
* - Ownership remains with the caller
|
|
84
|
+
*
|
|
85
|
+
* # Returns
|
|
86
|
+
* - On success: `VoidResult::Ok`, also when thread-context metadata is already present
|
|
87
|
+
* - An error if `ptr` is null.
|
|
88
|
+
*/
|
|
89
|
+
struct ddog_VoidResult ddog_tracer_metadata_include_otel_thread_context(struct ddog_TracerMetadata *ptr);
|
|
90
|
+
|
|
92
91
|
/**
|
|
93
92
|
* Serializes the `TracerMetadata` into a platform-specific memory handle (e.g., memfd on Linux).
|
|
94
93
|
* This function also attempts to publish the tracer metadata as an OTel process context
|
|
@@ -108,6 +107,30 @@ void ddog_tracer_metadata_set(struct ddog_TracerMetadata *ptr,
|
|
|
108
107
|
*/
|
|
109
108
|
struct ddog_Result_TracerMemfdHandle ddog_tracer_metadata_store(struct ddog_TracerMetadata *ptr);
|
|
110
109
|
|
|
110
|
+
void ddog_library_configurator_with_detect_process_info(struct ddog_Configurator *c);
|
|
111
|
+
|
|
112
|
+
struct ddog_LibraryConfigLoggedResult ddog_library_configurator_get(const struct ddog_Configurator *configurator);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Returns a static null-terminated string, containing the name of the environment variable
|
|
116
|
+
* associated with the library configuration
|
|
117
|
+
*/
|
|
118
|
+
struct ddog_CStr ddog_library_config_source_to_string(enum ddog_LibraryConfigSource name);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns a static null-terminated string with the path to the managed stable config yaml
|
|
122
|
+
* config file
|
|
123
|
+
*/
|
|
124
|
+
struct ddog_CStr ddog_library_config_fleet_stable_config_path(void);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Returns a static null-terminated string with the path to the local stable config yaml config
|
|
128
|
+
* file
|
|
129
|
+
*/
|
|
130
|
+
struct ddog_CStr ddog_library_config_local_stable_config_path(void);
|
|
131
|
+
|
|
132
|
+
void ddog_library_config_drop(struct ddog_LibraryConfigLoggedResult config_result);
|
|
133
|
+
|
|
111
134
|
#ifdef __cplusplus
|
|
112
135
|
} // extern "C"
|
|
113
136
|
#endif // __cplusplus
|
|
@@ -29,6 +29,15 @@ struct ddog_VoidResult ddog_otel_thread_ctx_sanity_check(void);
|
|
|
29
29
|
/**
|
|
30
30
|
* Allocate and initialise a new thread context, including its W3C trace-flags byte.
|
|
31
31
|
*
|
|
32
|
+
* `trace_id`, `span_id`, and `local_root_span_id` use W3C Trace Context byte order,
|
|
33
|
+
* equivalent to big-endian when interpreted as integers.
|
|
34
|
+
*
|
|
35
|
+
* When representing an active trace, both `trace_id` and `span_id` must be nonzero. Otherwise,
|
|
36
|
+
* `trace_id`, `span_id`, and `trace_flags` must be zero.
|
|
37
|
+
*
|
|
38
|
+
* This function does not validate IDs or reject invalid combinations of `trace_id`, `span_id`,
|
|
39
|
+
* and `trace_flags`.
|
|
40
|
+
*
|
|
32
41
|
* Returns a non-null owned handle that must eventually be released with
|
|
33
42
|
* `ddog_otel_thread_ctx_free`.
|
|
34
43
|
*/
|
|
@@ -42,9 +51,11 @@ struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_new(const uint8_t (*trace_
|
|
|
42
51
|
*
|
|
43
52
|
* # Safety
|
|
44
53
|
*
|
|
54
|
+
* **`ctx` must not be a handle to a currently attached to a thread**. Only free detached
|
|
55
|
+
* contexts.
|
|
56
|
+
*
|
|
45
57
|
* `ctx` must be a valid non-null pointer obtained from `ddog_otel_thread_ctx_new` or
|
|
46
|
-
* `ddog_otel_thread_ctx_detach`, and must not be used after this call.
|
|
47
|
-
* must not be currently attached to a thread.
|
|
58
|
+
* `ddog_otel_thread_ctx_detach`, and must not be used after this call.
|
|
48
59
|
*/
|
|
49
60
|
void ddog_otel_thread_ctx_free(struct ddog_ThreadContextHandle *ctx);
|
|
50
61
|
|
|
@@ -54,9 +65,10 @@ void ddog_otel_thread_ctx_free(struct ddog_ThreadContextHandle *ctx);
|
|
|
54
65
|
*
|
|
55
66
|
* # Safety
|
|
56
67
|
*
|
|
57
|
-
* `ctx`
|
|
58
|
-
*
|
|
59
|
-
*
|
|
68
|
+
* Ownership of `ctx` is transferred to the TLS slot. **The caller must NOT free `ctx` while it
|
|
69
|
+
* is still actively attached**.
|
|
70
|
+
*
|
|
71
|
+
* `ctx` must be a valid non-null pointer obtained from this API.
|
|
60
72
|
*/
|
|
61
73
|
struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_attach(struct ddog_ThreadContextHandle *ctx);
|
|
62
74
|
|
|
@@ -70,6 +82,7 @@ struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_detach(void);
|
|
|
70
82
|
|
|
71
83
|
/**
|
|
72
84
|
* Update the currently attached context in-place, including its W3C trace-flags byte.
|
|
85
|
+
* Uses the same ID byte order and zero-value rules as `ddog_otel_thread_ctx_new`.
|
|
73
86
|
*
|
|
74
87
|
* If no context is currently attached, one is created and attached, equivalent to calling
|
|
75
88
|
* `ddog_otel_thread_ctx_new` followed by `ddog_otel_thread_ctx_attach`.
|
|
@@ -81,7 +94,8 @@ void ddog_otel_thread_ctx_update(const uint8_t (*trace_id)[16],
|
|
|
81
94
|
|
|
82
95
|
/**
|
|
83
96
|
* Update `ctx` and attach it to the current thread. Returns the previously attached different
|
|
84
|
-
* context, if any.
|
|
97
|
+
* context, if any. Uses the same ID byte order and zero-value rules as
|
|
98
|
+
* `ddog_otel_thread_ctx_new`.
|
|
85
99
|
*
|
|
86
100
|
* # Safety
|
|
87
101
|
*
|
|
@@ -112,7 +112,7 @@ struct ddog_prof_Endpoint ddog_Endpoint_file(ddog_CharSlice filename);
|
|
|
112
112
|
* # Arguments
|
|
113
113
|
* * `profiling_library_name` - Profiling library name, usually dd-trace-something, e.g.
|
|
114
114
|
* "dd-trace-rb". See
|
|
115
|
-
* https://datadoghq.atlassian.net/wiki/spaces/PROF/pages/1538884229/Client#Header-values
|
|
115
|
+
* <https://datadoghq.atlassian.net/wiki/spaces/PROF/pages/1538884229/Client#Header-values>
|
|
116
116
|
* (Datadog internal link)
|
|
117
117
|
* for a list of common values.
|
|
118
118
|
* * `profliling_library_version` - Version used when publishing the profiling library to a package
|
data/vendor/{libdatadog-44.0.1 → libdatadog-46.0.0}/arm64-darwin/lib/libdatadog_profiling.dylib
RENAMED
|
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: 46.0.0
|
|
12
12
|
Requires:
|
|
13
13
|
Libs: -L${libdir} -ldatadog_profiling -Wl,-rpath,${libdir}
|
|
14
14
|
Libs.private:
|