Safe Haskell | None |
---|---|
Language | Haskell98 |
Internal representation of event record and related facilities. Keep this under a pillow when writing custom wrappers.
Synopsis
- data SentrySettings
- = SentryDisabled
- | SentrySettings {
- sentryURI :: !String
- sentryPublicKey :: !String
- sentryPrivateKey :: !String
- sentryProjectId :: !String
- fromDSN :: String -> SentrySettings
- endpointURL :: SentrySettings -> Maybe String
- data SentryService = SentryService {
- serviceSettings :: SentrySettings
- serviceDefaults :: SentryRecord -> SentryRecord
- serviceTransport :: SentrySettings -> SentryRecord -> IO ()
- serviceFallback :: SentryRecord -> IO ()
- data SentryLevel
- data SentryRecord = SentryRecord {
- srEventId :: !String
- srMessage :: !String
- srTimestamp :: !UTCTime
- srLevel :: !SentryLevel
- srLogger :: !String
- srPlatform :: Maybe String
- srCulprit :: Maybe String
- srTags :: !Assoc
- srServerName :: Maybe String
- srModules :: !Assoc
- srExtra :: HashMap String Value
- srInterfaces :: HashMap String Value
- srRelease :: Maybe String
- srEnvironment :: Maybe String
- newRecord :: String -> String -> UTCTime -> SentryLevel -> String -> SentryRecord
Documentation
data SentrySettings Source #
Sentry client settings parsed from a DSN.
SentryDisabled | |
SentrySettings | |
|
Instances
Eq SentrySettings Source # | |
Defined in System.Log.Raven.Types (==) :: SentrySettings -> SentrySettings -> Bool # (/=) :: SentrySettings -> SentrySettings -> Bool # | |
Read SentrySettings Source # | |
Defined in System.Log.Raven.Types readsPrec :: Int -> ReadS SentrySettings # readList :: ReadS [SentrySettings] # | |
Show SentrySettings Source # | |
Defined in System.Log.Raven.Types showsPrec :: Int -> SentrySettings -> ShowS # show :: SentrySettings -> String # showList :: [SentrySettings] -> ShowS # |
fromDSN :: String -> SentrySettings Source #
Transforms a service DSN into a settings. Format is:
{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}{PATH}/{PROJECT_ID}
endpointURL :: SentrySettings -> Maybe String Source #
Assemble http endpoint URL from settings.
data SentryService Source #
Misc settings packaged for easier operations.
SentryService | |
|
data SentryLevel Source #
Sentry log levels. Custom levels should be configured in Sentry or sending messages will fail.
Instances
Eq SentryLevel Source # | |
Defined in System.Log.Raven.Types (==) :: SentryLevel -> SentryLevel -> Bool # (/=) :: SentryLevel -> SentryLevel -> Bool # | |
Read SentryLevel Source # | |
Defined in System.Log.Raven.Types readsPrec :: Int -> ReadS SentryLevel # readList :: ReadS [SentryLevel] # readPrec :: ReadPrec SentryLevel # readListPrec :: ReadPrec [SentryLevel] # | |
Show SentryLevel Source # | |
Defined in System.Log.Raven.Types showsPrec :: Int -> SentryLevel -> ShowS # show :: SentryLevel -> String # showList :: [SentryLevel] -> ShowS # | |
ToJSON SentryLevel Source # | |
Defined in System.Log.Raven.Types toJSON :: SentryLevel -> Value # toEncoding :: SentryLevel -> Encoding # toJSONList :: [SentryLevel] -> Value # toEncodingList :: [SentryLevel] -> Encoding # |
data SentryRecord Source #
Event packet to be sent. See detailed field descriptions in https://docs.sentry.io/clientdev/attributes/
SentryRecord | |
|
Instances
Eq SentryRecord Source # | |
Defined in System.Log.Raven.Types (==) :: SentryRecord -> SentryRecord -> Bool # (/=) :: SentryRecord -> SentryRecord -> Bool # | |
Show SentryRecord Source # | |
Defined in System.Log.Raven.Types showsPrec :: Int -> SentryRecord -> ShowS # show :: SentryRecord -> String # showList :: [SentryRecord] -> ShowS # | |
ToJSON SentryRecord Source # | |
Defined in System.Log.Raven.Types toJSON :: SentryRecord -> Value # toEncoding :: SentryRecord -> Encoding # toJSONList :: [SentryRecord] -> Value # toEncodingList :: [SentryRecord] -> Encoding # |
newRecord :: String -> String -> UTCTime -> SentryLevel -> String -> SentryRecord Source #
Initialize a record with all required fields filled in.