Gregor Zeitlinger
Gregor Zeitlinger
using cloc ``` --------------------------------------------------------------------------------- Language files blank comment code --------------------------------------------------------------------------------- Java 4222 48133 34902 254323 Groovy 234 3698 1488 21169 ```
@123liuziming I've just tried out integration with micrometer tracing - and [got it to work](https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/11039) Can you try if this also does the trick for this issue?
In the Java SIG meeting yesterday, we decided that we don't want to support instrumentation based on micrometer tracing - see https://docs.google.com/document/d/1WK9h4p55p8ZjPkxO75-ApI9m0wfea6ENZmMoFRvXSCw/edit#bookmark=id.q3aculj8d8qn I should have clarified that before suggesting this...
I'll descope this from spring starter GA - sounds like a longer discussion
see my answer above: https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/10648#issuecomment-2066328929
> Do we really want to make our spring boot starter depend on micrometer? No, I don't think we want to do that - so it should be `library` instead...
I've heard this feature request before, so I think it might be useful to have. As for getting started, you can look at the usages for https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/8d1ba17d295279a7ce15ba79212858cb3d9c666d/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/bootstrap/internal/CommonConfig.java#L60. You will probably...
## What happens By default, Spring Boot uses the `SimpleMeterRegistry`, which does show the value ```sh curl -s http://localhost:8080/actuator/metrics/application.started.time {"name":"application.started.time","description":"Time taken to start the application","baseUnit":"seconds","measurements":[{"statistic":"VALUE","value":0.991}],"availableTags":[{"tag":"main.application.class","values":["com.grafana.demo.DemoApplication"]}]} ``` If any metrics registry...
> There is another workaround I have mentioned in one of the linked issues. You can set `otel.springboot.micrometer.enabled=false` to make simple meter registry work again. I suppose it disables Micrometer...