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:
parent
6d4390e034
commit
3ab36074dc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue