Safe Haskell | None |
---|
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.
fromDSN :: String -> SentrySettingsSource
Transforms a service DSN into a settings. Format is:
{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}{PATH}/{PROJECT_ID}
endpointURL :: SentrySettings -> Maybe StringSource
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.
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.
newRecord :: String -> String -> String -> SentryLevel -> String -> SentryRecordSource
Initialize a record with all required fields filled in.