mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-06 17:29:19 +00:00
Make management.tracing.enabled are first-class property
This will allow metadata to be generated for it automatically. Closes gh-31656
This commit is contained in:
+13
@@ -30,6 +30,11 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
@ConfigurationProperties("management.tracing")
|
||||
public class TracingProperties {
|
||||
|
||||
/**
|
||||
* Whether auto-configuration of tracing is enabled.
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
/**
|
||||
* Sampling configuration.
|
||||
*/
|
||||
@@ -45,6 +50,14 @@ public class TracingProperties {
|
||||
*/
|
||||
private final Propagation propagation = new Propagation();
|
||||
|
||||
public boolean isEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Sampling getSampling() {
|
||||
return this.sampling;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user