Skip to content

Commit 0d3d03d

Browse files
committed
chore: regenerate cbindgen headers and Cargo.lock for libdatadog v1 FFI
Regenerate components-rs/*.h and Cargo.lock against the rebased libdatadog submodule (v1 send FFI branch merged with libdatadog main). Picks up the RemoteConfig DEBUG product enum, the v1 FFI comment trims, the agent_info doc-comment tightening, and the zrip/ring lockfile additions.
1 parent 318ff43 commit 0d3d03d

4 files changed

Lines changed: 46 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components-rs/common.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ typedef enum ddog_RemoteConfigProduct {
437437
DDOG_REMOTE_CONFIG_PRODUCT_FFE_FLAGS,
438438
DDOG_REMOTE_CONFIG_PRODUCT_LIVE_DEBUGGING,
439439
DDOG_REMOTE_CONFIG_PRODUCT_LIVE_DEBUGGING_SYMBOL_DB,
440+
DDOG_REMOTE_CONFIG_PRODUCT_DEBUG,
440441
} ddog_RemoteConfigProduct;
441442

442443
typedef enum ddog_SpanProbeTarget {
@@ -1353,9 +1354,7 @@ typedef struct ddog_SenderParameters {
13531354
} ddog_SenderParameters;
13541355

13551356
/**
1356-
* Payload-level tracer metadata consumed by the V1 msgpack encoder. Each field mirrors the
1357-
* corresponding field on `libdd_trace_utils::tracer_metadata::TracerMetadata`; empty slices are
1358-
* tolerated (the encoder falls back to span meta / omits the field).
1357+
* Payload-level tracer metadata for the V1 msgpack encoder; mirrors `TracerMetadata`.
13591358
*/
13601359
typedef struct ddog_TracerMetadataV1 {
13611360
ddog_CharSlice hostname;

components-rs/datadog.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ char *ddog_agent_info_as_json(struct ddog_AgentInfoReader *reader);
121121
void ddog_agent_info_json_free(char *ptr);
122122

123123
/**
124-
* Returns true when the agent /info `endpoints` list advertises `endpoint`
125-
* (e.g. `/v1.0/traces`). Returns false when no info has been received yet, so the
126-
* caller safely treats "agent info unknown" as "endpoint not advertised".
124+
* Returns whether the agent /info `endpoints` list advertises `endpoint` (e.g. `/v1.0/traces`);
125+
* false when no info has been received yet ("unknown" == "not advertised").
127126
*
128127
* # Safety
129128
* `reader` must be a valid pointer to an `AgentInfoReader`.

components-rs/sidecar.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,8 @@ void ddog_send_traces_to_sidecar(ddog_TracesBytes *traces,
498498
struct ddog_SenderParameters *parameters);
499499

500500
/**
501-
* Encodes `traces` as a V1 msgpack `TracerPayload` (using `metadata` for the payload-level
502-
* fields) and sends it to the sidecar, which re-encodes it for the agent's `/v1.0/traces`
503-
* endpoint. Mirrors `ddog_send_traces_to_sidecar` (v04) for the SHM allocation, per-span dedup,
504-
* `size_hint` derivation and the shm→bytes send fallback.
501+
* V1 counterpart of `ddog_send_traces_to_sidecar`: encodes `traces` as a V1 `TracerPayload`
502+
* using `metadata`, then sends it to the sidecar for the agent's `/v1.0/traces` endpoint.
505503
*/
506504
void ddog_send_traces_to_sidecar_v1(ddog_TracesBytes *traces,
507505
struct ddog_SenderParameters *parameters,

0 commit comments

Comments
 (0)