Copyright | (c) Hardy Jones 2017 |
---|---|
License | BSD3 |
Maintainer | jones3.hardy@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Rollbar.Item.Data
Description
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
.
Constructors
Data | |
Fields
|
Instances
The place in the code where this item came from.
newtype Fingerprint Source #
How to group the item.
Constructors
Fingerprint Text |
Instances
Eq Fingerprint Source # | |
Defined in Rollbar.Item.Data | |
Show Fingerprint Source # | |
Defined in Rollbar.Item.Data Methods showsPrec :: Int -> Fingerprint -> ShowS # show :: Fingerprint -> String # showList :: [Fingerprint] -> ShowS # | |
IsString Fingerprint Source # | |
Defined in Rollbar.Item.Data Methods fromString :: String -> Fingerprint # | |
ToJSON Fingerprint Source # | |
Defined in Rollbar.Item.Data Methods toJSON :: Fingerprint -> Value # toEncoding :: Fingerprint -> Encoding # toJSONList :: [Fingerprint] -> Value # toEncodingList :: [Fingerprint] -> Encoding # | |
FromJSON Fingerprint Source # | |
Defined in Rollbar.Item.Data |
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.
Minimal complete definition
removeHeaders
Instances
RemoveHeaders ([] :: [Symbol]) Source # | |
Defined in Rollbar.Item.MissingHeaders Methods removeHeaders :: MissingHeaders [] -> RequestHeaders | |
(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders (header ': headers) Source # | |
Defined in Rollbar.Item.MissingHeaders Methods removeHeaders :: MissingHeaders (header ': headers) -> RequestHeaders |