package sentry

  1. Overview
  2. Docs
type level = [
  1. | `Critical
  2. | `Error
  3. | `Warning
  4. | `Info
  5. | `Debug
]
val sexp_of_level : level -> Ppx_sexp_conv_lib.Sexp.t
type t = private {
  1. timestamp : Core_kernel.Time.t;
  2. type_ : string;
  3. message : string option;
  4. data : Yojson.Basic.json Core_kernel.String.Map.t;
  5. category : string option;
  6. level : level;
}
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val make : ?timestamp:Core_kernel.Time.t -> ?type_:string -> ?message:string -> ?data:Yojson.Basic.json Core_kernel.String.Map.t -> ?category:string -> ?level:level -> unit -> t
val make_navigation : ?timestamp:Core_kernel.Time.t -> ?message:string -> ?category:string -> ?level:level -> from:string -> to_:string -> unit -> t
val make_http : ?timestamp:Core_kernel.Time.t -> ?message:string -> ?category:string -> ?level:level -> url:string -> method_:string -> status_code:int -> reason:string -> unit -> t
val to_payload : t -> Sentry__.Payloads_t.breadcrumb
OCaml

Innovation. Community. Security.