| 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 {
- srEventId :: !String
 - srMessage :: !String
 - srTimestamp :: !String
 - srLevel :: !SentryLevel
 - srLogger :: !String
 - srPlatform :: Maybe String
 - srCulprit :: Maybe String
 - srTags :: !Assoc
 - srServerName :: Maybe String
 - srModules :: !Assoc
 - srExtra :: !Assoc
 - srInterfaces :: HashMap String Value
 - srRelease :: Maybe String
 - srEnvironment :: Maybe String
 
 - 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 https://docs.sentry.io/clientdev/attributes/
Constructors
| SentryRecord | |
Fields 
  | |
Instances
newRecord :: String -> String -> String -> SentryLevel -> String -> SentryRecord Source #
Initialize a record with all required fields filled in.