mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Remove management.observations.long-task-timer.enabled
This commit removes the m.observations.long-task-timer.enabled property in favor of the existing m.metrics.observations.ignored-meters property. Closes gh-45725
This commit is contained in:
-23
@@ -45,8 +45,6 @@ public class ObservationProperties {
|
||||
*/
|
||||
private Map<String, Boolean> enable = new LinkedHashMap<>();
|
||||
|
||||
private final LongTaskTimer longTaskTimer = new LongTaskTimer();
|
||||
|
||||
public Map<String, Boolean> getEnable() {
|
||||
return this.enable;
|
||||
}
|
||||
@@ -67,10 +65,6 @@ public class ObservationProperties {
|
||||
this.keyValues = keyValues;
|
||||
}
|
||||
|
||||
public LongTaskTimer getLongTaskTimer() {
|
||||
return this.longTaskTimer;
|
||||
}
|
||||
|
||||
public static class Http {
|
||||
|
||||
private final Client client = new Client();
|
||||
@@ -141,21 +135,4 @@ public class ObservationProperties {
|
||||
|
||||
}
|
||||
|
||||
public static class LongTaskTimer {
|
||||
|
||||
/**
|
||||
* Whether to create a LongTaskTimer for every observation.
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
public boolean isEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-4
@@ -8,10 +8,8 @@
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"name": "management.observations.annotations.long-lask-timer.enabled",
|
||||
"type": "java.lang.boolean",
|
||||
"description": "Whether to create a LongTaskTimer for every observation.",
|
||||
"defaultValue": true,
|
||||
"name": "management.observations.long-task-timer.enabled",
|
||||
"type": "java.lang.Boolean",
|
||||
"deprecation": {
|
||||
"level": "error",
|
||||
"replacement": "management.metrics.observations.ignored-meters"
|
||||
|
||||
Reference in New Issue
Block a user