Expand description
rusqlite: a span and
db.client.operation.duration for every statement a connection runs.
It uses SQLite’s own trace hooks, so nothing about how the program calls rusqlite changes. SQLite reports when a statement starts running and when it finishes, with its duration; the span runs between the two, and the metric records SQLite’s duration.
SQLite’s hooks don’t say whether a statement failed, so these spans and
measurements carry no error.type. The program’s own error handling sees
failures as before.
Functions§
- instrument
- Record a client span and
db.client.operation.durationfor every statementconnectionruns, named by its query summary (SELECT users), withdb.system.namesqliteand, unless turned off withrecord_query_text, its text with literals replaced.