Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val sexp_of_t' : t' -> Ppx_sexp_conv_lib.Sexp.t
type t = t' option
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val default : t
default
is the DSN determined from SENTRY_DSN
in the environment (or None
if it's not set or invalid)
val of_string : string -> t
of_string dsn
parses the given DSN and returns the resulting Sentry config. You should generally not use this function directly and should use Sentry.context
(or Sentry.async_context
), which looks up the DSN for you from the environment.
The DSN should look like '{PROTOCOL}://{PUBLIC_KEY}:{PRIVATE_KEY}@{HOST}/{PATH}{PROJECT_ID}'
All values except for PRIVATE_KEY
are required. PROJECT_ID
must be an integer. In general you should get this value from Sentry and should not construct it yourself.
Returns None
if the DSN is invalid.
See docs: https://docs.sentry.io/quickstart/#about-the-dsn
val arg : t Core.Command.Arg_type.t
arg
is a Command.Spec argument type which calls of_string
val arg_exn : t Core.Command.Arg_type.t
Like arg
but uses of_string_exn