-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the same prometheus registry for both oc and otel exporters (#6297)
* share prometheus registry between oc and otel exporters * add tests * wording * more wording * add chloggen entry * assert return of view.Register * change tests to be unit tests * formats and adds todo * run gofmt * only starts http server if there is not error, go fmt again * reverts otel-config changes * fix opencensus flaky tests * use `view.RetrieveData()` to force collection * Update service/telemetry_test.go Co-authored-by: Bogdan Drutu <lazy@splunk.com> Co-authored-by: Bogdan Drutu <lazy@splunk.com>
- Loading branch information
1 parent
c0e0900
commit f4556f5
Showing
3 changed files
with
205 additions
and
29 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.chloggen/use-prometheus-registry-as-bridge-for-otel-and-oc.yaml
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,18 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
component: service | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Use the same `prometheus.Registry` for the OpenCensus and OpenTelemetry Go prometheus exporters to act as a bridge for internal telemetry" | ||
|
||
|
||
# One or more tracking issues or pull requests related to the change | ||
issues: [6297] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | ||
|
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