From 5d3813871830c39049d6cb4a4ff6a3694adb5a9b Mon Sep 17 00:00:00 2001 From: actionshrimp Date: Thu, 24 Mar 2022 14:51:58 +0000 Subject: [PATCH] deploy: 9e0cd0acc942920ecbe0f5d055e6d04b475ff7f2 --- dev/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html b/dev/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html index c8fd671b..771bfb21 100644 --- a/dev/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html +++ b/dev/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html @@ -5,13 +5,13 @@ (string * [< `Bool of bool | `Int of int | `None | `String of string ]) list -> Opentelemetry.Proto.Trace.span list -> - Opentelemetry.Proto.Trace.resource_spans
type scope = Opentelemetry.Trace.scope = {
trace_id : Opentelemetry.Trace_id.t;
span_id : Opentelemetry.Span_id.t;
mutable events : Opentelemetry.Event.t list;
mutable attrs : Opentelemetry.Span.key_value list;
}

Scope to be used with with_.

val add_event : scope -> ( unit -> Opentelemetry.Event.t ) -> unit

Add an event to the scope. It will be aggregated into the span.

Note that this takes a function that produces an event, and will only call it if there is an instrumentation backend.

val add_attrs : scope -> ( unit -> Opentelemetry.Span.key_value list ) -> unit

Add an attr to the scope. It will be aggregated into the span.

Note that this takes a function that produces attributes, and will only call it if there is an instrumentation backend.

val emit : ?service_name:string -> ?attrs: (string * [< `Bool of bool | `Int of int | `None | `String of string ]) list -> span list -> - unit Lwt.t

Emit asynchronously

val with_ : + unit

Sync emitter

type scope = Opentelemetry.Trace.scope = {
trace_id : Opentelemetry.Trace_id.t;
span_id : Opentelemetry.Span_id.t;
mutable events : Opentelemetry.Event.t list;
mutable attrs : Opentelemetry.Span.key_value list;
}

Scope to be used with with_.

val add_event : scope -> ( unit -> Opentelemetry.Event.t ) -> unit

Add an event to the scope. It will be aggregated into the span.

Note that this takes a function that produces an event, and will only call it if there is an instrumentation backend.

val add_attrs : scope -> ( unit -> Opentelemetry.Span.key_value list ) -> unit

Add an attr to the scope. It will be aggregated into the span.

Note that this takes a function that produces attributes, and will only call it if there is an instrumentation backend.

val with_ : ?trace_state:string -> ?service_name:string -> ?attrs:Opentelemetry.Span.key_value list ->