-
Notifications
You must be signed in to change notification settings - Fork 785
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
Resource attributes fix #1647
Resource attributes fix #1647
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1647 +/- ##
==========================================
+ Coverage 81.90% 82.19% +0.29%
==========================================
Files 245 250 +5
Lines 6637 6763 +126
==========================================
+ Hits 5436 5559 +123
- Misses 1201 1204 +3
|
I think the existing behavior is actually correct based on the spec:
We should allow int, maybe by converting to long, but everything? Not sure about that. |
Yes. We only need to do the conversion from int to long, float to double, and nothing more. |
Thanks @CodeBlanch , I hadn't seen that part of the spec before, was just going off the Attributes section in Resource, which only mentioned that the value needed to be retrieved as a string. Will fix this tomorrow. |
We are currently not supporting the last part of the spec, about arrays of primitive type values, correct @CodeBlanch @cijothomas ? |
That's correct. I don't think there's a particular reason for that, though, maybe we should tackle in a follow-up PR? |
This is my first time working on a change that would require a rework of a unit test. Please let me know if I have done that incorrectly.
Fixes #1606 .
Changes
Resource Attributes fixed to allow the values of key-value pairs to be of any object type, matching the behavior of Activity's SetTag method.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes