feat: replace v04 usage by v1 in sidecar#2156
Draft
anais-raison wants to merge 3 commits into
Draft
Conversation
|
Contributor
📚 Documentation Check Results📦
|
Contributor
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
Contributor
🔒 Cargo Deny Results📦
|
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
|
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.
What does this PR do?
Wires the sidecar so SDKs (PHP first) can send V1 msgpack payloads. Adds the FFI entry points, tarpc methods, blocking/sender wrappers, and server handlers — symmetric to the existing
send_trace_v04_*chain.When the sidecar receives V1 bytes, it decodes them through
msgpack_decoder::v1(added in #2174), can inspect the payload, and re-encodes as V1 on the way to the agent's/v1.0/tracesendpoint.Motivation
APMSP-2813 : enable the sidecar V1-native path. PHP keeps computing its stats SDK-side via the SHM concentrator, so this PR only touches the trace transport pipeline.
Additional Notes
Files reviewers should focus on (sidecar-specific only — the rest comes from the decoder PR):
datadog-sidecar-ffi/src/lib.rs—ddog_sidecar_send_trace_v1_{shm,bytes}FFI exportsdatadog-sidecar/src/service/sidecar_interface.rs— tarpc trait methodssend_trace_v1_{shm,bytes}datadog-sidecar/src/service/sender.rs—TransportSender::send_trace_v1_{shm,bytes}datadog-sidecar/src/service/blocking.rs— blocking wrappersdatadog-sidecar/src/service/sidecar_server.rs— tarpc handlers + the internalsend_trace_v1helper (factored through a sharedsend_trace(... TraceEncoding))