-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grpc for node and support for new proto format for node and brow… (#901)
* feat: send data using grpc for collector exporter * chore: proto submodule * chore: using new proto format for browser * chore: fixing submodule * chore: adding protos submodule * chore: cleanup * chore: cleanup * chore: adding sync for submodule * chore: testing submodule * chore: updating submodule for opentelemetry-proto * chore: updates and fixes after testing with collector, refactored helper for tests * chore: reviews * chore: removing TruncatableString * chore: reviews
- Loading branch information
Showing
17 changed files
with
1,185 additions
and
1,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "packages/opentelemetry-exporter-collector/src/platform/node/protos"] | ||
path = packages/opentelemetry-exporter-collector/src/platform/node/protos | ||
url = git@github.com:open-telemetry/opentelemetry-proto.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
packages/opentelemetry-exporter-collector/src/platform/node/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
### Important! | ||
**Submodule is always pointing to certain revision number. So updating the master of the submodule repo will not have impact on your code. | ||
Knowing this if you want to change the submodule to point to a different version (when for example proto has changed) here is how to do it:** | ||
|
||
### Updating submodule to point to certain revision number | ||
|
||
1. Make sure you are in the same folder as this instruction | ||
|
||
2. Update your submodules by running this command | ||
|
||
```shell script | ||
git submodule sync --recursive | ||
git submodule update --init --recursive | ||
``` | ||
|
||
3. Find the SHA which you want to update to and copy it (the long one) | ||
the latest sha when this guide was written is `e6c3c4a74d57f870a0d781bada02cb2b2c497d14` | ||
|
||
4. Enter a submodule directory from this directory | ||
|
||
```shell script | ||
cd protos | ||
``` | ||
|
||
5. Updates files in the submodule tree to given commit: | ||
|
||
```shell script | ||
git checkout -q <sha> | ||
``` | ||
|
||
6. Return to the main directory: | ||
|
||
```shell script | ||
cd ../ | ||
``` | ||
|
||
7. Please run `git status` you should see something like `Head detached at`. This is correct, go to next step | ||
|
||
8. Now thing which is very important. You have to commit this to apply these changes | ||
|
||
```shell script | ||
git commit -am "chore: updating submodule for opentelemetry-proto" | ||
``` | ||
|
||
9. If you look now at git log you will notice that the folder `protos` has been changed and it will show what was the previous sha and what is current one |
1 change: 1 addition & 0 deletions
1
packages/opentelemetry-exporter-collector/src/platform/node/protos
Oops, something went wrong.