cannot set metrics temporality preference to use exponential bucket histogram
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
Using a Java app and the Java otel agent 2.8.0, when I tried to use the standalone dashboard http metrics did not display in chart and the table view said 'no metrics data found'

We use New Relic as our o11y platform, and configure the following in our apps:
```
otel.exporter.otlp.metrics.temporality.preference=delta
otel.exporter.otlp.metrics.default.histogram.aggregation=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM
```
If both of those are set as above, the graphs & table charts for http.client.request.duration and http.server.request.duration don't show data.
If I change it to (the defaults for the Java agent):
```
otel.exporter.otlp.metrics.temporality.preference=cumulative
otel.exporter.otlp.metrics.default.histogram.aggregation=EXPLICIT_BUCKET_HISTOGRAM
```
then the charts display as I expect -- percentiles, exemplars all seem happy

### Expected Behavior
If the bucket type is not supported, I'd still expect to see an error or warning in the table view.
It'd also be good to have some note in the documentation about supported formats -- should apps set cumulative or delta temporality? which histogram types are supported?
### Steps To Reproduce
ran standalone local dashboard:
```
docker run --rm -it -p 18888:18888 -p 4317:18889 -p 4318:18890 -d --name aspire-dashboard -e DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS="true" mcr.microsoft.com/dotnet/aspire-dashboard:8.1.0
```
ran my application with the following env vars to direct it to the localhost:4317
```
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
OTEL_LOGS_EXPORTER=otlp
OTEL_METRICS_EXPORTER=otlp
OTEL_TRACES_EXPORTER=otlp
OTEL_METRIC_EXPORT_INTERVAL=1000
```
### Exceptions (if any)
_No response_
### .NET Version info
_No response_
### Anything else?
Aspire dashboard version: 8.1.0
JRE version: temurin-17.0.7
Java OTel agent version: 2.8.0
Contributor guide
Assessment
This issue has not been assessed yet.