Copyright | (c) Ian Duncan 2021 |
---|---|
License | BSD-3 |
Maintainer | ian@iankduncan.com |
Stability | unstable |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Warning, not all configuration options actually do what they claim yet.
Synopsis
- data HoneycombClient
- initializeHoneycomb :: MonadIO m => Config -> m HoneycombClient
- config :: Text -> DatasetName -> Config
- shutdownHoneycomb :: MonadIO m => HoneycombClient -> m ()
- event :: Event
- data Event = Event {}
- send :: (MonadIO m, HasHoneycombClient env) => env -> Event -> m ()
- type MonadHoneycomb env m = (MonadIO m, HasHoneycombClient env, MonadReader env m)
- class HasConfig a => HasHoneycombClient a where
Initializing and shutting down a HoneycombClient
data HoneycombClient Source #
Instances
initializeHoneycomb :: MonadIO m => Config -> m HoneycombClient Source #
config :: Text -> DatasetName -> Config Source #
Smart constructor with sane defaults for Honeycomb config options.
To alter options, import Honeycomb.Config
import qualified Honeycomb.Config as Config config { Config.pendingQueueSize = 512 }
Since: 0.0.1
shutdownHoneycomb :: MonadIO m => HoneycombClient -> m () Source #
Sending events
Embedding a HoneycombClient into larger applications
type MonadHoneycomb env m = (MonadIO m, HasHoneycombClient env, MonadReader env m) Source #
class HasConfig a => HasHoneycombClient a where Source #