Repository navigation
fix(otlp): send array, key-value list, bytes and empty span attributes as string tags - #3713
Conversation
Binary Size Analysis (Agent Data Plane)Baseline: f21242e · Comparison: 7ba8b03 · diff ✅ Binary size difference within thresholdChanges by Module
Detailed Symbol Changes |
Regression Detector (Agent Data Plane)Run ID: Optimization Goals: ✅ No significant changes detectedFine details of change detection per experiment (5)Experiments configured
Bounds Checks: ✅ Passed (5)
ExplanationA change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression ( |
There was a problem hiding this comment.
AI review by Claude - workflow run
Patch is correct, with 0 blocking findings. Span attributes that are arrays, key-value lists, bytes, or that have no value now go through the shared otlp_value_as_string helper, so they become string tags. The two receive paths are tested to agree on them. The new test helper was inserted below an existing doc comment, so that comment now sits on the wrong item.
There was a problem hiding this comment.
More details
The conversion reuses the existing OTLP string renderer for base64 bytes and JSON collections, with no actionable regression identified by the completed static review. Runtime behavior was not exercised.
🤖 Bits Code Review · Commit c8aeb1f
The mapped_span_attribute helper was inserted between the TestGetOTelVersion doc comment and test_get_otel_version, so the helper carried two doc lines and the test none.
|
/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 |
Summary
An OTLP span attribute that is an array, a key-value list, or has no value was dropped, and a bytes attribute was sent in a place that is not a normal tag. The data was lost, or at best hard to search.
Now these attributes arrive as ordinary string tags on the span: an array or key-value list as JSON text, bytes as base64, and a value-less attribute as an empty string. Strings, numbers, and booleans are unchanged.
Change Type
How did you test this PR?
cargo nextest run -p saluki-componentson the OTLP trace tests,cargo clippy -p saluki-components --tests,make fmtandmake check-docs.otlp-traces-conversioncorrectness case. I did not run the case, because it needs Docker.References