OptionaldbValue to record as db.system.name (e.g. postgresql, mysql,
sqlite). When omitted, inferred from the knex client.
OptionalexceptionAutomatic exception details, independently of SQL capture.
OptionalrecordWhether to include the SQL statement as db.query.text.
The statement is taken verbatim from knex (parameter placeholders are kept; bound values are not included). Disable if your SQL itself may contain sensitive identifiers.
OptionalsanitizeOptional hook to redact / rewrite the SQL before it is recorded. Called only when recordStatement is enabled.
OptionaltracerTracer name used when resolving the OTel tracer.
Configuration for instrumentKnex.