Class QueryGuardCaptureOptions
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
Controls exactly how much QueryGuard retains about each observed command.
public sealed class QueryGuardCaptureOptions
- Inheritance
-
QueryGuardCaptureOptions
- Inherited Members
Remarks
These defaults are part of the package's public contract, not a convenience. QueryGuard output is meant to be shared: pasted into a pull request, uploaded as a CI artifact, attached to a GitHub issue, so anything it captures should be assumed to end up somewhere public. Every default here is the least it can retain while still producing usable evidence.
Changing a default is an ADR-level decision. See
docs/decisions/0004-parameter-privacy.md.
Fields
- DefaultMaxNormalizedSqlLength
The default maximum length of retained normalized SQL, in characters.
- DefaultMaxSamplesPerFingerprint
The default number of sample records retained per fingerprint group.
Properties
- CaptureFirstStackTrace
Gets or sets a value indicating whether one filtered stack trace is captured for the first occurrence of each fingerprint. Defaults to false.
- CaptureParameterValues
Gets or sets a value indicating whether parameter values are captured. Defaults to false.
- MaxNormalizedSqlLength
Gets or sets the maximum length of retained normalized SQL, in characters. Defaults to DefaultMaxNormalizedSqlLength.
- MaxSamplesPerFingerprint
Gets or sets how many sample records are retained per fingerprint group. Defaults to DefaultMaxSamplesPerFingerprint.
- RedactNumericLiterals
Gets or sets a value indicating whether numeric literals surviving normalization are redacted. Defaults to true.
- RedactStringLiterals
Gets or sets a value indicating whether string literals surviving normalization are redacted. Defaults to true.
- StackTraceFrameFilters
Gets the namespace prefixes filtered out of a captured stack trace.
Methods
- Clone()
Creates a copy of these options.