Use a better API to handle agent trace polymorphism#6370
Conversation
|
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a1a2fabc4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| link = span_links[0] | ||
| trace_id_high, trace_id_low = _get_span_link_trace_id(link, span_links_format) | ||
| trace_id_high, trace_id_low = _get_span_link_trace_id(link, span.trace.format) |
There was a problem hiding this comment.
Preserve span-link payload format when decoding IDs
When retrieve_span_links falls back to _dd.span_links, it converts links to legacy-style numeric fields (traceID/traceIDHigh as int), but this call now always passes span.trace.format into _get_span_link_trace_id. In runs where the trace is efficient format but span links are still emitted via _dd.span_links (the fallback branch in this same helper), _get_span_link_trace_id takes the efficient path and executes int(link["traceID"], 16), which fails because link["traceID"] is already an integer. This breaks the extract-behavior span-link assertions for mixed-format inputs.
Useful? React with 👍 / 👎.
Motivation
Changes
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present