package opentelemetry-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Opentelemetry.Trace end
type span = Opentelemetry.Span.t
val make_resource_spans : ?service_name:string -> ?attrs: (string * [< `Bool of bool | `Int of int | `None | `String of string ]) list -> Opentelemetry.Proto.Trace.span list -> Opentelemetry.Proto.Trace.resource_spans
val emit : ?service_name:string -> ?attrs: (string * [< `Bool of bool | `Int of int | `None | `String of string ]) list -> span list -> unit
type scope = Opentelemetry.Trace.scope = {
  1. trace_id : Opentelemetry.Trace_id.t;
  2. span_id : Opentelemetry.Span_id.t;
  3. mutable events : Opentelemetry.Event.t list;
  4. mutable attrs : Opentelemetry.Span.key_value list;
}
val add_event : scope -> (unit -> Opentelemetry.Event.t) -> unit
val add_attrs : scope -> (unit -> Opentelemetry.Span.key_value list) -> unit
val with_ : ?trace_state:string -> ?service_name:string -> ?attrs:Opentelemetry.Span.key_value list -> ?kind:Span.kind -> ?trace_id:Trace_id.t -> ?parent:Span.id -> ?scope:scope -> ?links:(Opentelemetry.Trace_id.t * Opentelemetry.Span_id.t * string) list -> string -> (Opentelemetry.Trace.scope -> 'a Lwt.t) -> 'a Lwt.t

Sync span guard

OCaml

Innovation. Community. Security.