-
Notifications
You must be signed in to change notification settings - Fork 205
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
ApplicationDoubleHistogramBuilder
cannot be cast to ExtendedDoubleHistogramBuilder
#3151
Comments
Looks like Prototype Histogram advice API was release in 1.26.0. 3.4.10 Java agent is using 1.23.0. |
Hi @heyams , thanks for your response. Sorry, this was a typo and I am actually using the latest agent |
@sebastian-alfers no problem. in that case, i will investigate. thanks for the update. |
@sebastian-alfers i was able to reproduce your issue. all you need is to update
|
then you can query customMetrics table on the Application Insights portal: customMetrics
| where timestamp > ago(5m)
| where name startswith "histogram" i will add a README for you. |
Thanks you so much for putting out this effort! It seems to work, and I am getting this two relevant logs:
The first log line indicates that the custom bucket are taken into account. However I do not see a place in azure where this buckets are being exercised, e.g. when I look at logs with the query you proposed above, or when I build a custom dashboard. I am happy with the approach you proposed, but it means that the agent should not be used anymore, right? This also means I am loosing the date in "Live metrics" which seem to get pushed once I use the agent itself. Is there any option to also get back the live metrics using the custom approach proposed in the PR linked above? |
Do you see the chance we get support for custom advice boundaries via the agent at some point? It also seems that the |
Advice boundaries are not supported in Java Agent. Correct, |
Thanks! |
Expected behavior
Using the
GlobalOpenTelemetry
I want to cast ameter.histogramBuilder
into aExtendedDoubleHistogramBuilder
to be able to usebuilder.setAdvice
.Full example:
Actual behavior
This error is thrown:
To Reproduce
Run the example above with the latest version of the app insights agent attached.
System information
Please provide the following information:
Please note that this does not happen if I create OpenTelemetry manually (without the app insights java agent).
The
setAdvice
api as introduced recently here: open-telemetry/opentelemetry-java#5217.The text was updated successfully, but these errors were encountered: