Interface AttributeBindings
-
- All Known Implementing Classes:
MethodSpanAttributesExtractor.EmptyAttributeBindings
public interface AttributeBindingsRepresents the bindings of method parameters to attributes of a traced method.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
Indicates that the traced method has no parameters bound to attributes.- Returns:
trueif the traced method has no bound parameters; otherwisefalse
-
apply
void apply(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.- Parameters:
setter- theAttributeSetterfor setting the attribute on the spanargs- the method arguments
-
-