vectordotdev / vectordotdev/vector

Error when invalid root key is set in `lua` transform

Open
#2,401 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

domain: processing have: should transform: lua
Dominant language
Rust
Stars
22.6k
Forks
2.3k
Avg merge
1d 7h
Merged PRs (30d)
146

Description

In https://github.com/timberio/vector/issues/2398 the user forgot to use the log key. There was no error or feedback that surfaced this error. Ideally, this would error similar to any other Lua error. I'm curious about what our options are here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported scenario in issue #2398 and trace how the Lua transform handles an invalid root key, comparing it with the way other Lua errors are surfaced. Determine the available error-reporting options and define what feedback should appear when the required log key is missing; the issue names no source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, rust
Domain
observability-sre
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.