public static class TracingConfigurationArguments.Builder extends Object
TracingConfigurationArguments.| Constructor and Description |
|---|
Builder(TracingConfigurationSubcommand cmd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TracingConfigurationArguments |
build()
Builder's build method that produces
TracingConfigurationArguments. |
@NotNull TracingConfigurationArguments.Builder |
withIncludedScopes(Set<Scope> includedScopes)
Builder method that allows to set included scopes.
|
@NotNull TracingConfigurationArguments.Builder |
withLabel(@Nullable String lb)
Builder method that allows to set optional label attribute.
|
@NotNull TracingConfigurationArguments.Builder |
withSamplingRate(double samplingRate)
Builder method that allows to set sampling rate.
|
@NotNull TracingConfigurationArguments.Builder |
withScope(Scope scope)
Builder method that allows to set scope.
|
public Builder(TracingConfigurationSubcommand cmd)
cmd - TracingConfigurationSubcommand command.@NotNull public @NotNull TracingConfigurationArguments.Builder withScope(Scope scope)
scope - Scope of a trace's root span
to which some specific tracing configuration will be applied.@NotNull public @NotNull TracingConfigurationArguments.Builder withSamplingRate(double samplingRate)
samplingRate - Number between 0 and 1 that more or less reflects the probability
of sampling specific trace.
0 and 1 have special meaning here, 0 means never 1 means always. Default value is 0 (never).@NotNull public @NotNull TracingConfigurationArguments.Builder withLabel(@Nullable @Nullable String lb)
lb - Label of traced operation. It's an optional attribute.@NotNull public @NotNull TracingConfigurationArguments.Builder withIncludedScopes(Set<Scope> includedScopes)
includedScopes - Set of Scope that defines which sub-traces will be included in given trace.
In other words, if child's span scope is equals to parent's scope
or it belongs to the parent's span included scopes, then given child span will be attached to the current trace,
otherwise it'll be skipped.
See Span.isChainable(Scope) for more details.public TracingConfigurationArguments build()
TracingConfigurationArguments.TracingConfigurationArguments instance.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022