mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
doc
This commit is contained in:
parent
f8cd53ec89
commit
ac57085d33
1 changed files with 9 additions and 4 deletions
|
|
@ -21,21 +21,26 @@ module type S = sig
|
||||||
data:(string * user_data) list ->
|
data:(string * user_data) list ->
|
||||||
string ->
|
string ->
|
||||||
span
|
span
|
||||||
|
(** Enter a new span. *)
|
||||||
|
|
||||||
val exit_span : span -> unit
|
val exit_span : span -> unit
|
||||||
|
(** Exit given span. It can't be exited again. Spans must follow
|
||||||
|
a strict stack discipline on each thread. *)
|
||||||
|
|
||||||
val message : ?span:span -> data:(string * user_data) list -> string -> unit
|
val message : ?span:span -> data:(string * user_data) list -> string -> unit
|
||||||
|
(** Emit a message with associated metadata. *)
|
||||||
|
|
||||||
val name_thread : string -> unit
|
val name_thread : string -> unit
|
||||||
(** Give a name to the current thread *)
|
(** Give a name to the current thread. *)
|
||||||
|
|
||||||
val name_process : string -> unit
|
val name_process : string -> unit
|
||||||
(** Give a name to the current process *)
|
(** Give a name to the current process. *)
|
||||||
|
|
||||||
val counter_int : string -> int -> unit
|
val counter_int : string -> int -> unit
|
||||||
(** Integer counter *)
|
(** Integer counter. *)
|
||||||
|
|
||||||
val counter_float : string -> float -> unit
|
val counter_float : string -> float -> unit
|
||||||
(** Float counter *)
|
(** Float counter. *)
|
||||||
|
|
||||||
val shutdown : unit -> unit
|
val shutdown : unit -> unit
|
||||||
(** Shutdown collector, possibly waiting for it to finish sending data. *)
|
(** Shutdown collector, possibly waiting for it to finish sending data. *)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue