| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Datadog.Client
Description
An HTTP Client to post data to a datadog agent.
Many of our refinements are stricter than the actual requirements, to err on the side of caution, and because the actual requirements are very complex.
Synopsis
- newtype Agent m = Agent {}
- type AgentT m = Agent (ExceptT ServantError m)
- type DDText = NonEmpty && SizeLessThan 101
- data HasAlpha
- newtype MetaKey = MetaKey (Refined (DDText && Tag) Text)
- newtype MetaValue = MetaValue (Refined DDText Text)
- newtype ServiceName = ServiceName (Refined (DDText && Tag) Text)
- data Span = Span {}
- newtype SpanId = SpanId (Refined NonZero Word64)
- newtype SpanName = SpanName (Refined (DDText && HasAlpha) Text)
- data Tag
- data Trace = Trace {}
- newtype TraceId = TraceId (Refined NonZero Word64)
- newServantAgent :: (MonadIO m, MonadError ServantError m) => ClientEnv -> Agent m
Documentation
The Datadog Agent API, independent of any HTTP framework.
type AgentT m = Agent (ExceptT ServantError m) Source #
Allows users to opt-out of having a MonadError in their Monad stack. They opt-in to error handling at the points when calling the Agent. Requires users to handle errors at the point of use.
See https://discourse.haskell.org/t/local-capabilities-with-mtl/231
newtype ServiceName Source #
Instances
| Eq ServiceName Source # | |
Defined in Datadog.Client | |
| Show ServiceName Source # | |
Defined in Datadog.Client Methods showsPrec :: Int -> ServiceName -> ShowS # show :: ServiceName -> String # showList :: [ServiceName] -> ShowS # | |
Constructors
| Span | |
Constructors
| Trace | |
newServantAgent :: (MonadIO m, MonadError ServantError m) => ClientEnv -> Agent m Source #
An Agent (or AgentT) implemented by Servant.