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 | `Float of float | `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 | `Float of float | `Int of int | `None | `String of string ]) list -> span list -> unit
type scope = Opentelemetry.Scope.t = {
  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;
}
  • deprecated use Scope.t
val add_event : Opentelemetry.Scope.t -> (unit -> Opentelemetry.Event.t) -> unit
val add_attrs : Opentelemetry.Scope.t -> (unit -> Opentelemetry.key_value list) -> unit
val with_' : ?force_new_trace_id:bool -> ?trace_state:string -> ?service_name:string -> ?attrs:(string * Opentelemetry.value) list -> ?kind:Opentelemetry.Span.kind -> ?trace_id:Opentelemetry.Trace_id.t -> ?parent:Opentelemetry.Span.id -> ?scope:Opentelemetry.Scope.t -> ?links:Opentelemetry.Span_link.t list -> string -> (scope -> 'a) -> (unit -> 'a) * ((unit, string) Stdlib.result -> unit)
val with_ : ?force_new_trace_id:bool -> ?trace_state:string -> ?service_name:string -> ?attrs:(string * Opentelemetry.value) list -> ?kind:Opentelemetry.Span.kind -> ?trace_id:Opentelemetry.Trace_id.t -> ?parent:Opentelemetry.Span.id -> ?scope:Opentelemetry.Scope.t -> ?links:Opentelemetry.Span_link.t list -> string -> (Opentelemetry.Scope.t -> 'a Lwt.t) -> 'a Lwt.t

Sync span guard

OCaml

Innovation. Community. Security.