Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

metric: document how to use the Registry and export metrics out #1258

Open
odeke-em opened this issue May 2, 2021 · 1 comment
Open

metric: document how to use the Registry and export metrics out #1258

odeke-em opened this issue May 2, 2021 · 1 comment
Labels

Comments

@odeke-em
Copy link
Member

odeke-em commented May 2, 2021

Please answer these questions before submitting a bug report.

What version of OpenCensus are you using?

Irrelevant

What version of Go are you using?

Irrelevant

What did you do?

I am trying to use this "go.opencensus.io/metric" package to get a gauge for up metrics from the OpenTelemetry collector's prometheus receiver per open-telemetry/opentelemetry-collector#2918, but there are no examples. The only present example is incomplete in https://pkg.go.dev/go.opencensus.io/metric#example-Registry.AddInt64Gauge
Screen Shot 2021-05-02 at 3 40 12 PM

The package is challenging to use. For context I used to work on these libraries and wrote and lead a huge chunk of OpenCensus / OpenTelemetry exporters and libraries, but I can't use this package and have digging for very many hours.

What did you expect to see?

A straightforward way to use these libraries

What did you see instead?

Impossible to use them to export out metrics, and work is stalled. I think for now I am going to keep using the straightforward go.opencensus.io/stats/view code given that the OpenTelemetry collector itself uses those.

Kindly cc-ing @bogdandrutu @rakyll @alolita @Aneurysm9

@odeke-em odeke-em added the bug label May 2, 2021
@punya
Copy link
Contributor

punya commented May 3, 2021

Thanks for the feedback @odeke-em. Do you have any suggestions for how to proceed? We'll start looking into this as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants