You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-12-05 10:42:14 +03:00
storage{,-pg}: better documentation of both crates
This commit is contained in:
@@ -18,11 +18,13 @@ use tracing::Span;
|
||||
/// `db.statement` in a tracing span
|
||||
pub trait ExecuteExt<'q, DB>: Sized {
|
||||
/// Records the statement as `db.statement` in the current span
|
||||
#[must_use]
|
||||
fn traced(self) -> Self {
|
||||
self.record(&Span::current())
|
||||
}
|
||||
|
||||
/// Records the statement as `db.statement` in the given span
|
||||
#[must_use]
|
||||
fn record(self, span: &Span) -> Self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user