-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
#869 - export array attributes to OTLP #992
Conversation
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.
Looks good overall. Minor follow up questions.
I tried to see how this change looks when exporting traces with array attributes through the collector and visualizing them from Jaeger (using the otel-collector example). Could this be an error on the go-sdk side, the collector or on jaeger? Or is this expected given this combination? What do you think? |
It looks like the Jaeger translator in the collector doesn't have a translation for an Array type yet. Though, it looks like the collector's internal representation doesn't support this yet either. I think the level of testing you have done seems reasonable enough from a client perspective. It would be cool to include some integration testing when the support is added. |
@stefanprisca is this ready to merge, or did you want to continue investigating the integration story? |
Sorry, I didn't realize you were waiting for an answer from me. There seems to be an integration test already, covering attributes as well: otel_integration_tests. Although it just tests integers, the others should work also, since it's the same code path. Maybe it would be interesting to create more use-cases for the attributes, by testing the other types (string, bool, array, etc) as well. But I'm not sure how many benefits it would bring. Either way, I think this should be merged. Integration tests can be covered in a different issue, since we might want to have more than just for arrays. What do you think? |
No worries. I figured as much, just wanted to be sure.
Sounds good to me 👍 |
PR to resolve issue #869
toArrayAttribute(v kv.KeyValue)
function which converts each accepted array type to the otel-common equivalent