Interface CodeLocation.Builder

  • Method Details

    • language

      CodeLocation.Builder language(String language)

      The programming language for this instrumentation point, such as Java, Python, or JavaScript.

      Parameters:
      language - The programming language for this instrumentation point, such as Java, Python, or JavaScript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • language

      The programming language for this instrumentation point, such as Java, Python, or JavaScript.

      Parameters:
      language - The programming language for this instrumentation point, such as Java, Python, or JavaScript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codeUnit

      CodeLocation.Builder codeUnit(String codeUnit)

      The package, module, or namespace that contains the target code, for example com.amazon.payment or payment_service.

      Parameters:
      codeUnit - The package, module, or namespace that contains the target code, for example com.amazon.payment or payment_service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • className

      CodeLocation.Builder className(String className)

      The class or type name that contains the method. This is required for Java and optional for Python module-level functions.

      Parameters:
      className - The class or type name that contains the method. This is required for Java and optional for Python module-level functions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • methodName

      CodeLocation.Builder methodName(String methodName)

      The method or function name to instrument, such as validateCreditCard or __init__.

      Parameters:
      methodName - The method or function name to instrument, such as validateCreditCard or __init__.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filePath

      CodeLocation.Builder filePath(String filePath)

      The source file path relative to the project or source root, such as src/payment/PaymentProcessor.java or src/payment/PaymentProcessor.py.

      Parameters:
      filePath - The source file path relative to the project or source root, such as src/payment/PaymentProcessor.java or src/payment/PaymentProcessor.py.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lineNumber

      CodeLocation.Builder lineNumber(Integer lineNumber)

      The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.

      Parameters:
      lineNumber - The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.