redpanda-data / redpanda-data/connect

Custom value injection from main.go to custom components

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

Nobody has claimed this yet.

ash pls enhancement plugin api ux
Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

The context variable passed from main.go does not pass its keys to the context parameter in the custom components' files. This disallows persistent db connections and shared connection pools between messages. This would also allow for more complex custom processors using persistent connections to external services.

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 in main.go and trace how the context variable is passed into custom components. Compare that path with the context parameter in custom component files, focusing on preserving keys and connection state between messages. Done means custom components can receive the injected values needed for persistent database connections, shared pools, or external services.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, stream-processing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.