-
Notifications
You must be signed in to change notification settings - Fork 850
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
Array values for span attributes #807
Array values for span attributes #807
Conversation
Codecov Report
@@ Coverage Diff @@
## master #807 +/- ##
============================================
+ Coverage 85.55% 85.65% +0.09%
- Complexity 1066 1073 +7
============================================
Files 137 137
Lines 3932 3994 +62
Branches 348 354 +6
============================================
+ Hits 3364 3421 +57
- Misses 430 437 +7
+ Partials 138 136 -2
Continue to review full report at Codecov.
|
sdk/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java
Outdated
Show resolved
Hide resolved
looks like this needs a format |
Left a few comments. The important one for me is the one regarding |
fc7fd73
to
4dfd8b2
Compare
@carlosalberto This should be dealt with in open-telemetry/opentelemetry-specification#431 (you gave it the 0.4 milestone before the array aspect came up) |
@open-telemetry/java-approvers PTAL again since open-telemetry/opentelemetry-specification#459 was merged! I will provide a followup PR to address the |
sdk/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up (#948):
- ignore null arrays instead of replacing them with empty ones (but remove previously set attribute, if any)
- store empty arrays since those are valid values
- tests for the changes above
Looks like this needs a rebase to pick up the java11 build. |
4dfd8b2
to
e85d427
Compare
Please rebase and add an issue to make sure we keep this in sync with specs. |
e85d427
to
a9ff82c
Compare
cb82343
to
1be4815
Compare
@carlosalberto done! |
1be4815
to
84c0eb3
Compare
@thisthat In this PR, you call everything "array", but the return values are all |
@jkwatson Yes, I considered that! I also would like to have pure arrays without all the boxing. Unfortunately, AutoValue does not support arrays (see here). An array-only implementation is possible but cumbersome, so I preferred implementing this with |
@bogdandrutu I remember you had a few doubts about this in the past, so please comment, or else we will merge soon ;) (you can always fill an issue later, though) |
Let's merge this, will go with a flow and see where we will be in the future :) |
* [API] - Add Arrays for span attributes * [SDK] - Add Arrays for span attributes * [Exporters/Shim] - Add Arrays for span attributes * add tests * Adjust jaeger exporter to specification. Add tests. * Fix checkstyle naming issue * Add further tests. * Align null value behavior of attributes with spec * fix javadoc @SInCE * API must not crash on misusage of AttributeValue * API - Remove Attribute ArrayValues from Span surface * Immutable String array values for AttributeValue * Immutable values for AttributeValue arrays * ./gradlew goJF * Implement ArrayAttribute * Rebase and add tests * Adapt RecordEventsReadableSpan
This PR implements the specification introduced in open-telemetry/opentelemetry-specification#368 and resolves #801