Safe Haskell | None |
---|---|
Language | Haskell98 |
System.Log.Raven.Types
Description
Internal representation of event record and related facilities. Keep this under a pillow when writing custom wrappers.
- 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 {}
- newRecord :: String -> String -> String -> SentryLevel -> String -> SentryRecord
Documentation
data SentrySettings Source
Sentry client settings parsed from a DSN.
Constructors
SentryDisabled | |
SentrySettings | |
Fields
|
Instances
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.
Constructors
SentryService | |
Fields
|
data SentryLevel Source
Sentry log levels. Custom levels should be configured in Sentry or sending messages will fail.
Instances
data SentryRecord Source
Event packet to be sent. See detailed field descriptions in http://sentry.readthedocs.org/en/latest/developer/client/index.html#building-the-json-packet.
Constructors
SentryRecord | |
Instances
newRecord :: String -> String -> String -> SentryLevel -> String -> SentryRecord Source
Initialize a record with all required fields filled in.