Class TracingConfigurationParameters.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withSamplingRate

        @NotNull
        public @NotNull TracingConfigurationParameters.Builder withSamplingRate​(double samplingRate)
        Builder method that allows to set sampling rate.
        Parameters:
        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).
        Returns:
        TracingConfigurationParameters instance.
      • withIncludedScopes

        @NotNull
        public @NotNull TracingConfigurationParameters.Builder withIncludedScopes​(Set<Scope> includedScopes)
        Builder method that allows to set included scopes.
        Parameters:
        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.
        Returns:
        TracingConfigurationParameters instance.