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

Meter#Register hangs indefinitely if meter not started #1226

Open
nicks opened this issue Sep 2, 2020 · 0 comments
Open

Meter#Register hangs indefinitely if meter not started #1226

nicks opened this issue Sep 2, 2020 · 0 comments
Labels

Comments

@nicks
Copy link

nicks commented Sep 2, 2020

Please answer these questions before submitting a bug report.

What version of OpenCensus are you using?

go.opencensus.io v0.22.4

What version of Go are you using?

go version go1.14.3 linux/amd64

What did you do?

If possible, provide a recipe for reproducing the error.

package main

import (
	"go.opencensus.io/stats/view"
)

func main() {
	meter := view.NewMeter()
	_ = meter.Register()
}

What did you expect to see?

The Register() call to return

What did you see instead?

The meter.Register call hangs forever waiting on the go channel.

I didn't find anything in the documentation that suggested I needed to call Start() before doing any Register calls

Additional context

Add any other context about the problem here.

@nicks nicks added the bug label Sep 2, 2020
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

1 participant