Interface CodeCaptureConfiguration.Builder

  • Method Details

    • captureArguments

      CodeCaptureConfiguration.Builder captureArguments(Collection<String> captureArguments)

      The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).

      Parameters:
      captureArguments - The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureArguments

      CodeCaptureConfiguration.Builder captureArguments(String... captureArguments)

      The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).

      Parameters:
      captureArguments - The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureReturn

      CodeCaptureConfiguration.Builder captureReturn(Boolean captureReturn)

      Whether to capture the return value. Defaults to false.

      Parameters:
      captureReturn - Whether to capture the return value. Defaults to false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureStackTrace

      CodeCaptureConfiguration.Builder captureStackTrace(Boolean captureStackTrace)

      Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.

      Parameters:
      captureStackTrace - Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureLocals

      CodeCaptureConfiguration.Builder captureLocals(Collection<String> captureLocals)

      The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.

      Parameters:
      captureLocals - The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureLocals

      CodeCaptureConfiguration.Builder captureLocals(String... captureLocals)

      The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.

      Parameters:
      captureLocals - The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureLimits

      Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.

      Parameters:
      captureLimits - Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureLimits

      Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.

      This is a convenience method that creates an instance of the CaptureLimitsConfig.Builder avoiding the need to create one manually via CaptureLimitsConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to captureLimits(CaptureLimitsConfig).

      Parameters:
      captureLimits - a consumer that will call methods on CaptureLimitsConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: