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

ApplicationLongGaugeBuilder missing buildObserver() bridge method #7454

Closed
breedx-splk opened this issue Dec 20, 2022 · 1 comment · Fixed by #7762
Closed

ApplicationLongGaugeBuilder missing buildObserver() bridge method #7454

breedx-splk opened this issue Dec 20, 2022 · 1 comment · Fixed by #7762
Labels
enhancement New feature or request

Comments

@breedx-splk
Copy link
Contributor

The interface has a default method, which is probably why this didn't show up.

To reproduce this problem:

Meter testMeter = GlobalOpenTelemetry.getMeter("test");
ObservableLongMeasurement b = testMeter.gaugeBuilder("b")
        .ofLongs().buildObserver();

The result is a noop gauge.

We need to implement the bridge method so that users won't always get the noop implementation.

@breedx-splk breedx-splk added the enhancement New feature or request label Dec 20, 2022
@breedx-splk
Copy link
Contributor Author

Looks like this is also true for ApplicationDoubleGaugeBuilder as well.

trask pushed a commit that referenced this issue Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant