-
Notifications
You must be signed in to change notification settings - Fork 438
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
Asynchronous metric instruments ignoring attributes #2548
Comments
I should clarify, you can simply run the observable_counter part of the example as that is the only relevant part: |
@duncanpo I am sure I am doing something wrong, as multiple people have reported it. I just used the attached foo_library, and can see the attributes getting generated:
Any idea what is expected here? |
Ah please ignore - the telemetry.sdk.version is 1.13.0 in my output above, seems somehow old sdk is getting used for me. Let me check further. |
@lalitb, this is what I see when I am running from commit cf5cdaa { |
And what I see running out of commit d32f960 { |
Describe your environment
I am using Windows, and building with Visual Studio 2019
Steps to reproduce
This issue can be reproduced by making some small changes to the "metrics_simple" example. Replace the file examples/common/metrics_foo_library/foo_library.cc with the attached version. The new file simply add some random attributes in the call to observe in the callback function. Build the example and run.
What is the expected behavior?
I expect to see some random attributes in the output
What is the actual behavior?
Attributes is always empty in the output
Additional context
This issue seems to be introduced from commit cf5cdaa
foo_library.cc.txt
The text was updated successfully, but these errors were encountered: