Repository navigation
Decode v1 key_value_list values as flat triplet arrays - #8497
Conversation
The v1 format encodes a key_value_list like attributes, as a flat
[key, type, value, ...] array (datadog-agent pkg/proto/pbgo/trace/idx/span.go).
The decoder expected a {key: [type, value]} map, so the PHP tracer's _dd.stack
crashed the deserialization. Also decode key_value_lists nested in arrays.
|
|
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 6e85a26 | Docs | View more details | Give us feedback! |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
The expected merge time in
|
|
/merge |
|
View all feedbacks in Devflow UI.
PR already in the queue with status waiting |
Motivation
The proxy decoded a V1
key_value_listvalue as a map, but the agent and libdatadog encode it as flat key/type/value triplets, like span attributes. No tracer emitted one until now; dd-trace-php's V1 payloads send_dd.stackas one, which crashed deserialization.Changes
Decode
key_value_listvalues as flat triplets, including arrays ofkey_value_lists. Unit test updated, with a nested_dd.stack-shaped case.