apache / apache/cassandra-gocql-driver

Add API to pass custom data to observers

Open
#1,877 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.7k
Forks
658
PR merge metrics
No merged PRs in 30d

Description

From the discussion in #1870

What do you think about adding custom data to a query/batch that is passed to observers? We use a context.WithValue() to pass query names to observer, but this approach can lead to errors because engineers can use the same context for different queries. Would be great to have an approach when data is assigned for individual queries.

Contributor guide

Open the contributing guide

Research direction

Start by reading the discussion in #1870 and tracing the query, batch, and observer APIs mentioned in this issue. The work is done when custom data can be assigned to an individual query or batch and observers receive it without relying on a shared context.WithValue().

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, go
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.