Skip to content

Add API to pass custom data to observers #1877

@max-melentyev

Description

@max-melentyev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions