HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleraven-haskell-0.1.4.1Haskell2010

System.Log.Raven.Interfaces

  • 1 type
  • 10 values

Core sentry interfaces

0 declarations

Message

valuemessage
  1. :: String

    Message text (no more than 1000 characters in length).

  2. -> [Value]

    Formatting arguments

  3. -> SentryRecord

    Record to update

  4. -> SentryRecord
#

sentry.interfaces.Message: A standard message consisting of a message arg, and an optional params arg for formatting.

Exception

Http

valuehttp
  1. :: String

    URL

  2. -> String

    Method

  3. -> HttpArgs

    Arguments

  4. -> Maybe String

    Query string

  5. -> Maybe String

    Cookies

  6. -> [(String, String)]

    Headers

  7. -> [(String, String)]

    Environment

  8. -> SentryRecord

    Record to update

  9. -> SentryRecord
#

sentry.interfaces.Http: The Request information is stored in the Http interface.

Sentry will explicitly look for REMOTE_ADDR in env for things which require an IP address.

The data variable should only contain the request body (not the query string). It can either be a dictionary (for standard HTTP requests) or a raw request body.

import System.Log.RavenInterfaces as SI
let upd = SI.http
            "http://absolute.uri/foo"
            "POST"
            (SI.QueryArgs [("foo", "bar")])
            (Just "hello=world")
            (Just "foo=bar")
            [("Content-Type", "text/html")]
            [("REMOTE_ADDR", "127.1.0.1")]

User

valueuser
  1. :: String

    User's unique identifier

  2. -> [(String, String)]

    Optional user data

  3. -> SentryRecord

    Record to update

  4. -> SentryRecord
#

sentry.interfaces.User: An interface which describes the authenticated User for a request.

let upd = SI.user "unique_id" [ ("username", "my_user")
                              , ("email", "foo@example.com") ]

Query

Generic interface helpers

5 declarations