← Back to Pull requests

chore(opentelemetry): map OTLP traces onto the RFC 25329 typed event #26590

Open
unknown opened this pull request with 237 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 08, 2026 16:21 UTC
Author

Summary

Adds ResourceSpans decode, ExportTraceServiceRequest encode, and hinted legacy conversion so Stage 2 can sit on the typed TraceEvent without changing Event::Trace.

The legacy converter does not map legacy LogEvent layouts to typed events directly. It parses each layout back into protobuf ResourceSpans and converts them with the same ResourceSpans decoding that the opentelemetry source will call once it emits typed events, so legacy records and wire input share one mapping.

References

#25329
#26436

Vector configuration


<!-- Include Vector configuration(s) you used to test and debug your changes. -->

How did you test this PR?

There are no direct users of the code yet so the testing is through internal unit and property tests.

Does this PR include user facing changes?


<!-- If this PR alters Vector behavior in any way, for example, it adds a new config field or changes internal metrics it is considered a user facing change.
Changes to CI, website, playground and similar are generally not considered user facing -->

  • Yes. Please add a changelog fragment based on our guidelines.

  • [X] No. A maintainer will apply the no-changelog label to this PR.
  • Contributor Guidelines

  • Please read our Vector contributor resources.

  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.

  • Before pushing, follow our pre-push guidance.

  • After a review is requested, please avoid force pushes to help us review incrementally.

  • - Feel free to push as many commits as you want. They will be squashed into one before merging.
    - For example, you can run git merge origin master and git push.

    Diff: 237 lines (+177 / -60) across 2 files Reviewer: clreaume Review duration: 6975m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 237 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.327
    Real PR Conversation Timeline
    1 comments
    "Review active on #26590"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.8% · Safe to merge
    19.8%