otel: fix conversion for []time.Duration fields#50486
Conversation
Handle []time.Duration explicitly in otelmap.ConvertNonPrimitive by converting each element to int64, matching scalar time.Duration behavior and preventing dropped fields during pcommon.Map conversion. Add a unit test that validates both the converted value and successful pcommon.Map.FromRaw conversion, plus a changelog fragment. Assisted-By: GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
/test |
TL;DRThe failed Buildkite step is an infrastructure/dependency failure during Docker image build, not a failure in the Remediation
Investigation detailsRoot CauseBuild fails before tests run while building the Kerberos integration image used by libbeat integration tests:
The failing command in logs is exactly that Dockerfile RUN step, which indicates failure in that image provisioning path rather than in PR logic. Evidence
The PR itself modifies Verification
Follow-upIf reruns keep failing on the same step, collect full What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
/test |
|
@Mergifyio backport 8.19 9.3 9.4 |
✅ Backports have been createdDetails
|
Handle []time.Duration explicitly in otelmap.ConvertNonPrimitive by converting each element to int64, matching scalar time.Duration behavior and preventing dropped fields during pcommon.Map conversion. Add a unit test that validates both the converted value and successful pcommon.Map.FromRaw conversion, plus a changelog fragment. Assisted-By: GitHub Copilot (cherry picked from commit ca37473) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Handle []time.Duration explicitly in otelmap.ConvertNonPrimitive by converting each element to int64, matching scalar time.Duration behavior and preventing dropped fields during pcommon.Map conversion. Add a unit test that validates both the converted value and successful pcommon.Map.FromRaw conversion, plus a changelog fragment. Assisted-By: GitHub Copilot (cherry picked from commit ca37473) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Handle []time.Duration explicitly in otelmap.ConvertNonPrimitive by converting each element to int64, matching scalar time.Duration behavior and preventing dropped fields during pcommon.Map conversion. Add a unit test that validates both the converted value and successful pcommon.Map.FromRaw conversion, plus a changelog fragment. Assisted-By: GitHub Copilot (cherry picked from commit ca37473) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Summary
[]time.Durationhandling inlibbeat/otel/otelmap/otelmap.goso each element is converted toint64TestFromMapstrSliceDurationto verify converted output and successfulpcommon.Map.FromRawconversionchangelog/fragments/1777914810-fix-otel-duration-slice-conversion.yamlValidation
go test ./libbeat/otel/otelmapRelated: #50474
What is this? | From workflow: Mention in Issue
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.