Skip to content

Commit

Permalink
Make management.tracing.enabled are first-class property
Browse files Browse the repository at this point in the history
This will allow metadata to be generated for it automatically.

Closes gh-31656
  • Loading branch information
wilkinsona committed Oct 3, 2022
1 parent 6d4390e commit 3ab3607
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
@ConfigurationProperties("management.tracing")
public class TracingProperties {

/**
* Whether auto-configuration of tracing is enabled.
*/
private boolean enabled = true;

/**
* Sampling configuration.
*/
Expand All @@ -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;
}
Expand Down

0 comments on commit 3ab3607

Please sign in to comment.