Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- wrapSqlBackend :: MonadIO m => HashMap Text Attribute -> SqlBackend -> m SqlBackend
- wrapSqlBackend' :: MonadIO m => TracerProvider -> HashMap Text Attribute -> SqlBackend -> m SqlBackend
Documentation
:: MonadIO m | |
=> HashMap Text Attribute | Attributes that are specific to providers like MySQL, PostgreSQL, etc. |
-> SqlBackend | |
-> m SqlBackend |
Wrap a SqlBackend
with appropriate tracing context and attributes
so that queries are tracked appropriately in the tracing hierarchy.
:: MonadIO m | |
=> TracerProvider | |
-> HashMap Text Attribute | Attributes that are specific to providers like MySQL, PostgreSQL, etc. |
-> SqlBackend | |
-> m SqlBackend |
Wrap a SqlBackend
with appropriate tracing context and attributes
so that queries are tracked appropriately in the tracing hierarchy.
Orphan instances
MonadTracer m => MonadTracer (ReaderT SqlReadBackend m) Source # | |
MonadTracer m => MonadTracer (ReaderT SqlWriteBackend m) Source # | |
MonadTracer m => MonadTracer (ReaderT SqlBackend m) Source # | |
getTracer :: ReaderT SqlBackend m Tracer # |