Package-level declarations

Types

Link copied to clipboard
data class ContentCapturePolicy(val captureInputs: Boolean = DEFAULT_CAPTURE_INPUTS, val captureOutputs: Boolean = DEFAULT_CAPTURE_OUTPUTS)

Controls whether to capture sensitive LLM content in spans. By default, all sensitive content capture is disabled per OTEL guidance.

Link copied to clipboard

Represents the type of content that can be captured or redacted.

Functions

Link copied to clipboard

Determines if content tracing is allowed for the specified content kind by checking TracingManager.contentCapturePolicy.

Link copied to clipboard

Same as orRedacted but with a ContentCapturePolicy instance taken from TracingManager.

Returns either the current string or "REDACTED" based on the provided content kind and content capture policy. The behavior depends on whether the policy allows capturing sensitive input or output content.

Link copied to clipboard

Same as orRedactedInput but with a ContentCapturePolicy instance taken from TracingManager.

Returns either this string if the ContentCapturePolicy instance is configured to capture sensitive request/response input content into span, or a "REDACTED" placeholder otherwise.

Link copied to clipboard

Same as orRedactedOutput but with a ContentCapturePolicy instance taken from TracingManager.

Returns either this string if the ContentCapturePolicy instance is configured to capture sensitive request/response output content into span, or a "REDACTED" placeholder otherwise.