Interface AttributeBinding

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AttributeBinding
    Represents the binding of a method parameter to an attribute of a traced method.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void apply​(io.opentelemetry.instrumentation.api.tracer.AttributeSetter setter, Object arg)
      Applies the value of the method argument as an attribute on the span for the traced method.
    • Method Detail

      • apply

        void apply​(io.opentelemetry.instrumentation.api.tracer.AttributeSetter setter,
                   Object arg)
        Applies the value of the method argument as an attribute on the span for the traced method.
        Parameters:
        setter - the AttributeSetter onto which to add the attribute
        arg - the value of the method argument