Skip to content

Decode v1 key_value_list values as flat triplet arrays - #8497

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
mainfrom
leiyks/v1-kvl-decoder-triplets
Nov 13, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
mainfrom
leiyks/v1-kvl-decoder-triplets

Conversation

@Leiyks

@Leiyks Leiyks commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Motivation

The proxy decoded a V1 key_value_list value 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.stack as one, which crashed deserialization.

Changes

Decode key_value_list values as flat triplets, including arrays of key_value_lists. Unit test updated, with a nested _dd.stack-shaped case.

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.
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/test_the_test/test_deserializer.py                                @DataDog/system-tests-reviewers
utils/proxy/traces/trace_v1.py                                          @DataDog/system-tests-core
utils/scripts/ci_orchestrators/workflow_data.py                         @DataDog/system-tests-core

@datadog-official

datadog-official Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6e85a26 | Docs | View more details | Give us feedback!

@Leiyks
Leiyks marked this pull request as ready for review November 13, 2026 14:38
@Leiyks
Leiyks requested review from a team as code owners November 13, 2026 14:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T14:39:15.612470Z f83d057 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Leiyks

Leiyks commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-13 17:50:55 UTC ℹ️ Start processing command /merge


2026-11-13 17:51:06 UTC ℹ️ MergeQueue: Pull request is not mergeable yet

It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.

  • Run /code blockers to see what is blocking it.
  • Run /remove to cancel it.

2026-11-13 20:44:09 UTC ℹ️ MergeQueue: merge request added to the queue

The expected merge time in main is approximately 2h (p90).


2026-11-13 22:03:45 UTC ℹ️ MergeQueue: This merge request was merged

@Leiyks

Leiyks commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-13 19:04:23 UTC ℹ️ Start processing command /merge


2026-11-13 19:04:25 UTC ❌ MergeQueue

PR already in the queue with status waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants