Enum MethodSpanAttributesExtractor.EmptyAttributeBindings

    • Method Detail

      • values

        public static MethodSpanAttributesExtractor.EmptyAttributeBindings[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MethodSpanAttributesExtractor.EmptyAttributeBindings c : MethodSpanAttributesExtractor.EmptyAttributeBindings.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MethodSpanAttributesExtractor.EmptyAttributeBindings valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: AttributeBindings
        Indicates that the traced method has no parameters bound to attributes.
        Specified by:
        isEmpty in interface AttributeBindings
        Returns:
        true if the traced method has no bound parameters; otherwise false
      • apply

        public void apply​(io.opentelemetry.instrumentation.api.tracer.AttributeSetter setter,
                          Object[] args)
        Description copied from interface: AttributeBindings
        Applies the values of the method arguments as attributes on the span for the traced method.
        Specified by:
        apply in interface AttributeBindings
        Parameters:
        setter - the AttributeSetter for setting the attribute on the span
        args - the method arguments