Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass observation callback to an observableGauge ? #171

Closed
Djiit opened this issue Jan 3, 2022 · 2 comments
Closed

How to pass observation callback to an observableGauge ? #171

Djiit opened this issue Jan 3, 2022 · 2 comments

Comments

@Djiit
Copy link

Djiit commented Jan 3, 2022

Hey there,

it looks like I'm not able to pass a observation callback to the getObservabieGauge method, but only a name and options.

I expect to be able to pass name, options and an observation callback as in https://github.com/open-telemetry/opentelemetry-js/blob/main/experimental/packages/opentelemetry-sdk-metrics-base/examples/metrics/metrics/observer.js#L27-L33. Is this expected?

Thanks

@pragmaticivan
Copy link
Owner

Fixed, thanks!

@Djiit
Copy link
Author

Djiit commented Jan 3, 2022

That was fast! Thanks!

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

No branches or pull requests

2 participants