Copyright | (c) Hardy Jones 2017 |
---|---|
License | BSD3 |
Maintainer | jones3.hardy@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The majority of this module is metadata that is reported for each item.
Synopsis
- data Data body headers = Data {
- body :: Body body
- codeVersion :: Maybe CodeVersion
- context :: Maybe Context
- custom :: Maybe (HashMap Text Value)
- environment :: Environment
- fingerprint :: Maybe Fingerprint
- framework :: Maybe Framework
- language :: Hardcoded "haskell"
- level :: Level
- notifier :: Notifier
- person :: Maybe Person
- platform :: Platform
- request :: Maybe (Request headers)
- server :: Maybe Server
- timestamp :: Maybe UTCTime
- title :: Maybe Title
- uuid :: Maybe UUID4
- newtype Context = Context Text
- newtype Fingerprint = Fingerprint Text
- newtype Framework = Framework Text
- newtype Title = Title Text
- newtype UUID4 = UUID4 UUID
- class RemoveHeaders (headers :: [Symbol])
Documentation
data Data body headers Source #
The main payload of an item. Most of this is metadata.
N.B. While it's entirely possible for you to create one of these yourself,
it's usually easier to use helpers like info
and error
.
Data | |
|
Instances
The place in the code where this item came from.
newtype Fingerprint Source #
How to group the item.
Instances
Eq Fingerprint Source # | |
Defined in Rollbar.Item.Data (==) :: Fingerprint -> Fingerprint -> Bool # (/=) :: Fingerprint -> Fingerprint -> Bool # | |
Show Fingerprint Source # | |
Defined in Rollbar.Item.Data showsPrec :: Int -> Fingerprint -> ShowS # show :: Fingerprint -> String # showList :: [Fingerprint] -> ShowS # | |
IsString Fingerprint Source # | |
Defined in Rollbar.Item.Data fromString :: String -> Fingerprint # | |
ToJSON Fingerprint Source # | |
Defined in Rollbar.Item.Data toJSON :: Fingerprint -> Value # toEncoding :: Fingerprint -> Encoding # toJSONList :: [Fingerprint] -> Value # toEncodingList :: [Fingerprint] -> Encoding # | |
FromJSON Fingerprint Source # | |
Defined in Rollbar.Item.Data parseJSON :: Value -> Parser Fingerprint # parseJSONList :: Value -> Parser [Fingerprint] # |
The framework that is using this package. E.g. "scotty", "servant", "yesod"
The title of the item.
A unique identifier for each item.
class RemoveHeaders (headers :: [Symbol]) Source #
Remove the headers given from the underlying request headers.
removeHeaders
Instances
RemoveHeaders ([] :: [Symbol]) Source # | |
Defined in Rollbar.Item.MissingHeaders removeHeaders :: MissingHeaders [] -> RequestHeaders | |
(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders (header ': headers) Source # | |
Defined in Rollbar.Item.MissingHeaders removeHeaders :: MissingHeaders (header ': headers) -> RequestHeaders |