-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Migration Guide 3.16
Bruno Baptista edited this page Aug 30, 2024
·
20 revisions
Table of Contents
Note
|
We highly recommend the use of Items marked below with ⚙️ ✅ are automatically handled by |
Micrometer has been upgraded from 1.12.5 to 1.13.3. One of the changes is the use of Prometheus client v1.x, however, Quarkus will keep using the old deprecated v0.x client for longer.
This requires no changes from users.
However, is for some reason you are using the old dependency in some tests:
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus-simpleclient</artifactId>
</dependency>
Beware of using bean implementations of MeterFilter
to return dynamic content like:
@Singleton
public class MeterFilterProducer {
@Inject
RequestScopedHeader requestScopedHeader;
@Produces
@Singleton
public MeterFilter addTags() {
return new MeterFilter() {
@Override
public Meter.Id map(Meter.Id id) {
if (id.getName().startsWith("something")) {
return id.withTag(Tag.of("my-header-tag", requestScopedHeader.getHeaderValue()));
} else {
return id;
}
}
};
}
}
In Quarkus, the recommended way to add tags containing data from HTTP requests is using the HttpServerMetricsTagsContributor.