Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ability to add attributes to single queries #303

@oliverdain

Description

@oliverdain

I'm wondering if there's any way to add attributes to individual queries. The use case is that we have a query or two that we know are slow and that's fine (e.g. an "advanced search" functionality) so we want to track things like the 99th percentile latency of all queries except the known slow ones. The ideal would be something like:

func QueryWithAttrs(ctx context.Context, attrs []otel.Attribute, query string, args ...any)

Is that possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions