module Hasura.Tracing.Reporter
( Reporter (..),
noReporter,
)
where
import Control.Monad.Trans.Control
import Hasura.Prelude
import Hasura.Tracing.Context
newtype Reporter = Reporter
{ Reporter
-> forall (m :: * -> *) a.
(MonadIO m, MonadBaseControl IO m) =>
TraceContext -> Text -> IO TraceMetadata -> m a -> m a
runReporter ::
forall m a.
(MonadIO m, MonadBaseControl IO m) =>
TraceContext ->
Text ->
IO TraceMetadata ->
m a ->
m a
}
noReporter :: Reporter
noReporter :: Reporter
noReporter = (forall (m :: * -> *) a.
(MonadIO m, MonadBaseControl IO m) =>
TraceContext -> Text -> IO TraceMetadata -> m a -> m a)
-> Reporter
Reporter \TraceContext
_ Text
_ IO TraceMetadata
_ -> m a -> m a
forall a. a -> a
id