This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Commit 4714705
authored
Fix the exporter-ocagent (#366)
The `exporter-ocagent` had two critical issues which left the exporter unusable:
1. The required grpc proto files were not being referenced correctly (#174)
2. The `ConfigStream` behavior (where the ocagent can send configuration changes down to the client) was not connecting / receiving correctly from the ocagent, causing errors and spamming logs
The following changes have been applied to fix the above issues:
1. We now package the proto files for both OpenCensus and the google common proto set into the final `@opencensus/exporter-ocagent` package. The changes mostly reside in the `package.json` configuration.
2. We have removed all references to the `ConfigStream` behavior. This is a breaking change, but the ocagent exporter was not in a usable form previously, so I don't expect there to be any users directly impacted.
A few other changes have been included as well:
* The default ocagent port has been changed to `55678` to match the default OC Agent/Collector port.
* A slight reconnect delay has been added to avoid rapid reconnect attempts.
* Updated `grpc` dependency version to `1.18.0`.
* Readme / Docs update
* Changelog update1 parent d4f36b0 commit 4714705
6 files changed
Lines changed: 1615 additions & 499 deletions
File tree
- packages/opencensus-exporter-ocagent
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments