-
Notifications
You must be signed in to change notification settings - Fork 821
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
export resource to exporters #843
export resource to exporters #843
Conversation
Codecov Report
@@ Coverage Diff @@
## master #843 +/- ##
==========================================
+ Coverage 92.63% 94.29% +1.65%
==========================================
Files 252 255 +3
Lines 11113 11140 +27
Branches 1069 1077 +8
==========================================
+ Hits 10295 10504 +209
+ Misses 818 636 -182
|
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.
lgtm
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.
This looks good to me @mayurkale22. The other part of this work is here: #846 and we have some duplication that will need to be 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.
there are conflicts but this looks fine to me
6678784
to
1fbb2ab
Compare
Rebased with #846, PTAL. |
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.
I think the type mismatch
@@ -70,7 +73,7 @@ export function sendSpans( | |||
}, | |||
attributes: collectorExporter.attributes, | |||
}, | |||
// resource: '', not implemented | |||
resource: resource.labels, |
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.
I think this is wrong
the Resource type for collector is this:
https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-exporter-collector/src/types.ts#L270
Can you verify that you actually see the resource in collector ?
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.
I think the build would fail if the type mismatched
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.
Can you verify that you actually see the resource in collector ?
I am going to run the example and verify the behavior.
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.
I tried the basic example with Collector + Zpkin Exporter, everything is working file. However, I don't see resource/attributes in zipkin UI because Collector Zipkin is not exporting resource data.
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.
but the interface shows that the resource is not label, why this
resource: resource.labels
instead of
resource: {labels: resource.labels, type: 'some type'}
?
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.
0570ca7
to
2c50036
Compare
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.
lgtm, thx for fixing the resource
…tion (open-telemetry#843) Co-authored-by: Nathaniel Ruiz Nowell <[email protected]> Co-authored-by: Rauno Viskus <[email protected]>
Would like to get early reviews on this before completing all the work./cc @mwear