traceSensitiveContent

Enables the capture of sensitive content (inputs and outputs) for tracing spans.

This method overrides the default behavior of sensitive content capture, which is disabled according to OpenTelemetry (OTEL) guidance. By setting the contentCapturePolicy to capture both inputs and outputs, it modifies the tracing configuration to allow the collection of this information.

Note: The ContentCapturePolicy class is used to define the capture policy. Ensure that capturing sensitive content aligns with your organization's data privacy and compliance standards before enabling this behavior.

Equivalent to:

TracingManager.withCapturingPolicy(
ContentCapturePolicy(
captureInputs = true,
captureOutputs = true,
)
)

See also