Table of Contents

Interface IQueryGuardRedactor

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

The single point through which anything QueryGuard is about to retain or emit must pass.

public interface IQueryGuardRedactor

Remarks

Redaction is centralised rather than left to each reporter on purpose. A reporter that has to remember to redact is a reporter that will eventually forget, and adding a new one would then be a way to introduce a leak. With one redactor applied before a result is built, a reporter receives data that is already safe and cannot opt out of that.

See docs/decisions/0004-parameter-privacy.md.

Properties

Options

Gets the capture options this redactor enforces.

Methods

FilterStackTrace(string?)

Filters framework frames out of a stack trace and truncates the result.

LimitSamples<T>(IReadOnlyList<T>)

Trims a sample collection to the configured per-fingerprint limit.

RedactSql(string?)

Redacts literals in a SQL statement and truncates it to the configured limit.