vectordotdev / vectordotdev/vector

Add support for field path notation in Lua scripts

Open
#2,339 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It might be worth to consider exposing the field path notation in Lua scripts.

It it is not clear though what would be the most ergonomic Lua API for this. One possibility is to add a global vector module with get(lua_table, path) and set(lua_table, path, value) functions in it.

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 linked field path notation documentation and the existing Lua scripting API. Determine an ergonomic API for accessing nested fields, including whether a global vector module with get and set functions is appropriate. Done means the API is agreed and field path access works consistently in Lua scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, rust
Domain
observability
Issue type
Feature
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.