Skip to content

chore(core): add the RFC 25329 typed trace event model - #26436

Open
bruceg wants to merge 5 commits into
masterfrom
bruceg/trace-data-model-types
Open

bruceg wants to merge 5 commits into
masterfrom
bruceg/trace-data-model-types

Conversation

@bruceg

@bruceg bruceg commented Sep 18, 2026

Copy link
Copy Markdown
Member

Summary

Sink conversions need a canonical in-memory trace that can hold OTLP and Datadog fields without stuffing them into a LogEvent map. Add vector_core::event::typed_trace behind the typed-trace feature and leave Event::Trace as the legacy newtype so sources and the topology stay unchanged.

The type encodes the data types specified in RFC 25329 plus the invariants later mappings rely on.

References

Vector configuration

N/A

How did you test this PR?

N/A code adds no active functionality

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • 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.

Sink conversions need a canonical in-memory trace that can hold OTLP and Datadog
fields without stuffing them into a LogEvent map. Add
`vector_core::event::typed_trace` behind the typed-trace feature and leave
`Event::Trace` as the legacy newtype so sources and the topology stay unchanged.

The type encodes the data types specified in RFC 25329 plus the invariants later
mappings rely on.
@bruceg bruceg added the type: tech debt A code change that does not add user value. label Sep 18, 2026
@bruceg
bruceg requested review from a team as code owners September 18, 2026 22:24
@bruceg bruceg added domain: traces Anything related to Vectors' trace events domain: core Anything related to core crates i.e. vector-core, core-common, etc no-changelog Changes in this PR do not need user-facing explanations in the release changelog labels Sep 18, 2026
@github-actions github-actions Bot added the docs review on hold The documentation team reviews PRs only after a PR is approved by the COSE team. label Sep 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-21T22:48:48.024061Z f21de82 New commits
ℹ️ 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.

@bruceg
bruceg requested a review from tessneau September 18, 2026 23:23

@tessneau tessneau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, nothing blocking from my end 🎉

Comment thread lib/vector-core/src/event/typed_trace/flags.rs Outdated
Comment thread lib/vector-core/src/event/typed_trace/mod.rs Outdated
Comment thread lib/vector-core/Cargo.toml Outdated
Comment thread lib/vector-core/src/event/typed_trace/enums.rs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a88e56cfbe

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/vector-core/src/event/typed_trace/flags.rs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d98233421

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/vector-core/src/event/typed_trace/flags.rs Outdated

This branch has not been deployed

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

Labels

docs review on hold The documentation team reviews PRs only after a PR is approved by the COSE team. domain: core Anything related to core crates i.e. vector-core, core-common, etc domain: traces Anything related to Vectors' trace events no-changelog Changes in this PR do not need user-facing explanations in the release changelog type: tech debt A code change that does not add user value.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants