Skip to content

Conversation

@thomasqueirozb
Copy link
Contributor

@thomasqueirozb thomasqueirozb commented Dec 19, 2025

Summary

Creates a new vector-vrl-all crate that provides a single source of truth for all VRL functions used throughout Vector. All crates now use vector_vrl_all::all_vrl_functions() instead of manually assembling function lists, ensuring consistency and making Vector-specific VRL functions available in all contexts.

This also fixes a lot of examples from the website that were incorrect

Vector configuration

data_dir: /tmp/vector_test

sources:
  test_source:
    type: stdin
    decoding:
      codec: vrl
      vrl:
        source: |
          . = { "test": "data" }
          . = parse_dnstap!(.test)

sinks:
  test_sink:
    type: console
    inputs: [test_source]
    encoding:
      codec: json

How did you test this PR?

  • Verified all crates compile successfully
  • Tested vector vrl CLI to confirm enrichment and Vector-specific functions are now available
  • Confirmed clippy enforcement works to prevent future direct usage of vrl::stdlib::all()

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

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.

References

@github-actions github-actions bot added domain: sources Anything related to the Vector's sources domain: transforms Anything related to Vector's transform components labels Dec 19, 2025
@thomasqueirozb thomasqueirozb changed the title chore: Consolidate VRL functions into vector-vrl-all crate enhancement(vrl): consolidate VRL functions into vector-vrl-all crate Dec 19, 2025
@thomasqueirozb thomasqueirozb marked this pull request as ready for review December 19, 2025 21:44
@thomasqueirozb thomasqueirozb requested a review from a team as a code owner December 19, 2025 21:44
@thomasqueirozb thomasqueirozb requested a review from a team as a code owner December 22, 2025 18:27
@github-actions github-actions bot added the domain: external docs Anything related to Vector's external, public documentation label Dec 22, 2025
@thomasqueirozb thomasqueirozb changed the title enhancement(vrl): consolidate VRL functions into vector-vrl-all crate enhancement(vrl): consolidate all VRL functions into vector-vrl-functions crate Dec 22, 2025
@thomasqueirozb thomasqueirozb added this pull request to the merge queue Dec 22, 2025
Merged via the queue into master with commit 2af657d Dec 22, 2025
70 checks passed
@thomasqueirozb thomasqueirozb deleted the vrl-all-functions branch December 22, 2025 21:25
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2025
@pront
Copy link
Member

pront commented Dec 23, 2025

Note: set_semantic_meaning is not a secrets related function so secret_functions can be a bit misleading.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

domain: external docs Anything related to Vector's external, public documentation domain: sources Anything related to the Vector's sources domain: transforms Anything related to Vector's transform components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants