-
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
Collector split #1446
Collector split #1446
Conversation
…ansport layer, updated examples, fixed the metrics collector for proto, fixed bug for label
Codecov Report
@@ Coverage Diff @@
## master #1446 +/- ##
==========================================
+ Coverage 93.71% 93.74% +0.02%
==========================================
Files 149 149
Lines 4503 4505 +2
Branches 930 929 -1
==========================================
+ Hits 4220 4223 +3
+ Misses 283 282 -1
|
I think we should name the |
This is a large PR and a little difficult to review, but it seems generally right to me.
That might be confusing because we have json over http and proto over http. |
Agree, then why not |
The base is I have made proposition for naming in the corresponding issue 1429 and because no1 complained since then I used the proposed naming. Trying to change it now especially when you have submodules that were already added and then changing paths and name in many places is just painful. I would like to leave the name as they are. |
I think the name is fine as long as the readme is clear that the module exports protobuf over http |
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.
Sorry this review took so long. Even just the .ts
files is almost 50 files changed, even if it is mostly existing code that has been split.
I think the names are fine, but it would probably be nice to have documented somewhere how to choose between the 3 exporter options for people who are less familiar with the various transports and collector in general.
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.
Thanks @obecny!
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.
Although overall looks good and we are splitting the existing work, I am still a little nervous to review this one. Perhaps, in the future we should split this kind of large work into smaller PRs (if possible).
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
[![devDependencies][devDependencies-image]][devDependencies-url] | ||
[![Apache License][license-image]][license-image] | ||
|
||
This module provides exporter for web and node to be used with [opentelemetry-collector][opentelemetry-collector-url] - last tested with version **0.6.0**. |
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 tested with the collector v0.8.0 for both metrics and traces and the exporter works, if you want to update this
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.
Update: there are some errors with the metrics exporter and collector v0.8.0, i'm trying to pinpoint them
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.
It might be as collector is changing all the time as well as the proto. I would not change it yet this information, but if there is anything we need to fix I would make a new PR after this will be merged, otherwise it will be difficult to see what are the changes / fixes.
* chore: removing submodule protos from exporter-collector * chore: adding submodule opentelemetry-proto to exporter collector * chore: fixing submodule path * chore: updating proto to version v0.4.0 * chore: splitting exporter collector into 3 packages - depending on transport layer, updated examples, fixed the metrics collector for proto, fixed bug for label * chore: fixing bug with controller when shutting down * chore: ignored files * chore: fixing submodule links * chore: lint fixes - seems like some latest updates forcing extend to be in new line * chore: lint space * chore: fixing test when waiting to load proto files
* chore: removing submodule protos from exporter-collector * chore: adding submodule opentelemetry-proto to exporter collector * chore: fixing submodule path * chore: updating proto to version v0.4.0 * chore: splitting exporter collector into 3 packages - depending on transport layer, updated examples, fixed the metrics collector for proto, fixed bug for label * chore: fixing bug with controller when shutting down * chore: ignored files * chore: fixing submodule links * chore: lint fixes - seems like some latest updates forcing extend to be in new line * chore: lint space * chore: fixing test when waiting to load proto files
Which problem is this PR solving?
Short description of the changes
Splitting Collector into 3 pakages
collector-exporter-node
collector-exporter-node-proto
collector-exporter-node-grpc
Updated examples for metrics and tracing including browser