Class TracingConfigurationItem

    • Constructor Detail

      • TracingConfigurationItem

        public TracingConfigurationItem()
        Default constructor.
      • TracingConfigurationItem

        public TracingConfigurationItem​(Scope scope,
                                        String lb,
                                        Double samplingRate,
                                        Set<Scope> includedScopes)
        Constructor.
        Parameters:
        scope - Specifies the Scope of a trace's root span to which some specific tracing configuration will be applied.
        lb - Specifies the label of a traced operation. It's an optional attribute.
        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).
        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.
    • Method Detail

      • scope

        public Scope scope()
        Returns:
        Specifies the of a trace's root span to which some specific tracing configuration will be applied. It's a mandatory attribute.
      • label

        public String label()
        Returns:
        Specifies the label of a traced operation. It's an optional attribute.
      • samplingRate

        public Double samplingRate()
        Returns:
        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).
      • includedScopes

        public Set<Scope> includedScopes()
        Returns:
        Set of 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 for more details.