Interface CaptureLimitsConfig.Builder

  • Method Details

    • maxHits

      The maximum number of times the instrumentation point can be hit before it is automatically disabled. Defaults to 100.

      Parameters:
      maxHits - The maximum number of times the instrumentation point can be hit before it is automatically disabled. Defaults to 100.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxStringLength

      CaptureLimitsConfig.Builder maxStringLength(Integer maxStringLength)

      The maximum length of captured string values in characters. Strings longer than this are truncated. Defaults to 128.

      Parameters:
      maxStringLength - The maximum length of captured string values in characters. Strings longer than this are truncated. Defaults to 128.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxCollectionWidth

      CaptureLimitsConfig.Builder maxCollectionWidth(Integer maxCollectionWidth)

      The maximum number of items to capture from any collection to prevent large payloads. Defaults to 10.

      Parameters:
      maxCollectionWidth - The maximum number of items to capture from any collection to prevent large payloads. Defaults to 10.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxCollectionDepth

      CaptureLimitsConfig.Builder maxCollectionDepth(Integer maxCollectionDepth)

      The maximum nesting depth to traverse inside collections. Defaults to 3.

      Parameters:
      maxCollectionDepth - The maximum nesting depth to traverse inside collections. Defaults to 3.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxStackFrames

      CaptureLimitsConfig.Builder maxStackFrames(Integer maxStackFrames)

      The maximum number of stack frames to capture in stack traces. Defaults to 2.

      Parameters:
      maxStackFrames - The maximum number of stack frames to capture in stack traces. Defaults to 2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxStackTraceSize

      CaptureLimitsConfig.Builder maxStackTraceSize(Integer maxStackTraceSize)

      The maximum total size, in bytes, of a captured stack trace. Defaults to 1000.

      Parameters:
      maxStackTraceSize - The maximum total size, in bytes, of a captured stack trace. Defaults to 1000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxObjectDepth

      CaptureLimitsConfig.Builder maxObjectDepth(Integer maxObjectDepth)

      The maximum depth for nested object traversal when capturing structured data. Defaults to 3.

      Parameters:
      maxObjectDepth - The maximum depth for nested object traversal when capturing structured data. Defaults to 3.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxFieldsPerObject

      CaptureLimitsConfig.Builder maxFieldsPerObject(Integer maxFieldsPerObject)

      The maximum number of fields to capture for any object. Defaults to 10.

      Parameters:
      maxFieldsPerObject - The maximum number of fields to capture for any object. Defaults to 10.
      Returns:
      Returns a reference to this object so that method calls can be chained together.