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

Configurable measuring interval by counter (instrument) #2200

Open
dzediar opened this issue Dec 6, 2021 Discussed in #2189 · 2 comments
Open

Configurable measuring interval by counter (instrument) #2200

dzediar opened this issue Dec 6, 2021 Discussed in #2189 · 2 comments

Comments

@dzediar
Copy link

dzediar commented Dec 6, 2021

Discussed in #2189

Originally posted by dzediar December 3, 2021
Hello,

In my application, I would like measurement intervals specific to each instrument.

In the source of MeterProviderSdk, would it be possible toadd an event / action in MeterProviderSdk.CollectObservableInstruments(), so we could disable some instrument measures if needed ?

Thanks.

@jack-berg
Copy link
Member

Possible duplicate of #1432, which was also discussed in #2120.

@jmacd
Copy link
Contributor

jmacd commented Feb 4, 2022

This is one of the reasons we require the API for registering callbacks to maintain a mapping to the asynchronous instruments that use it. In #2317 I'm proposing we admit multi-instrument callbacks, so you might have one callback to report several instruments. If you were to configure multi export intervals for those, the callbacks as often as necessary for every one of the associated metrics. I think this is an appropriate outcome.

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

4 participants