Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The debug-event is meant for emitting (temporarily) semi-structured data in the event stream.
val make : ?attach:Data_encoding.Json.t -> string -> t
include EVENT with type t := t
include EVENT_DEFINITION with type t := t
val section : Section.t option
Defines an optional section for the event.
Warning None
is only for legacy events and should not be used in new code.
Defines the identifier for the event. Names should be unique and are restricted to alphanumeric characters or ".@-_+=,~"
.
val pp : all_fields:bool -> block:bool -> Stdlib.Format.formatter -> t -> unit
val encoding : t Data_encoding.t
val emit :
?section:Section.t ->
t ->
unit Tezos_error_monad.Error_monad.tzresult Lwt.t
Output an event of type t
, if no sinks are listening the function won't be applied.