Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add attributes to single queries #303

Open
oliverdain opened this issue Jul 9, 2024 · 0 comments
Open

Ability to add attributes to single queries #303

oliverdain opened this issue Jul 9, 2024 · 0 comments

Comments

@oliverdain
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant