Class Traceable

    • Constructor Detail

      • Traceable

        protected Traceable​(String name)
        A new traceable.
        Parameters:
        name - name of this traceable unit
    • Method Detail

      • isEnabled

        protected abstract Optional<Boolean> isEnabled()
        Whether this trace should be executed or not.
        Returns:
        true if span/component should be traced, false if it should not, empty when this flag is not explicitly configured
      • name

        public final String name()
        Name of this traceable unit.
        Returns:
        name
      • enabled

        public final boolean enabled()
        Whether this traceable should be executed or not.
        Returns:
        true if span/component should be traced, false if it should not