Failed to expose metrics

I am using spring-boot’s (v3) starter together with actuator:

<dependency>
	<groupId>com.grafana</groupId>
	<artifactId>grafana-opentelemetry-starter</artifactId>
	<version>1.3.2</version>
</dependency>
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

and configured everything according to Automatic Instrumentation of Spring Boot 3.x Applications with Grafana OpenTelemetry Starter | Opentelemetry documentation.
Everything seems to work fine (logs, traces), I do get even some metrics, but the app itself has an issue while exporting the metrics:

[grafana.net/...] i.o.e.internal.okhttp.OkHttpExporter : Failed to export metrics. Server responded with HTTP status code 400. Error message: Unable to parse response body, HTTP status message: Bad Request

Any ideas? Are assume it has something to do with prometheus format?

it looks like there is an issue with the api key.
you can check which config is used: Automatic Instrumentation of Spring Boot 3.x Applications with Grafana OpenTelemetry Starter | OpenTelemetry documentation

Why do you think it’s an key issue? I get 400 (and not 401/403) and some of the stuff being sent to grafana… Only metrics somehow fail