feat(sidecar): high-level v1 encode+send FFI for tracers - #2311
Draft
Leiyks wants to merge 1 commit into
Draft
Conversation
Contributor
📚 Documentation Check Results📦
|
Contributor
🔒 Cargo Deny Results📦
|
|
✅ All CI checks and tests passed. 🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: c5dc301 | Docs | View more details | Give us feedback! |
Contributor
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
BenchmarksComparisonCandidateCandidate benchmark detailsBaselineBaseline benchmark details |
Leiyks
force-pushed
the
leiyks/v1-sidecar-send-ffi
branch
from
August 6, 2026 12:33
19675f4 to
d81d005
Compare
Leiyks
force-pushed
the
leiyks/v1-sidecar-send-ffi
branch
from
August 24, 2026 15:26
d81d005 to
e12dbe1
Compare
Leiyks
force-pushed
the
leiyks/v1-sidecar-send-ffi
branch
from
August 25, 2026 15:32
e12dbe1 to
c5dc301
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Built on top of #2156 (
anais/sidecar-from-v04-to-v1-span) so it can be reviewed/tested independently; will retarget tomainonce #2156 merges.Adds the high-level FFI that a tracer needs to actually emit V1 over the sidecar (the encoder from #2145 and the v1 transport from #2156 existed, but nothing tied "SDK TracesBytes -> encode v1 -> send v1"):
ddog_send_traces_to_sidecar_v1(traces, parameters, metadata)— mirrors the v04ddog_send_traces_to_sidecar(SHM alloc/size_hint + shm->bytes fallback) but encodes viamsgpack_encoder::v1and sends viaddog_sidecar_send_trace_v1_shm/_bytes.ddog_TracerMetadataV1— the payload-level metadata (runtime_id/hostname/env/app_version/service/lang/git sha/process tags) the v1 encoder consumes.Also includes a small v1-only routing fix in
sidecar_server.rssend_trace_v1so v1 payloads reachPOST /v1.0/traces(the endpoint #2156's doc comments describe but no code set). @anais — this likely belongs in #2156; happy to fold it in.Exercised by dd-trace-php PR #4046 (gated behind
DD_TRACE_AGENT_PROTOCOL_VERSION, negotiated via agent/info).