Enum MethodSpanAttributesExtractor.EmptyAttributeBindings
- java.lang.Object
-
- java.lang.Enum<MethodSpanAttributesExtractor.EmptyAttributeBindings>
-
- io.opentelemetry.instrumentation.api.annotation.support.MethodSpanAttributesExtractor.EmptyAttributeBindings
-
- All Implemented Interfaces:
AttributeBindings,Serializable,Comparable<MethodSpanAttributesExtractor.EmptyAttributeBindings>
- Enclosing class:
- MethodSpanAttributesExtractor<REQUEST,RESPONSE>
protected static enum MethodSpanAttributesExtractor.EmptyAttributeBindings extends Enum<MethodSpanAttributesExtractor.EmptyAttributeBindings> implements AttributeBindings
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(io.opentelemetry.instrumentation.api.tracer.AttributeSetter setter, Object[] args)Applies the values of the method arguments as attributes on the span for the traced method.booleanisEmpty()Indicates that the traced method has no parameters bound to attributes.static MethodSpanAttributesExtractor.EmptyAttributeBindingsvalueOf(String name)Returns the enum constant of this type with the specified name.static MethodSpanAttributesExtractor.EmptyAttributeBindings[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodSpanAttributesExtractor.EmptyAttributeBindings INSTANCE
-
-
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 nameNullPointerException- if the argument is null
-
isEmpty
public boolean isEmpty()
Description copied from interface:AttributeBindingsIndicates that the traced method has no parameters bound to attributes.- Specified by:
isEmptyin interfaceAttributeBindings- Returns:
trueif the traced method has no bound parameters; otherwisefalse
-
apply
public void apply(io.opentelemetry.instrumentation.api.tracer.AttributeSetter setter, Object[] args)Description copied from interface:AttributeBindingsApplies the values of the method arguments as attributes on the span for the traced method.- Specified by:
applyin interfaceAttributeBindings- Parameters:
setter- theAttributeSetterfor setting the attribute on the spanargs- the method arguments
-
-