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

how to add tag/attribute to metrics with V2 #3259

Closed
pallavibhingarkar opened this issue Jan 29, 2025 · 3 comments
Closed

how to add tag/attribute to metrics with V2 #3259

pallavibhingarkar opened this issue Jan 29, 2025 · 3 comments
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@pallavibhingarkar
Copy link

No description provided.

@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 29, 2025
@pallavibhingarkar
Copy link
Author

We are using otlp http exporter

@marcalff marcalff added the triage/needs-information Indicates an issue needs more information in order to work on it. label Jan 29, 2025
@owent
Copy link
Member

owent commented Jan 31, 2025

Just pass attributes as arguments when call ObserverResultT<T>::Observe(value, attributes...) if you are using a async mode, or just pass attributes as arguments as Record(value, attributes...).

@marcalff marcalff removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Feb 5, 2025
@marcalff
Copy link
Member

marcalff commented Feb 5, 2025

Closing, this question has been addressed.

@marcalff marcalff closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants