diff --git a/opentelemetry-client-ocurl/Opentelemetry_client_ocurl/index.html b/opentelemetry-client-ocurl/Opentelemetry_client_ocurl/index.html index 994f1b98..145dd501 100644 --- a/opentelemetry-client-ocurl/Opentelemetry_client_ocurl/index.html +++ b/opentelemetry-client-ocurl/Opentelemetry_client_ocurl/index.html @@ -1,5 +1,5 @@ -
Opentelemetry_client_ocurlSet http headers that are sent on every http query to the collector.
module Atomic = Opentelemetry_atomic.Atomicmodule Config : sig ... endConfiguration for the ocurl backend
val create_backend :
+Opentelemetry_client_ocurl (opentelemetry-client-ocurl.Opentelemetry_client_ocurl) Module Opentelemetry_client_ocurl
Set http headers that are sent on every http query to the collector.
module Atomic = Opentelemetry_atomic.Atomicmodule Config : sig ... endConfiguration for the ocurl backend
val create_backend :
?stop:bool Atomic.t ->
?config:Config.t ->
unit ->
diff --git a/opentelemetry-lwt/Opentelemetry_lwt/Logs/index.html b/opentelemetry-lwt/Opentelemetry_lwt/Logs/index.html
index 8f19832c..8a03bf64 100644
--- a/opentelemetry-lwt/Opentelemetry_lwt/Logs/index.html
+++ b/opentelemetry-lwt/Opentelemetry_lwt/Logs/index.html
@@ -1,49 +1,40 @@
-Logs (opentelemetry-lwt.Opentelemetry_lwt.Logs) Module Opentelemetry_lwt.Logs
include module type of struct include Opentelemetry.Proto.Logs end
Types
type severity_number = Opentelemetry_proto.Logs.severity_number = | Severity_number_unspecified| Severity_number_trace| Severity_number_trace2| Severity_number_trace3| Severity_number_trace4| Severity_number_debug| Severity_number_debug2| Severity_number_debug3| Severity_number_debug4| Severity_number_info| Severity_number_info2| Severity_number_info3| Severity_number_info4| Severity_number_warn| Severity_number_warn2| Severity_number_warn3| Severity_number_warn4| Severity_number_error| Severity_number_error2| Severity_number_error3| Severity_number_error4| Severity_number_fatal| Severity_number_fatal2| Severity_number_fatal3| Severity_number_fatal4
type log_record = Opentelemetry_proto.Logs.log_record = {time_unix_nano : int64;observed_time_unix_nano : int64;severity_number : severity_number;severity_text : string;body : Opentelemetry_proto.Common.any_value option;attributes : Opentelemetry_proto.Common.key_value list;dropped_attributes_count : int32;flags : int32;trace_id : bytes;span_id : bytes;
}type scope_logs = Opentelemetry_proto.Logs.scope_logs = {scope : Opentelemetry_proto.Common.instrumentation_scope option;log_records : log_record list;schema_url : string;
}type resource_logs = Opentelemetry_proto.Logs.resource_logs = {resource : Opentelemetry_proto.Resource.resource option;scope_logs : scope_logs list;schema_url : string;
}type log_record_flags = Opentelemetry_proto.Logs.log_record_flags = Basic values
val default_severity_number : unit -> severity_numberdefault_severity_number () is the default value for type severity_number
val default_log_record :
+Logs (opentelemetry-lwt.Opentelemetry_lwt.Logs) Module Opentelemetry_lwt.Logs
include module type of struct include Opentelemetry.Proto.Logs end
Types
type severity_number = Opentelemetry_proto.Logs.severity_number = | Severity_number_unspecified| Severity_number_trace| Severity_number_trace2| Severity_number_trace3| Severity_number_trace4| Severity_number_debug| Severity_number_debug2| Severity_number_debug3| Severity_number_debug4| Severity_number_info| Severity_number_info2| Severity_number_info3| Severity_number_info4| Severity_number_warn| Severity_number_warn2| Severity_number_warn3| Severity_number_warn4| Severity_number_error| Severity_number_error2| Severity_number_error3| Severity_number_error4| Severity_number_fatal| Severity_number_fatal2| Severity_number_fatal3| Severity_number_fatal4
type log_record = private Opentelemetry_proto.Logs.log_record = {mutable _presence : Pbrt.Bitfield.t;(*presence for 9 fields
*)mutable time_unix_nano : int64;mutable observed_time_unix_nano : int64;mutable severity_number : severity_number;mutable severity_text : string;mutable body : Opentelemetry_proto.Common.any_value option;mutable attributes : Opentelemetry_proto.Common.key_value list;mutable dropped_attributes_count : int32;mutable flags : int32;mutable trace_id : bytes;mutable span_id : bytes;mutable event_name : string;
}type scope_logs = private Opentelemetry_proto.Logs.scope_logs = {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable scope : Opentelemetry_proto.Common.instrumentation_scope option;mutable log_records : log_record list;mutable schema_url : string;
}type resource_logs = private Opentelemetry_proto.Logs.resource_logs = {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable resource : Opentelemetry_proto.Resource.resource option;mutable scope_logs : scope_logs list;mutable schema_url : string;
}type logs_data = private Opentelemetry_proto.Logs.logs_data = {mutable resource_logs : resource_logs list;
}type log_record_flags = Opentelemetry_proto.Logs.log_record_flags = Basic values
val default_severity_number : unit -> severity_numberdefault_severity_number () is a new empty value for type severity_number
val default_log_record : unit -> log_recorddefault_log_record () is a new empty value for type log_record
val default_scope_logs : unit -> scope_logsdefault_scope_logs () is a new empty value for type scope_logs
val default_resource_logs : unit -> resource_logsdefault_resource_logs () is a new empty value for type resource_logs
val default_logs_data : unit -> logs_datadefault_logs_data () is a new empty value for type logs_data
val default_log_record_flags : unit -> log_record_flagsdefault_log_record_flags () is a new empty value for type log_record_flags
Make functions
val make_log_record :
?time_unix_nano:int64 ->
?observed_time_unix_nano:int64 ->
?severity_number:severity_number ->
?severity_text:string ->
- ?body:Opentelemetry_proto.Common.any_value option ->
+ ?body:Opentelemetry_proto.Common.any_value ->
?attributes:Opentelemetry_proto.Common.key_value list ->
?dropped_attributes_count:int32 ->
?flags:int32 ->
?trace_id:bytes ->
?span_id:bytes ->
+ ?event_name:string ->
unit ->
- log_recorddefault_log_record () is the default value for type log_record
val default_scope_logs :
- ?scope:Opentelemetry_proto.Common.instrumentation_scope option ->
+ log_recordmake_log_record … () is a builder for type log_record
val copy_log_record : log_record -> log_recordval log_record_has_time_unix_nano : log_record -> boolpresence of field "time_unix_nano" in log_record
val log_record_set_time_unix_nano : log_record -> int64 -> unitset field time_unix_nano in log_record
val log_record_has_observed_time_unix_nano : log_record -> boolpresence of field "observed_time_unix_nano" in log_record
val log_record_set_observed_time_unix_nano : log_record -> int64 -> unitset field observed_time_unix_nano in log_record
val log_record_has_severity_number : log_record -> boolpresence of field "severity_number" in log_record
val log_record_set_severity_number : log_record -> severity_number -> unitset field severity_number in log_record
val log_record_has_severity_text : log_record -> boolpresence of field "severity_text" in log_record
val log_record_set_severity_text : log_record -> string -> unitset field severity_text in log_record
val log_record_set_body :
+ log_record ->
+ Opentelemetry_proto.Common.any_value ->
+ unitset field body in log_record
val log_record_set_attributes :
+ log_record ->
+ Opentelemetry_proto.Common.key_value list ->
+ unitset field attributes in log_record
val log_record_has_dropped_attributes_count : log_record -> boolpresence of field "dropped_attributes_count" in log_record
val log_record_set_dropped_attributes_count : log_record -> int32 -> unitset field dropped_attributes_count in log_record
val log_record_has_flags : log_record -> boolpresence of field "flags" in log_record
val log_record_set_flags : log_record -> int32 -> unitset field flags in log_record
val log_record_has_trace_id : log_record -> boolpresence of field "trace_id" in log_record
val log_record_set_trace_id : log_record -> bytes -> unitset field trace_id in log_record
val log_record_has_span_id : log_record -> boolpresence of field "span_id" in log_record
val log_record_set_span_id : log_record -> bytes -> unitset field span_id in log_record
val log_record_has_event_name : log_record -> boolpresence of field "event_name" in log_record
val log_record_set_event_name : log_record -> string -> unitset field event_name in log_record
val make_scope_logs :
+ ?scope:Opentelemetry_proto.Common.instrumentation_scope ->
?log_records:log_record list ->
?schema_url:string ->
unit ->
- scope_logsdefault_scope_logs () is the default value for type scope_logs
val default_resource_logs :
- ?resource:Opentelemetry_proto.Resource.resource option ->
+ scope_logsmake_scope_logs … () is a builder for type scope_logs
val copy_scope_logs : scope_logs -> scope_logsval scope_logs_set_scope :
+ scope_logs ->
+ Opentelemetry_proto.Common.instrumentation_scope ->
+ unitset field scope in scope_logs
val scope_logs_set_log_records : scope_logs -> log_record list -> unitset field log_records in scope_logs
val scope_logs_has_schema_url : scope_logs -> boolpresence of field "schema_url" in scope_logs
val scope_logs_set_schema_url : scope_logs -> string -> unitset field schema_url in scope_logs
val make_resource_logs :
+ ?resource:Opentelemetry_proto.Resource.resource ->
?scope_logs:scope_logs list ->
?schema_url:string ->
unit ->
- resource_logsdefault_resource_logs () is the default value for type resource_logs
val default_logs_data : ?resource_logs:resource_logs list -> unit -> logs_datadefault_logs_data () is the default value for type logs_data
val default_log_record_flags : unit -> log_record_flagsdefault_log_record_flags () is the default value for type log_record_flags
Make functions
val make_log_record :
- time_unix_nano:int64 ->
- observed_time_unix_nano:int64 ->
- severity_number:severity_number ->
- severity_text:string ->
- ?body:Opentelemetry_proto.Common.any_value option ->
- attributes:Opentelemetry_proto.Common.key_value list ->
- dropped_attributes_count:int32 ->
- flags:int32 ->
- trace_id:bytes ->
- span_id:bytes ->
- unit ->
- log_recordmake_log_record … () is a builder for type log_record
val make_scope_logs :
- ?scope:Opentelemetry_proto.Common.instrumentation_scope option ->
- log_records:log_record list ->
- schema_url:string ->
- unit ->
- scope_logsmake_scope_logs … () is a builder for type scope_logs
val make_resource_logs :
- ?resource:Opentelemetry_proto.Resource.resource option ->
- scope_logs:scope_logs list ->
- schema_url:string ->
- unit ->
- resource_logsmake_resource_logs … () is a builder for type resource_logs
val make_logs_data : resource_logs:resource_logs list -> unit -> logs_datamake_logs_data … () is a builder for type logs_data
Formatters
val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unitpp_severity_number v formats v
val pp_log_record : Stdlib.Format.formatter -> log_record -> unitpp_log_record v formats v
val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unitpp_scope_logs v formats v
val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unitpp_resource_logs v formats v
val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unitpp_logs_data v formats v
val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unitpp_log_record_flags v formats v
Protobuf Encoding
val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unitencode_pb_severity_number v encoder encodes v with the given encoder
val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unitencode_pb_log_record v encoder encodes v with the given encoder
val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unitencode_pb_scope_logs v encoder encodes v with the given encoder
val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unitencode_pb_resource_logs v encoder encodes v with the given encoder
val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unitencode_pb_logs_data v encoder encodes v with the given encoder
val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unitencode_pb_log_record_flags v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_severity_number : Pbrt.Decoder.t -> severity_numberdecode_pb_severity_number decoder decodes a severity_number binary value from decoder
val decode_pb_log_record : Pbrt.Decoder.t -> log_recorddecode_pb_log_record decoder decodes a log_record binary value from decoder
val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logsdecode_pb_scope_logs decoder decodes a scope_logs binary value from decoder
val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logsdecode_pb_resource_logs decoder decodes a resource_logs binary value from decoder
val decode_pb_logs_data : Pbrt.Decoder.t -> logs_datadecode_pb_logs_data decoder decodes a logs_data binary value from decoder
val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flagsdecode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder
include module type of struct include Opentelemetry.Logs end
type t = Opentelemetry_proto.Logs.log_recordtype severity = Opentelemetry_proto.Logs.severity_number = | Severity_number_unspecified| Severity_number_trace| Severity_number_trace2| Severity_number_trace3| Severity_number_trace4| Severity_number_debug| Severity_number_debug2| Severity_number_debug3| Severity_number_debug4| Severity_number_info| Severity_number_info2| Severity_number_info3| Severity_number_info4| Severity_number_warn| Severity_number_warn2| Severity_number_warn3| Severity_number_warn4| Severity_number_error| Severity_number_error2| Severity_number_error3| Severity_number_error4| Severity_number_fatal| Severity_number_fatal2| Severity_number_fatal3| Severity_number_fatal4
Severity level of a log event
val pp_severity :
+ resource_logsmake_resource_logs … () is a builder for type resource_logs
val copy_resource_logs : resource_logs -> resource_logsval resource_logs_set_resource :
+ resource_logs ->
+ Opentelemetry_proto.Resource.resource ->
+ unitset field resource in resource_logs
val resource_logs_set_scope_logs : resource_logs -> scope_logs list -> unitset field scope_logs in resource_logs
val resource_logs_has_schema_url : resource_logs -> boolpresence of field "schema_url" in resource_logs
val resource_logs_set_schema_url : resource_logs -> string -> unitset field schema_url in resource_logs
val make_logs_data : ?resource_logs:resource_logs list -> unit -> logs_datamake_logs_data … () is a builder for type logs_data
val logs_data_set_resource_logs : logs_data -> resource_logs list -> unitset field resource_logs in logs_data
Formatters
val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unitpp_severity_number v formats v
val pp_log_record : Stdlib.Format.formatter -> log_record -> unitpp_log_record v formats v
val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unitpp_scope_logs v formats v
val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unitpp_resource_logs v formats v
val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unitpp_logs_data v formats v
val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unitpp_log_record_flags v formats v
Protobuf Encoding
val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unitencode_pb_severity_number v encoder encodes v with the given encoder
val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unitencode_pb_log_record v encoder encodes v with the given encoder
val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unitencode_pb_scope_logs v encoder encodes v with the given encoder
val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unitencode_pb_resource_logs v encoder encodes v with the given encoder
val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unitencode_pb_logs_data v encoder encodes v with the given encoder
val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unitencode_pb_log_record_flags v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_severity_number : Pbrt.Decoder.t -> severity_numberdecode_pb_severity_number decoder decodes a severity_number binary value from decoder
val decode_pb_log_record : Pbrt.Decoder.t -> log_recorddecode_pb_log_record decoder decodes a log_record binary value from decoder
val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logsdecode_pb_scope_logs decoder decodes a scope_logs binary value from decoder
val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logsdecode_pb_resource_logs decoder decodes a resource_logs binary value from decoder
val decode_pb_logs_data : Pbrt.Decoder.t -> logs_datadecode_pb_logs_data decoder decodes a logs_data binary value from decoder
val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flagsdecode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder
include module type of struct include Opentelemetry.Logs end
type t = Opentelemetry_proto.Logs.log_recordtype severity = Opentelemetry_proto.Logs.severity_number = | Severity_number_unspecified| Severity_number_trace| Severity_number_trace2| Severity_number_trace3| Severity_number_trace4| Severity_number_debug| Severity_number_debug2| Severity_number_debug3| Severity_number_debug4| Severity_number_info| Severity_number_info2| Severity_number_info3| Severity_number_info4| Severity_number_warn| Severity_number_warn2| Severity_number_warn3| Severity_number_warn4| Severity_number_error| Severity_number_error2| Severity_number_error3| Severity_number_error4| Severity_number_fatal| Severity_number_fatal2| Severity_number_fatal3| Severity_number_fatal4
Severity level of a log event
val pp_severity :
Stdlib.Format.formatter ->
Opentelemetry_proto.Logs.severity_number ->
unittype flags = Opentelemetry_proto.Logs.log_record_flags = val pp_flags :
diff --git a/opentelemetry-lwt/Opentelemetry_lwt/Metrics/index.html b/opentelemetry-lwt/Opentelemetry_lwt/Metrics/index.html
index 11039db4..10474b6e 100644
--- a/opentelemetry-lwt/Opentelemetry_lwt/Metrics/index.html
+++ b/opentelemetry-lwt/Opentelemetry_lwt/Metrics/index.html
@@ -50,7 +50,7 @@
list ->
?exemplars:Opentelemetry.Proto.Metrics.exemplar list ->
?explicit_bounds:float list ->
- ?sum:float option ->
+ ?sum:float ->
bucket_counts:int64 list ->
count:int64 ->
unit ->
diff --git a/opentelemetry/Opentelemetry/Metrics/index.html b/opentelemetry/Opentelemetry/Metrics/index.html
index 4f9ec197..a1aa39ef 100644
--- a/opentelemetry/Opentelemetry/Metrics/index.html
+++ b/opentelemetry/Opentelemetry/Metrics/index.html
@@ -48,7 +48,7 @@
list ->
?exemplars:Proto.Metrics.exemplar list ->
?explicit_bounds:float list ->
- ?sum:float option ->
+ ?sum:float ->
bucket_counts:int64 list ->
count:int64 ->
unit ->
diff --git a/opentelemetry/Opentelemetry/Span_status/index.html b/opentelemetry/Opentelemetry/Span_status/index.html
index d712d8f5..296635fb 100644
--- a/opentelemetry/Opentelemetry/Span_status/index.html
+++ b/opentelemetry/Opentelemetry/Span_status/index.html
@@ -1,2 +1,2 @@
-Span_status (opentelemetry.Opentelemetry.Span_status) Module Opentelemetry.Span_status
+Span_status (opentelemetry.Opentelemetry.Span_status) Module Opentelemetry.Span_status
type t = private Proto.Trace.status = {mutable _presence : Pbrt.Bitfield.t;mutable message : string;mutable code : Proto.Trace.status_status_code;
}
diff --git a/opentelemetry/Opentelemetry_proto/Common/index.html b/opentelemetry/Opentelemetry_proto/Common/index.html
index 77cf9d54..852edfa1 100644
--- a/opentelemetry/Opentelemetry_proto/Common/index.html
+++ b/opentelemetry/Opentelemetry_proto/Common/index.html
@@ -1,24 +1,28 @@
-Common (opentelemetry.Opentelemetry_proto.Common) Module Opentelemetry_proto.Common
Code for common.proto
Types
type any_value = | String_value of string| Bool_value of bool| Int_value of int64| Double_value of float| Array_value of array_value| Kvlist_value of key_value_list| Bytes_value of bytes
type instrumentation_scope = {name : string;version : string;attributes : key_value list;dropped_attributes_count : int32;
}Basic values
val default_any_value : unit -> any_valuedefault_any_value () is the default value for type any_value
val default_array_value : ?values:any_value list -> unit -> array_valuedefault_array_value () is the default value for type array_value
val default_key_value_list : ?values:key_value list -> unit -> key_value_listdefault_key_value_list () is the default value for type key_value_list
default_key_value () is the default value for type key_value
val default_instrumentation_scope :
+Common (opentelemetry.Opentelemetry_proto.Common) Module Opentelemetry_proto.Common
Code for common.proto
Types
type any_value = | String_value of string| Bool_value of bool| Int_value of int64| Double_value of float| Array_value of array_value| Kvlist_value of key_value_list| Bytes_value of bytes
and key_value = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable key : string;mutable value : any_value option;
}type instrumentation_scope = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 3 fields
*)mutable name : string;mutable version : string;mutable attributes : key_value list;mutable dropped_attributes_count : int32;
}type entity_ref = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable schema_url : string;mutable type_ : string;mutable id_keys : string list;mutable description_keys : string list;
}Basic values
val default_any_value : unit -> any_valuedefault_any_value () is a new empty value for type any_value
val default_array_value : unit -> array_valuedefault_array_value () is a new empty value for type array_value
val default_key_value_list : unit -> key_value_listdefault_key_value_list () is a new empty value for type key_value_list
val default_key_value : unit -> key_valuedefault_key_value () is a new empty value for type key_value
val default_instrumentation_scope : unit -> instrumentation_scopedefault_instrumentation_scope () is a new empty value for type instrumentation_scope
val default_entity_ref : unit -> entity_refdefault_entity_ref () is a new empty value for type entity_ref
Make functions
val make_array_value : ?values:any_value list -> unit -> array_valuemake_array_value … () is a builder for type array_value
val copy_array_value : array_value -> array_valueval array_value_set_values : array_value -> any_value list -> unitset field values in array_value
val make_key_value_list : ?values:key_value list -> unit -> key_value_listmake_key_value_list … () is a builder for type key_value_list
val copy_key_value_list : key_value_list -> key_value_listval key_value_list_set_values : key_value_list -> key_value list -> unitset field values in key_value_list
make_key_value … () is a builder for type key_value
val key_value_has_key : key_value -> boolpresence of field "key" in key_value
val key_value_set_key : key_value -> string -> unitset field key in key_value
val make_instrumentation_scope :
?name:string ->
?version:string ->
?attributes:key_value list ->
?dropped_attributes_count:int32 ->
unit ->
- instrumentation_scopedefault_instrumentation_scope () is the default value for type instrumentation_scope
Make functions
val make_array_value : values:any_value list -> unit -> array_valuemake_array_value … () is a builder for type array_value
val make_key_value_list : values:key_value list -> unit -> key_value_listmake_key_value_list … () is a builder for type key_value_list
make_key_value … () is a builder for type key_value
val make_instrumentation_scope :
- name:string ->
- version:string ->
- attributes:key_value list ->
- dropped_attributes_count:int32 ->
+ instrumentation_scopemake_instrumentation_scope … () is a builder for type instrumentation_scope
val copy_instrumentation_scope : instrumentation_scope -> instrumentation_scopeval instrumentation_scope_has_name : instrumentation_scope -> boolpresence of field "name" in instrumentation_scope
val instrumentation_scope_set_name : instrumentation_scope -> string -> unitset field name in instrumentation_scope
val instrumentation_scope_has_version : instrumentation_scope -> boolpresence of field "version" in instrumentation_scope
val instrumentation_scope_set_version : instrumentation_scope -> string -> unitset field version in instrumentation_scope
val instrumentation_scope_set_attributes :
+ instrumentation_scope ->
+ key_value list ->
+ unitset field attributes in instrumentation_scope
val instrumentation_scope_has_dropped_attributes_count :
+ instrumentation_scope ->
+ boolpresence of field "dropped_attributes_count" in instrumentation_scope
val instrumentation_scope_set_dropped_attributes_count :
+ instrumentation_scope ->
+ int32 ->
+ unitset field dropped_attributes_count in instrumentation_scope
val make_entity_ref :
+ ?schema_url:string ->
+ ?type_:string ->
+ ?id_keys:string list ->
+ ?description_keys:string list ->
unit ->
- instrumentation_scopemake_instrumentation_scope … () is a builder for type instrumentation_scope
Formatters
val pp_any_value : Stdlib.Format.formatter -> any_value -> unitpp_any_value v formats v
val pp_array_value : Stdlib.Format.formatter -> array_value -> unitpp_array_value v formats v
val pp_key_value_list : Stdlib.Format.formatter -> key_value_list -> unitpp_key_value_list v formats v
val pp_key_value : Stdlib.Format.formatter -> key_value -> unitpp_key_value v formats v
val pp_instrumentation_scope :
+ entity_refmake_entity_ref … () is a builder for type entity_ref
val copy_entity_ref : entity_ref -> entity_refval entity_ref_has_schema_url : entity_ref -> boolpresence of field "schema_url" in entity_ref
val entity_ref_set_schema_url : entity_ref -> string -> unitset field schema_url in entity_ref
val entity_ref_has_type_ : entity_ref -> boolpresence of field "type_" in entity_ref
val entity_ref_set_type_ : entity_ref -> string -> unitset field type_ in entity_ref
val entity_ref_set_id_keys : entity_ref -> string list -> unitset field id_keys in entity_ref
val entity_ref_set_description_keys : entity_ref -> string list -> unitset field description_keys in entity_ref
Formatters
val pp_any_value : Stdlib.Format.formatter -> any_value -> unitpp_any_value v formats v
val pp_array_value : Stdlib.Format.formatter -> array_value -> unitpp_array_value v formats v
val pp_key_value_list : Stdlib.Format.formatter -> key_value_list -> unitpp_key_value_list v formats v
val pp_key_value : Stdlib.Format.formatter -> key_value -> unitpp_key_value v formats v
val pp_instrumentation_scope :
Stdlib.Format.formatter ->
instrumentation_scope ->
- unitpp_instrumentation_scope v formats v
Protobuf Encoding
val encode_pb_any_value : any_value -> Pbrt.Encoder.t -> unitencode_pb_any_value v encoder encodes v with the given encoder
val encode_pb_array_value : array_value -> Pbrt.Encoder.t -> unitencode_pb_array_value v encoder encodes v with the given encoder
val encode_pb_key_value_list : key_value_list -> Pbrt.Encoder.t -> unitencode_pb_key_value_list v encoder encodes v with the given encoder
val encode_pb_key_value : key_value -> Pbrt.Encoder.t -> unitencode_pb_key_value v encoder encodes v with the given encoder
val pp_entity_ref : Stdlib.Format.formatter -> entity_ref -> unitpp_entity_ref v formats v
Protobuf Encoding
val encode_pb_any_value : any_value -> Pbrt.Encoder.t -> unitencode_pb_any_value v encoder encodes v with the given encoder
val encode_pb_array_value : array_value -> Pbrt.Encoder.t -> unitencode_pb_array_value v encoder encodes v with the given encoder
val encode_pb_key_value_list : key_value_list -> Pbrt.Encoder.t -> unitencode_pb_key_value_list v encoder encodes v with the given encoder
val encode_pb_key_value : key_value -> Pbrt.Encoder.t -> unitencode_pb_key_value v encoder encodes v with the given encoder
val encode_pb_instrumentation_scope :
instrumentation_scope ->
Pbrt.Encoder.t ->
- unitencode_pb_instrumentation_scope v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_any_value : Pbrt.Decoder.t -> any_valuedecode_pb_any_value decoder decodes a any_value binary value from decoder
val decode_pb_array_value : Pbrt.Decoder.t -> array_valuedecode_pb_array_value decoder decodes a array_value binary value from decoder
val decode_pb_key_value_list : Pbrt.Decoder.t -> key_value_listdecode_pb_key_value_list decoder decodes a key_value_list binary value from decoder
val decode_pb_key_value : Pbrt.Decoder.t -> key_valuedecode_pb_key_value decoder decodes a key_value binary value from decoder
val decode_pb_instrumentation_scope : Pbrt.Decoder.t -> instrumentation_scopedecode_pb_instrumentation_scope decoder decodes a instrumentation_scope binary value from decoder
+ unitencode_pb_instrumentation_scope v encoder encodes v with the given encoder
val encode_pb_entity_ref : entity_ref -> Pbrt.Encoder.t -> unitencode_pb_entity_ref v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_any_value : Pbrt.Decoder.t -> any_valuedecode_pb_any_value decoder decodes a any_value binary value from decoder
val decode_pb_array_value : Pbrt.Decoder.t -> array_valuedecode_pb_array_value decoder decodes a array_value binary value from decoder
val decode_pb_key_value_list : Pbrt.Decoder.t -> key_value_listdecode_pb_key_value_list decoder decodes a key_value_list binary value from decoder
val decode_pb_key_value : Pbrt.Decoder.t -> key_valuedecode_pb_key_value decoder decodes a key_value binary value from decoder
val decode_pb_instrumentation_scope : Pbrt.Decoder.t -> instrumentation_scopedecode_pb_instrumentation_scope decoder decodes a instrumentation_scope binary value from decoder
val decode_pb_entity_ref : Pbrt.Decoder.t -> entity_refdecode_pb_entity_ref decoder decodes a entity_ref binary value from decoder
diff --git a/opentelemetry/Opentelemetry_proto/Logs/index.html b/opentelemetry/Opentelemetry_proto/Logs/index.html
index 611a0353..84442d86 100644
--- a/opentelemetry/Opentelemetry_proto/Logs/index.html
+++ b/opentelemetry/Opentelemetry_proto/Logs/index.html
@@ -1,46 +1,25 @@
-Logs (opentelemetry.Opentelemetry_proto.Logs) Module Opentelemetry_proto.Logs
Code for logs.proto
Types
type severity_number = | Severity_number_unspecified| Severity_number_trace| Severity_number_trace2| Severity_number_trace3| Severity_number_trace4| Severity_number_debug| Severity_number_debug2| Severity_number_debug3| Severity_number_debug4| Severity_number_info| Severity_number_info2| Severity_number_info3| Severity_number_info4| Severity_number_warn| Severity_number_warn2| Severity_number_warn3| Severity_number_warn4| Severity_number_error| Severity_number_error2| Severity_number_error3| Severity_number_error4| Severity_number_fatal| Severity_number_fatal2| Severity_number_fatal3| Severity_number_fatal4
type log_record = {time_unix_nano : int64;observed_time_unix_nano : int64;severity_number : severity_number;severity_text : string;body : Common.any_value option;attributes : Common.key_value list;dropped_attributes_count : int32;flags : int32;trace_id : bytes;span_id : bytes;
}type scope_logs = {scope : Common.instrumentation_scope option;log_records : log_record list;schema_url : string;
}type resource_logs = {resource : Resource.resource option;scope_logs : scope_logs list;schema_url : string;
}Basic values
val default_severity_number : unit -> severity_numberdefault_severity_number () is the default value for type severity_number
val default_log_record :
+Logs (opentelemetry.Opentelemetry_proto.Logs) Module Opentelemetry_proto.Logs
Code for logs.proto
Types
type severity_number = | Severity_number_unspecified| Severity_number_trace| Severity_number_trace2| Severity_number_trace3| Severity_number_trace4| Severity_number_debug| Severity_number_debug2| Severity_number_debug3| Severity_number_debug4| Severity_number_info| Severity_number_info2| Severity_number_info3| Severity_number_info4| Severity_number_warn| Severity_number_warn2| Severity_number_warn3| Severity_number_warn4| Severity_number_error| Severity_number_error2| Severity_number_error3| Severity_number_error4| Severity_number_fatal| Severity_number_fatal2| Severity_number_fatal3| Severity_number_fatal4
type log_record = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 9 fields
*)mutable time_unix_nano : int64;mutable observed_time_unix_nano : int64;mutable severity_number : severity_number;mutable severity_text : string;mutable body : Common.any_value option;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable flags : int32;mutable trace_id : bytes;mutable span_id : bytes;mutable event_name : string;
}type scope_logs = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable scope : Common.instrumentation_scope option;mutable log_records : log_record list;mutable schema_url : string;
}type resource_logs = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable resource : Resource.resource option;mutable scope_logs : scope_logs list;mutable schema_url : string;
}Basic values
val default_severity_number : unit -> severity_numberdefault_severity_number () is a new empty value for type severity_number
val default_log_record : unit -> log_recorddefault_log_record () is a new empty value for type log_record
val default_scope_logs : unit -> scope_logsdefault_scope_logs () is a new empty value for type scope_logs
val default_resource_logs : unit -> resource_logsdefault_resource_logs () is a new empty value for type resource_logs
val default_logs_data : unit -> logs_datadefault_logs_data () is a new empty value for type logs_data
val default_log_record_flags : unit -> log_record_flagsdefault_log_record_flags () is a new empty value for type log_record_flags
Make functions
val make_log_record :
?time_unix_nano:int64 ->
?observed_time_unix_nano:int64 ->
?severity_number:severity_number ->
?severity_text:string ->
- ?body:Common.any_value option ->
+ ?body:Common.any_value ->
?attributes:Common.key_value list ->
?dropped_attributes_count:int32 ->
?flags:int32 ->
?trace_id:bytes ->
?span_id:bytes ->
+ ?event_name:string ->
unit ->
- log_recorddefault_log_record () is the default value for type log_record
val default_scope_logs :
- ?scope:Common.instrumentation_scope option ->
+ log_recordmake_log_record … () is a builder for type log_record
val copy_log_record : log_record -> log_recordval log_record_has_time_unix_nano : log_record -> boolpresence of field "time_unix_nano" in log_record
val log_record_set_time_unix_nano : log_record -> int64 -> unitset field time_unix_nano in log_record
val log_record_has_observed_time_unix_nano : log_record -> boolpresence of field "observed_time_unix_nano" in log_record
val log_record_set_observed_time_unix_nano : log_record -> int64 -> unitset field observed_time_unix_nano in log_record
val log_record_has_severity_number : log_record -> boolpresence of field "severity_number" in log_record
val log_record_set_severity_number : log_record -> severity_number -> unitset field severity_number in log_record
val log_record_has_severity_text : log_record -> boolpresence of field "severity_text" in log_record
val log_record_set_severity_text : log_record -> string -> unitset field severity_text in log_record
val log_record_set_body : log_record -> Common.any_value -> unitset field body in log_record
val log_record_set_attributes : log_record -> Common.key_value list -> unitset field attributes in log_record
val log_record_has_dropped_attributes_count : log_record -> boolpresence of field "dropped_attributes_count" in log_record
val log_record_set_dropped_attributes_count : log_record -> int32 -> unitset field dropped_attributes_count in log_record
val log_record_has_flags : log_record -> boolpresence of field "flags" in log_record
val log_record_set_flags : log_record -> int32 -> unitset field flags in log_record
val log_record_has_trace_id : log_record -> boolpresence of field "trace_id" in log_record
val log_record_set_trace_id : log_record -> bytes -> unitset field trace_id in log_record
val log_record_has_span_id : log_record -> boolpresence of field "span_id" in log_record
val log_record_set_span_id : log_record -> bytes -> unitset field span_id in log_record
val log_record_has_event_name : log_record -> boolpresence of field "event_name" in log_record
val log_record_set_event_name : log_record -> string -> unitset field event_name in log_record
val make_scope_logs :
+ ?scope:Common.instrumentation_scope ->
?log_records:log_record list ->
?schema_url:string ->
unit ->
- scope_logsdefault_scope_logs () is the default value for type scope_logs
val default_resource_logs :
- ?resource:Resource.resource option ->
+ scope_logsmake_scope_logs … () is a builder for type scope_logs
val copy_scope_logs : scope_logs -> scope_logsval scope_logs_set_scope : scope_logs -> Common.instrumentation_scope -> unitset field scope in scope_logs
val scope_logs_set_log_records : scope_logs -> log_record list -> unitset field log_records in scope_logs
val scope_logs_has_schema_url : scope_logs -> boolpresence of field "schema_url" in scope_logs
val scope_logs_set_schema_url : scope_logs -> string -> unitset field schema_url in scope_logs
val make_resource_logs :
+ ?resource:Resource.resource ->
?scope_logs:scope_logs list ->
?schema_url:string ->
unit ->
- resource_logsdefault_resource_logs () is the default value for type resource_logs
val default_logs_data : ?resource_logs:resource_logs list -> unit -> logs_datadefault_logs_data () is the default value for type logs_data
val default_log_record_flags : unit -> log_record_flagsdefault_log_record_flags () is the default value for type log_record_flags
Make functions
val make_log_record :
- time_unix_nano:int64 ->
- observed_time_unix_nano:int64 ->
- severity_number:severity_number ->
- severity_text:string ->
- ?body:Common.any_value option ->
- attributes:Common.key_value list ->
- dropped_attributes_count:int32 ->
- flags:int32 ->
- trace_id:bytes ->
- span_id:bytes ->
- unit ->
- log_recordmake_log_record … () is a builder for type log_record
val make_scope_logs :
- ?scope:Common.instrumentation_scope option ->
- log_records:log_record list ->
- schema_url:string ->
- unit ->
- scope_logsmake_scope_logs … () is a builder for type scope_logs
val make_resource_logs :
- ?resource:Resource.resource option ->
- scope_logs:scope_logs list ->
- schema_url:string ->
- unit ->
- resource_logsmake_resource_logs … () is a builder for type resource_logs
val make_logs_data : resource_logs:resource_logs list -> unit -> logs_datamake_logs_data … () is a builder for type logs_data
Formatters
val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unitpp_severity_number v formats v
val pp_log_record : Stdlib.Format.formatter -> log_record -> unitpp_log_record v formats v
val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unitpp_scope_logs v formats v
val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unitpp_resource_logs v formats v
val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unitpp_logs_data v formats v
val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unitpp_log_record_flags v formats v
Protobuf Encoding
val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unitencode_pb_severity_number v encoder encodes v with the given encoder
val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unitencode_pb_log_record v encoder encodes v with the given encoder
val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unitencode_pb_scope_logs v encoder encodes v with the given encoder
val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unitencode_pb_resource_logs v encoder encodes v with the given encoder
val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unitencode_pb_logs_data v encoder encodes v with the given encoder
val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unitencode_pb_log_record_flags v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_severity_number : Pbrt.Decoder.t -> severity_numberdecode_pb_severity_number decoder decodes a severity_number binary value from decoder
val decode_pb_log_record : Pbrt.Decoder.t -> log_recorddecode_pb_log_record decoder decodes a log_record binary value from decoder
val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logsdecode_pb_scope_logs decoder decodes a scope_logs binary value from decoder
val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logsdecode_pb_resource_logs decoder decodes a resource_logs binary value from decoder
val decode_pb_logs_data : Pbrt.Decoder.t -> logs_datadecode_pb_logs_data decoder decodes a logs_data binary value from decoder
val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flagsdecode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder
+ resource_logsmake_resource_logs … () is a builder for type resource_logs
val copy_resource_logs : resource_logs -> resource_logsval resource_logs_set_resource : resource_logs -> Resource.resource -> unitset field resource in resource_logs
val resource_logs_set_scope_logs : resource_logs -> scope_logs list -> unitset field scope_logs in resource_logs
val resource_logs_has_schema_url : resource_logs -> boolpresence of field "schema_url" in resource_logs
val resource_logs_set_schema_url : resource_logs -> string -> unitset field schema_url in resource_logs
val make_logs_data : ?resource_logs:resource_logs list -> unit -> logs_datamake_logs_data … () is a builder for type logs_data
val logs_data_set_resource_logs : logs_data -> resource_logs list -> unitset field resource_logs in logs_data
Formatters
val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unitpp_severity_number v formats v
val pp_log_record : Stdlib.Format.formatter -> log_record -> unitpp_log_record v formats v
val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unitpp_scope_logs v formats v
val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unitpp_resource_logs v formats v
val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unitpp_logs_data v formats v
val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unitpp_log_record_flags v formats v
Protobuf Encoding
val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unitencode_pb_severity_number v encoder encodes v with the given encoder
val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unitencode_pb_log_record v encoder encodes v with the given encoder
val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unitencode_pb_scope_logs v encoder encodes v with the given encoder
val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unitencode_pb_resource_logs v encoder encodes v with the given encoder
val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unitencode_pb_logs_data v encoder encodes v with the given encoder
val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unitencode_pb_log_record_flags v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_severity_number : Pbrt.Decoder.t -> severity_numberdecode_pb_severity_number decoder decodes a severity_number binary value from decoder
val decode_pb_log_record : Pbrt.Decoder.t -> log_recorddecode_pb_log_record decoder decodes a log_record binary value from decoder
val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logsdecode_pb_scope_logs decoder decodes a scope_logs binary value from decoder
val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logsdecode_pb_resource_logs decoder decodes a resource_logs binary value from decoder
val decode_pb_logs_data : Pbrt.Decoder.t -> logs_datadecode_pb_logs_data decoder decodes a logs_data binary value from decoder
val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flagsdecode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder
diff --git a/opentelemetry/Opentelemetry_proto/Logs_service/index.html b/opentelemetry/Opentelemetry_proto/Logs_service/index.html
index 973c0202..46a4f791 100644
--- a/opentelemetry/Opentelemetry_proto/Logs_service/index.html
+++ b/opentelemetry/Opentelemetry_proto/Logs_service/index.html
@@ -1,25 +1,37 @@
-Logs_service (opentelemetry.Opentelemetry_proto.Logs_service) Module Opentelemetry_proto.Logs_service
Code for logs_service.proto
Types
Basic values
val default_export_logs_service_request :
+Logs_service (opentelemetry.Opentelemetry_proto.Logs_service) Module Opentelemetry_proto.Logs_service
Code for logs_service.proto
Types
type export_logs_partial_success = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable rejected_log_records : int64;mutable error_message : string;
}type export_logs_service_response = private {mutable partial_success : export_logs_partial_success option;
}Basic values
val default_export_logs_service_request : unit -> export_logs_service_requestdefault_export_logs_service_request () is a new empty value for type export_logs_service_request
val default_export_logs_partial_success : unit -> export_logs_partial_successdefault_export_logs_partial_success () is a new empty value for type export_logs_partial_success
val default_export_logs_service_response : unit -> export_logs_service_responsedefault_export_logs_service_response () is a new empty value for type export_logs_service_response
Make functions
val make_export_logs_service_request :
?resource_logs:Logs.resource_logs list ->
unit ->
- export_logs_service_requestdefault_export_logs_service_request () is the default value for type export_logs_service_request
val default_export_logs_partial_success :
+ export_logs_service_requestmake_export_logs_service_request … () is a builder for type export_logs_service_request
val copy_export_logs_service_request :
+ export_logs_service_request ->
+ export_logs_service_requestval export_logs_service_request_set_resource_logs :
+ export_logs_service_request ->
+ Logs.resource_logs list ->
+ unitset field resource_logs in export_logs_service_request
val make_export_logs_partial_success :
?rejected_log_records:int64 ->
?error_message:string ->
unit ->
- export_logs_partial_successdefault_export_logs_partial_success () is the default value for type export_logs_partial_success
val default_export_logs_service_response :
- ?partial_success:export_logs_partial_success option ->
+ export_logs_partial_successmake_export_logs_partial_success … () is a builder for type export_logs_partial_success
val copy_export_logs_partial_success :
+ export_logs_partial_success ->
+ export_logs_partial_successval export_logs_partial_success_has_rejected_log_records :
+ export_logs_partial_success ->
+ boolpresence of field "rejected_log_records" in export_logs_partial_success
val export_logs_partial_success_set_rejected_log_records :
+ export_logs_partial_success ->
+ int64 ->
+ unitset field rejected_log_records in export_logs_partial_success
val export_logs_partial_success_has_error_message :
+ export_logs_partial_success ->
+ boolpresence of field "error_message" in export_logs_partial_success
val export_logs_partial_success_set_error_message :
+ export_logs_partial_success ->
+ string ->
+ unitset field error_message in export_logs_partial_success
val make_export_logs_service_response :
+ ?partial_success:export_logs_partial_success ->
unit ->
- export_logs_service_responsedefault_export_logs_service_response () is the default value for type export_logs_service_response
Make functions
val make_export_logs_service_request :
- resource_logs:Logs.resource_logs list ->
- unit ->
- export_logs_service_requestmake_export_logs_service_request … () is a builder for type export_logs_service_request
val make_export_logs_partial_success :
- rejected_log_records:int64 ->
- error_message:string ->
- unit ->
- export_logs_partial_successmake_export_logs_partial_success … () is a builder for type export_logs_partial_success
val make_export_logs_service_response :
- ?partial_success:export_logs_partial_success option ->
- unit ->
- export_logs_service_responsemake_export_logs_service_response … () is a builder for type export_logs_service_response
Formatters
val pp_export_logs_service_request :
+ export_logs_service_responsemake_export_logs_service_response … () is a builder for type export_logs_service_response
val copy_export_logs_service_response :
+ export_logs_service_response ->
+ export_logs_service_responseval export_logs_service_response_set_partial_success :
+ export_logs_service_response ->
+ export_logs_partial_success ->
+ unitset field partial_success in export_logs_service_response
Formatters
val pp_export_logs_service_request :
Stdlib.Format.formatter ->
export_logs_service_request ->
unitpp_export_logs_service_request v formats v
val pp_export_logs_partial_success :
diff --git a/opentelemetry/Opentelemetry_proto/Metrics/index.html b/opentelemetry/Opentelemetry_proto/Metrics/index.html
index c173e18c..df23ef20 100644
--- a/opentelemetry/Opentelemetry_proto/Metrics/index.html
+++ b/opentelemetry/Opentelemetry_proto/Metrics/index.html
@@ -1,12 +1,21 @@
-Metrics (opentelemetry.Opentelemetry_proto.Metrics) Module Opentelemetry_proto.Metrics
Code for metrics.proto
Types
and exemplar = {filtered_attributes : Common.key_value list;time_unix_nano : int64;value : exemplar_value;span_id : bytes;trace_id : bytes;
}and number_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;value : number_data_point_value;exemplars : exemplar list;flags : int32;
}type sum = {data_points : number_data_point list;aggregation_temporality : aggregation_temporality;is_monotonic : bool;
}type histogram_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;count : int64;sum : float option;bucket_counts : int64 list;explicit_bounds : float list;exemplars : exemplar list;flags : int32;min : float option;max : float option;
}type histogram = {data_points : histogram_data_point list;aggregation_temporality : aggregation_temporality;
}type exponential_histogram_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;count : int64;sum : float option;scale : int32;zero_count : int64;positive : exponential_histogram_data_point_buckets option;negative : exponential_histogram_data_point_buckets option;flags : int32;exemplars : exemplar list;min : float option;max : float option;zero_threshold : float;
}type exponential_histogram = {data_points : exponential_histogram_data_point list;aggregation_temporality : aggregation_temporality;
}type summary_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;count : int64;sum : float;quantile_values : summary_data_point_value_at_quantile list;flags : int32;
}type metric_data = | Gauge of gauge| Sum of sum| Histogram of histogram| Exponential_histogram of exponential_histogram| Summary of summary
type scope_metrics = {scope : Common.instrumentation_scope option;metrics : metric list;schema_url : string;
}type resource_metrics = {resource : Resource.resource option;scope_metrics : scope_metrics list;schema_url : string;
}Basic values
val default_exemplar_value : unit -> exemplar_valuedefault_exemplar_value () is the default value for type exemplar_value
val default_exemplar :
+Metrics (opentelemetry.Opentelemetry_proto.Metrics) Module Opentelemetry_proto.Metrics
Code for metrics.proto
Types
and exemplar = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 3 fields
*)mutable filtered_attributes : Common.key_value list;mutable time_unix_nano : int64;mutable value : exemplar_value option;mutable span_id : bytes;mutable trace_id : bytes;
}and number_data_point = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 3 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable value : number_data_point_value option;mutable exemplars : exemplar list;mutable flags : int32;
}type sum = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable data_points : number_data_point list;mutable aggregation_temporality : aggregation_temporality;mutable is_monotonic : bool;
}type histogram_data_point = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 7 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable count : int64;mutable sum : float;mutable bucket_counts : int64 list;mutable explicit_bounds : float list;mutable exemplars : exemplar list;mutable flags : int32;mutable min : float;mutable max : float;
}type histogram = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable data_points : histogram_data_point list;mutable aggregation_temporality : aggregation_temporality;
}type exponential_histogram_data_point_buckets = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable offset : int32;mutable bucket_counts : int64 list;
}type exponential_histogram_data_point = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 10 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable count : int64;mutable sum : float;mutable scale : int32;mutable zero_count : int64;mutable positive : exponential_histogram_data_point_buckets option;mutable negative : exponential_histogram_data_point_buckets option;mutable flags : int32;mutable exemplars : exemplar list;mutable min : float;mutable max : float;mutable zero_threshold : float;
}type exponential_histogram = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable data_points : exponential_histogram_data_point list;mutable aggregation_temporality : aggregation_temporality;
}type summary_data_point_value_at_quantile = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable quantile : float;mutable value : float;
}type summary_data_point = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 5 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable count : int64;mutable sum : float;mutable quantile_values : summary_data_point_value_at_quantile list;mutable flags : int32;
}type metric_data = | Gauge of gauge| Sum of sum| Histogram of histogram| Exponential_histogram of exponential_histogram| Summary of summary
and metric = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 3 fields
*)mutable name : string;mutable description : string;mutable unit_ : string;mutable data : metric_data option;mutable metadata : Common.key_value list;
}type scope_metrics = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable scope : Common.instrumentation_scope option;mutable metrics : metric list;mutable schema_url : string;
}type resource_metrics = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable resource : Resource.resource option;mutable scope_metrics : scope_metrics list;mutable schema_url : string;
}Basic values
val default_exemplar_value : unit -> exemplar_valuedefault_exemplar_value () is a new empty value for type exemplar_value
val default_exemplar : unit -> exemplardefault_exemplar () is a new empty value for type exemplar
val default_number_data_point_value : unit -> number_data_point_valuedefault_number_data_point_value () is a new empty value for type number_data_point_value
val default_number_data_point : unit -> number_data_pointdefault_number_data_point () is a new empty value for type number_data_point
val default_gauge : unit -> gaugedefault_gauge () is a new empty value for type gauge
val default_aggregation_temporality : unit -> aggregation_temporalitydefault_aggregation_temporality () is a new empty value for type aggregation_temporality
val default_sum : unit -> sumdefault_sum () is a new empty value for type sum
val default_histogram_data_point : unit -> histogram_data_pointdefault_histogram_data_point () is a new empty value for type histogram_data_point
val default_histogram : unit -> histogramdefault_histogram () is a new empty value for type histogram
val default_exponential_histogram_data_point_buckets :
+ unit ->
+ exponential_histogram_data_point_bucketsdefault_exponential_histogram_data_point_buckets () is a new empty value for type exponential_histogram_data_point_buckets
val default_exponential_histogram_data_point :
+ unit ->
+ exponential_histogram_data_pointdefault_exponential_histogram_data_point () is a new empty value for type exponential_histogram_data_point
val default_exponential_histogram : unit -> exponential_histogramdefault_exponential_histogram () is a new empty value for type exponential_histogram
val default_summary_data_point_value_at_quantile :
+ unit ->
+ summary_data_point_value_at_quantiledefault_summary_data_point_value_at_quantile () is a new empty value for type summary_data_point_value_at_quantile
val default_summary_data_point : unit -> summary_data_pointdefault_summary_data_point () is a new empty value for type summary_data_point
val default_summary : unit -> summarydefault_summary () is a new empty value for type summary
val default_metric_data : unit -> metric_datadefault_metric_data () is a new empty value for type metric_data
val default_metric : unit -> metricdefault_metric () is a new empty value for type metric
val default_scope_metrics : unit -> scope_metricsdefault_scope_metrics () is a new empty value for type scope_metrics
val default_resource_metrics : unit -> resource_metricsdefault_resource_metrics () is a new empty value for type resource_metrics
val default_metrics_data : unit -> metrics_datadefault_metrics_data () is a new empty value for type metrics_data
val default_data_point_flags : unit -> data_point_flagsdefault_data_point_flags () is a new empty value for type data_point_flags
Make functions
val make_exemplar :
?filtered_attributes:Common.key_value list ->
?time_unix_nano:int64 ->
?value:exemplar_value ->
?span_id:bytes ->
?trace_id:bytes ->
unit ->
- exemplardefault_exemplar () is the default value for type exemplar
val default_number_data_point_value : unit -> number_data_point_valuedefault_number_data_point_value () is the default value for type number_data_point_value
val default_number_data_point :
+ exemplarmake_exemplar … () is a builder for type exemplar
val exemplar_set_filtered_attributes :
+ exemplar ->
+ Common.key_value list ->
+ unitset field filtered_attributes in exemplar
val exemplar_has_time_unix_nano : exemplar -> boolpresence of field "time_unix_nano" in exemplar
val exemplar_set_time_unix_nano : exemplar -> int64 -> unitset field time_unix_nano in exemplar
val exemplar_set_value : exemplar -> exemplar_value -> unitset field value in exemplar
val exemplar_has_span_id : exemplar -> boolpresence of field "span_id" in exemplar
val exemplar_set_span_id : exemplar -> bytes -> unitset field span_id in exemplar
val exemplar_has_trace_id : exemplar -> boolpresence of field "trace_id" in exemplar
val exemplar_set_trace_id : exemplar -> bytes -> unitset field trace_id in exemplar
val make_number_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
@@ -14,57 +23,186 @@
?exemplars:exemplar list ->
?flags:int32 ->
unit ->
- number_data_pointdefault_number_data_point () is the default value for type number_data_point
val default_gauge : ?data_points:number_data_point list -> unit -> gaugedefault_gauge () is the default value for type gauge
val default_aggregation_temporality : unit -> aggregation_temporalitydefault_aggregation_temporality () is the default value for type aggregation_temporality
val default_sum :
+ number_data_pointmake_number_data_point … () is a builder for type number_data_point
val copy_number_data_point : number_data_point -> number_data_pointval number_data_point_set_attributes :
+ number_data_point ->
+ Common.key_value list ->
+ unitset field attributes in number_data_point
val number_data_point_has_start_time_unix_nano : number_data_point -> boolpresence of field "start_time_unix_nano" in number_data_point
val number_data_point_set_start_time_unix_nano :
+ number_data_point ->
+ int64 ->
+ unitset field start_time_unix_nano in number_data_point
val number_data_point_has_time_unix_nano : number_data_point -> boolpresence of field "time_unix_nano" in number_data_point
val number_data_point_set_time_unix_nano : number_data_point -> int64 -> unitset field time_unix_nano in number_data_point
val number_data_point_set_value :
+ number_data_point ->
+ number_data_point_value ->
+ unitset field value in number_data_point
val number_data_point_set_exemplars :
+ number_data_point ->
+ exemplar list ->
+ unitset field exemplars in number_data_point
val number_data_point_has_flags : number_data_point -> boolpresence of field "flags" in number_data_point
val number_data_point_set_flags : number_data_point -> int32 -> unitset field flags in number_data_point
val make_gauge : ?data_points:number_data_point list -> unit -> gaugemake_gauge … () is a builder for type gauge
val gauge_set_data_points : gauge -> number_data_point list -> unitset field data_points in gauge
val make_sum :
?data_points:number_data_point list ->
?aggregation_temporality:aggregation_temporality ->
?is_monotonic:bool ->
unit ->
- sumdefault_sum () is the default value for type sum
val default_histogram_data_point :
+ summake_sum … () is a builder for type sum
val sum_set_data_points : sum -> number_data_point list -> unitset field data_points in sum
val sum_has_aggregation_temporality : sum -> boolpresence of field "aggregation_temporality" in sum
val sum_set_aggregation_temporality : sum -> aggregation_temporality -> unitset field aggregation_temporality in sum
val sum_has_is_monotonic : sum -> boolpresence of field "is_monotonic" in sum
val sum_set_is_monotonic : sum -> bool -> unitset field is_monotonic in sum
val make_histogram_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
?count:int64 ->
- ?sum:float option ->
+ ?sum:float ->
?bucket_counts:int64 list ->
?explicit_bounds:float list ->
?exemplars:exemplar list ->
?flags:int32 ->
- ?min:float option ->
- ?max:float option ->
+ ?min:float ->
+ ?max:float ->
unit ->
- histogram_data_pointdefault_histogram_data_point () is the default value for type histogram_data_point
val default_histogram :
+ histogram_data_pointmake_histogram_data_point … () is a builder for type histogram_data_point
val copy_histogram_data_point : histogram_data_point -> histogram_data_pointval histogram_data_point_set_attributes :
+ histogram_data_point ->
+ Common.key_value list ->
+ unitset field attributes in histogram_data_point
val histogram_data_point_has_start_time_unix_nano :
+ histogram_data_point ->
+ boolpresence of field "start_time_unix_nano" in histogram_data_point
val histogram_data_point_set_start_time_unix_nano :
+ histogram_data_point ->
+ int64 ->
+ unitset field start_time_unix_nano in histogram_data_point
val histogram_data_point_has_time_unix_nano : histogram_data_point -> boolpresence of field "time_unix_nano" in histogram_data_point
val histogram_data_point_set_time_unix_nano :
+ histogram_data_point ->
+ int64 ->
+ unitset field time_unix_nano in histogram_data_point
val histogram_data_point_has_count : histogram_data_point -> boolpresence of field "count" in histogram_data_point
val histogram_data_point_set_count : histogram_data_point -> int64 -> unitset field count in histogram_data_point
val histogram_data_point_has_sum : histogram_data_point -> boolpresence of field "sum" in histogram_data_point
val histogram_data_point_set_sum : histogram_data_point -> float -> unitset field sum in histogram_data_point
val histogram_data_point_set_bucket_counts :
+ histogram_data_point ->
+ int64 list ->
+ unitset field bucket_counts in histogram_data_point
val histogram_data_point_set_explicit_bounds :
+ histogram_data_point ->
+ float list ->
+ unitset field explicit_bounds in histogram_data_point
val histogram_data_point_set_exemplars :
+ histogram_data_point ->
+ exemplar list ->
+ unitset field exemplars in histogram_data_point
val histogram_data_point_has_flags : histogram_data_point -> boolpresence of field "flags" in histogram_data_point
val histogram_data_point_set_flags : histogram_data_point -> int32 -> unitset field flags in histogram_data_point
val histogram_data_point_has_min : histogram_data_point -> boolpresence of field "min" in histogram_data_point
val histogram_data_point_set_min : histogram_data_point -> float -> unitset field min in histogram_data_point
val histogram_data_point_has_max : histogram_data_point -> boolpresence of field "max" in histogram_data_point
val histogram_data_point_set_max : histogram_data_point -> float -> unitset field max in histogram_data_point
val make_histogram :
?data_points:histogram_data_point list ->
?aggregation_temporality:aggregation_temporality ->
unit ->
- histogramdefault_histogram () is the default value for type histogram
val default_exponential_histogram_data_point_buckets :
+ histogrammake_histogram … () is a builder for type histogram
val histogram_set_data_points : histogram -> histogram_data_point list -> unitset field data_points in histogram
val histogram_has_aggregation_temporality : histogram -> boolpresence of field "aggregation_temporality" in histogram
val histogram_set_aggregation_temporality :
+ histogram ->
+ aggregation_temporality ->
+ unitset field aggregation_temporality in histogram
val make_exponential_histogram_data_point_buckets :
?offset:int32 ->
?bucket_counts:int64 list ->
unit ->
- exponential_histogram_data_point_bucketsdefault_exponential_histogram_data_point_buckets () is the default value for type exponential_histogram_data_point_buckets
val default_exponential_histogram_data_point :
+ exponential_histogram_data_point_bucketsmake_exponential_histogram_data_point_buckets … () is a builder for type exponential_histogram_data_point_buckets
val copy_exponential_histogram_data_point_buckets :
+ exponential_histogram_data_point_buckets ->
+ exponential_histogram_data_point_bucketsval exponential_histogram_data_point_buckets_has_offset :
+ exponential_histogram_data_point_buckets ->
+ boolpresence of field "offset" in exponential_histogram_data_point_buckets
val exponential_histogram_data_point_buckets_set_offset :
+ exponential_histogram_data_point_buckets ->
+ int32 ->
+ unitset field offset in exponential_histogram_data_point_buckets
val exponential_histogram_data_point_buckets_set_bucket_counts :
+ exponential_histogram_data_point_buckets ->
+ int64 list ->
+ unitset field bucket_counts in exponential_histogram_data_point_buckets
val make_exponential_histogram_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
?count:int64 ->
- ?sum:float option ->
+ ?sum:float ->
?scale:int32 ->
?zero_count:int64 ->
- ?positive:exponential_histogram_data_point_buckets option ->
- ?negative:exponential_histogram_data_point_buckets option ->
+ ?positive:exponential_histogram_data_point_buckets ->
+ ?negative:exponential_histogram_data_point_buckets ->
?flags:int32 ->
?exemplars:exemplar list ->
- ?min:float option ->
- ?max:float option ->
+ ?min:float ->
+ ?max:float ->
?zero_threshold:float ->
unit ->
- exponential_histogram_data_pointdefault_exponential_histogram_data_point () is the default value for type exponential_histogram_data_point
val default_exponential_histogram :
+ exponential_histogram_data_pointmake_exponential_histogram_data_point … () is a builder for type exponential_histogram_data_point
val copy_exponential_histogram_data_point :
+ exponential_histogram_data_point ->
+ exponential_histogram_data_pointval exponential_histogram_data_point_set_attributes :
+ exponential_histogram_data_point ->
+ Common.key_value list ->
+ unitset field attributes in exponential_histogram_data_point
val exponential_histogram_data_point_has_start_time_unix_nano :
+ exponential_histogram_data_point ->
+ boolpresence of field "start_time_unix_nano" in exponential_histogram_data_point
val exponential_histogram_data_point_set_start_time_unix_nano :
+ exponential_histogram_data_point ->
+ int64 ->
+ unitset field start_time_unix_nano in exponential_histogram_data_point
val exponential_histogram_data_point_has_time_unix_nano :
+ exponential_histogram_data_point ->
+ boolpresence of field "time_unix_nano" in exponential_histogram_data_point
val exponential_histogram_data_point_set_time_unix_nano :
+ exponential_histogram_data_point ->
+ int64 ->
+ unitset field time_unix_nano in exponential_histogram_data_point
val exponential_histogram_data_point_has_count :
+ exponential_histogram_data_point ->
+ boolpresence of field "count" in exponential_histogram_data_point
val exponential_histogram_data_point_set_count :
+ exponential_histogram_data_point ->
+ int64 ->
+ unitset field count in exponential_histogram_data_point
val exponential_histogram_data_point_has_sum :
+ exponential_histogram_data_point ->
+ boolpresence of field "sum" in exponential_histogram_data_point
val exponential_histogram_data_point_set_sum :
+ exponential_histogram_data_point ->
+ float ->
+ unitset field sum in exponential_histogram_data_point
val exponential_histogram_data_point_has_scale :
+ exponential_histogram_data_point ->
+ boolpresence of field "scale" in exponential_histogram_data_point
val exponential_histogram_data_point_set_scale :
+ exponential_histogram_data_point ->
+ int32 ->
+ unitset field scale in exponential_histogram_data_point
val exponential_histogram_data_point_has_zero_count :
+ exponential_histogram_data_point ->
+ boolpresence of field "zero_count" in exponential_histogram_data_point
val exponential_histogram_data_point_set_zero_count :
+ exponential_histogram_data_point ->
+ int64 ->
+ unitset field zero_count in exponential_histogram_data_point
val exponential_histogram_data_point_set_positive :
+ exponential_histogram_data_point ->
+ exponential_histogram_data_point_buckets ->
+ unitset field positive in exponential_histogram_data_point
val exponential_histogram_data_point_set_negative :
+ exponential_histogram_data_point ->
+ exponential_histogram_data_point_buckets ->
+ unitset field negative in exponential_histogram_data_point
val exponential_histogram_data_point_has_flags :
+ exponential_histogram_data_point ->
+ boolpresence of field "flags" in exponential_histogram_data_point
val exponential_histogram_data_point_set_flags :
+ exponential_histogram_data_point ->
+ int32 ->
+ unitset field flags in exponential_histogram_data_point
val exponential_histogram_data_point_set_exemplars :
+ exponential_histogram_data_point ->
+ exemplar list ->
+ unitset field exemplars in exponential_histogram_data_point
val exponential_histogram_data_point_has_min :
+ exponential_histogram_data_point ->
+ boolpresence of field "min" in exponential_histogram_data_point
val exponential_histogram_data_point_set_min :
+ exponential_histogram_data_point ->
+ float ->
+ unitset field min in exponential_histogram_data_point
val exponential_histogram_data_point_has_max :
+ exponential_histogram_data_point ->
+ boolpresence of field "max" in exponential_histogram_data_point
val exponential_histogram_data_point_set_max :
+ exponential_histogram_data_point ->
+ float ->
+ unitset field max in exponential_histogram_data_point
val exponential_histogram_data_point_has_zero_threshold :
+ exponential_histogram_data_point ->
+ boolpresence of field "zero_threshold" in exponential_histogram_data_point
val exponential_histogram_data_point_set_zero_threshold :
+ exponential_histogram_data_point ->
+ float ->
+ unitset field zero_threshold in exponential_histogram_data_point
val make_exponential_histogram :
?data_points:exponential_histogram_data_point list ->
?aggregation_temporality:aggregation_temporality ->
unit ->
- exponential_histogramdefault_exponential_histogram () is the default value for type exponential_histogram
val default_summary_data_point_value_at_quantile :
+ exponential_histogrammake_exponential_histogram … () is a builder for type exponential_histogram
val copy_exponential_histogram : exponential_histogram -> exponential_histogramval exponential_histogram_set_data_points :
+ exponential_histogram ->
+ exponential_histogram_data_point list ->
+ unitset field data_points in exponential_histogram
val exponential_histogram_has_aggregation_temporality :
+ exponential_histogram ->
+ boolpresence of field "aggregation_temporality" in exponential_histogram
val exponential_histogram_set_aggregation_temporality :
+ exponential_histogram ->
+ aggregation_temporality ->
+ unitset field aggregation_temporality in exponential_histogram
val make_summary_data_point_value_at_quantile :
?quantile:float ->
?value:float ->
unit ->
- summary_data_point_value_at_quantiledefault_summary_data_point_value_at_quantile () is the default value for type summary_data_point_value_at_quantile
val default_summary_data_point :
+ summary_data_point_value_at_quantilemake_summary_data_point_value_at_quantile … () is a builder for type summary_data_point_value_at_quantile
val copy_summary_data_point_value_at_quantile :
+ summary_data_point_value_at_quantile ->
+ summary_data_point_value_at_quantileval summary_data_point_value_at_quantile_has_quantile :
+ summary_data_point_value_at_quantile ->
+ boolpresence of field "quantile" in summary_data_point_value_at_quantile
val summary_data_point_value_at_quantile_set_quantile :
+ summary_data_point_value_at_quantile ->
+ float ->
+ unitset field quantile in summary_data_point_value_at_quantile
val summary_data_point_value_at_quantile_has_value :
+ summary_data_point_value_at_quantile ->
+ boolpresence of field "value" in summary_data_point_value_at_quantile
val summary_data_point_value_at_quantile_set_value :
+ summary_data_point_value_at_quantile ->
+ float ->
+ unitset field value in summary_data_point_value_at_quantile
val make_summary_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
@@ -73,119 +211,48 @@
?quantile_values:summary_data_point_value_at_quantile list ->
?flags:int32 ->
unit ->
- summary_data_pointdefault_summary_data_point () is the default value for type summary_data_point
val default_summary : ?data_points:summary_data_point list -> unit -> summarydefault_summary () is the default value for type summary
val default_metric_data : unit -> metric_datadefault_metric_data () is the default value for type metric_data
val default_metric :
+ summary_data_pointmake_summary_data_point … () is a builder for type summary_data_point
val copy_summary_data_point : summary_data_point -> summary_data_pointval summary_data_point_set_attributes :
+ summary_data_point ->
+ Common.key_value list ->
+ unitset field attributes in summary_data_point
val summary_data_point_has_start_time_unix_nano : summary_data_point -> boolpresence of field "start_time_unix_nano" in summary_data_point
val summary_data_point_set_start_time_unix_nano :
+ summary_data_point ->
+ int64 ->
+ unitset field start_time_unix_nano in summary_data_point
val summary_data_point_has_time_unix_nano : summary_data_point -> boolpresence of field "time_unix_nano" in summary_data_point
val summary_data_point_set_time_unix_nano : summary_data_point -> int64 -> unitset field time_unix_nano in summary_data_point
val summary_data_point_has_count : summary_data_point -> boolpresence of field "count" in summary_data_point
val summary_data_point_set_count : summary_data_point -> int64 -> unitset field count in summary_data_point
val summary_data_point_has_sum : summary_data_point -> boolpresence of field "sum" in summary_data_point
val summary_data_point_set_sum : summary_data_point -> float -> unitset field sum in summary_data_point
val summary_data_point_set_quantile_values :
+ summary_data_point ->
+ summary_data_point_value_at_quantile list ->
+ unitset field quantile_values in summary_data_point
val summary_data_point_has_flags : summary_data_point -> boolpresence of field "flags" in summary_data_point
val summary_data_point_set_flags : summary_data_point -> int32 -> unitset field flags in summary_data_point
val make_summary : ?data_points:summary_data_point list -> unit -> summarymake_summary … () is a builder for type summary
val summary_set_data_points : summary -> summary_data_point list -> unitset field data_points in summary
val make_metric :
?name:string ->
?description:string ->
?unit_:string ->
?data:metric_data ->
+ ?metadata:Common.key_value list ->
unit ->
- metricdefault_metric () is the default value for type metric
val default_scope_metrics :
- ?scope:Common.instrumentation_scope option ->
+ metricmake_metric … () is a builder for type metric
val metric_has_name : metric -> boolpresence of field "name" in metric
val metric_set_name : metric -> string -> unitset field name in metric
val metric_has_description : metric -> boolpresence of field "description" in metric
val metric_set_description : metric -> string -> unitset field description in metric
val metric_has_unit_ : metric -> boolpresence of field "unit_" in metric
val metric_set_unit_ : metric -> string -> unitset field unit_ in metric
val metric_set_data : metric -> metric_data -> unitset field data in metric
val metric_set_metadata : metric -> Common.key_value list -> unitset field metadata in metric
val make_scope_metrics :
+ ?scope:Common.instrumentation_scope ->
?metrics:metric list ->
?schema_url:string ->
unit ->
- scope_metricsdefault_scope_metrics () is the default value for type scope_metrics
val default_resource_metrics :
- ?resource:Resource.resource option ->
+ scope_metricsmake_scope_metrics … () is a builder for type scope_metrics
val copy_scope_metrics : scope_metrics -> scope_metricsval scope_metrics_set_scope :
+ scope_metrics ->
+ Common.instrumentation_scope ->
+ unitset field scope in scope_metrics
val scope_metrics_set_metrics : scope_metrics -> metric list -> unitset field metrics in scope_metrics
val scope_metrics_has_schema_url : scope_metrics -> boolpresence of field "schema_url" in scope_metrics
val scope_metrics_set_schema_url : scope_metrics -> string -> unitset field schema_url in scope_metrics
val make_resource_metrics :
+ ?resource:Resource.resource ->
?scope_metrics:scope_metrics list ->
?schema_url:string ->
unit ->
- resource_metricsdefault_resource_metrics () is the default value for type resource_metrics
val default_metrics_data :
+ resource_metricsmake_resource_metrics … () is a builder for type resource_metrics
val copy_resource_metrics : resource_metrics -> resource_metricsval resource_metrics_set_resource :
+ resource_metrics ->
+ Resource.resource ->
+ unitset field resource in resource_metrics
val resource_metrics_set_scope_metrics :
+ resource_metrics ->
+ scope_metrics list ->
+ unitset field scope_metrics in resource_metrics
val resource_metrics_has_schema_url : resource_metrics -> boolpresence of field "schema_url" in resource_metrics
val resource_metrics_set_schema_url : resource_metrics -> string -> unitset field schema_url in resource_metrics
val make_metrics_data :
?resource_metrics:resource_metrics list ->
unit ->
- metrics_datadefault_metrics_data () is the default value for type metrics_data
val default_data_point_flags : unit -> data_point_flagsdefault_data_point_flags () is the default value for type data_point_flags
Make functions
val make_exemplar :
- filtered_attributes:Common.key_value list ->
- time_unix_nano:int64 ->
- value:exemplar_value ->
- span_id:bytes ->
- trace_id:bytes ->
- unit ->
- exemplarmake_exemplar … () is a builder for type exemplar
val make_number_data_point :
- attributes:Common.key_value list ->
- start_time_unix_nano:int64 ->
- time_unix_nano:int64 ->
- value:number_data_point_value ->
- exemplars:exemplar list ->
- flags:int32 ->
- unit ->
- number_data_pointmake_number_data_point … () is a builder for type number_data_point
val make_gauge : data_points:number_data_point list -> unit -> gaugemake_gauge … () is a builder for type gauge
val make_sum :
- data_points:number_data_point list ->
- aggregation_temporality:aggregation_temporality ->
- is_monotonic:bool ->
- unit ->
- summake_sum … () is a builder for type sum
val make_histogram_data_point :
- attributes:Common.key_value list ->
- start_time_unix_nano:int64 ->
- time_unix_nano:int64 ->
- count:int64 ->
- ?sum:float option ->
- bucket_counts:int64 list ->
- explicit_bounds:float list ->
- exemplars:exemplar list ->
- flags:int32 ->
- ?min:float option ->
- ?max:float option ->
- unit ->
- histogram_data_pointmake_histogram_data_point … () is a builder for type histogram_data_point
val make_histogram :
- data_points:histogram_data_point list ->
- aggregation_temporality:aggregation_temporality ->
- unit ->
- histogrammake_histogram … () is a builder for type histogram
val make_exponential_histogram_data_point_buckets :
- offset:int32 ->
- bucket_counts:int64 list ->
- unit ->
- exponential_histogram_data_point_bucketsmake_exponential_histogram_data_point_buckets … () is a builder for type exponential_histogram_data_point_buckets
val make_exponential_histogram_data_point :
- attributes:Common.key_value list ->
- start_time_unix_nano:int64 ->
- time_unix_nano:int64 ->
- count:int64 ->
- ?sum:float option ->
- scale:int32 ->
- zero_count:int64 ->
- ?positive:exponential_histogram_data_point_buckets option ->
- ?negative:exponential_histogram_data_point_buckets option ->
- flags:int32 ->
- exemplars:exemplar list ->
- ?min:float option ->
- ?max:float option ->
- zero_threshold:float ->
- unit ->
- exponential_histogram_data_pointmake_exponential_histogram_data_point … () is a builder for type exponential_histogram_data_point
val make_exponential_histogram :
- data_points:exponential_histogram_data_point list ->
- aggregation_temporality:aggregation_temporality ->
- unit ->
- exponential_histogrammake_exponential_histogram … () is a builder for type exponential_histogram
val make_summary_data_point_value_at_quantile :
- quantile:float ->
- value:float ->
- unit ->
- summary_data_point_value_at_quantilemake_summary_data_point_value_at_quantile … () is a builder for type summary_data_point_value_at_quantile
val make_summary_data_point :
- attributes:Common.key_value list ->
- start_time_unix_nano:int64 ->
- time_unix_nano:int64 ->
- count:int64 ->
- sum:float ->
- quantile_values:summary_data_point_value_at_quantile list ->
- flags:int32 ->
- unit ->
- summary_data_pointmake_summary_data_point … () is a builder for type summary_data_point
val make_summary : data_points:summary_data_point list -> unit -> summarymake_summary … () is a builder for type summary
val make_metric :
- name:string ->
- description:string ->
- unit_:string ->
- data:metric_data ->
- unit ->
- metricmake_metric … () is a builder for type metric
val make_scope_metrics :
- ?scope:Common.instrumentation_scope option ->
- metrics:metric list ->
- schema_url:string ->
- unit ->
- scope_metricsmake_scope_metrics … () is a builder for type scope_metrics
val make_resource_metrics :
- ?resource:Resource.resource option ->
- scope_metrics:scope_metrics list ->
- schema_url:string ->
- unit ->
- resource_metricsmake_resource_metrics … () is a builder for type resource_metrics
val make_metrics_data :
- resource_metrics:resource_metrics list ->
- unit ->
- metrics_datamake_metrics_data … () is a builder for type metrics_data
Formatters
val pp_exemplar_value : Stdlib.Format.formatter -> exemplar_value -> unitpp_exemplar_value v formats v
val pp_exemplar : Stdlib.Format.formatter -> exemplar -> unitpp_exemplar v formats v
val pp_number_data_point_value :
+ metrics_datamake_metrics_data … () is a builder for type metrics_data
val copy_metrics_data : metrics_data -> metrics_dataval metrics_data_set_resource_metrics :
+ metrics_data ->
+ resource_metrics list ->
+ unitset field resource_metrics in metrics_data
Formatters
val pp_exemplar_value : Stdlib.Format.formatter -> exemplar_value -> unitpp_exemplar_value v formats v
val pp_exemplar : Stdlib.Format.formatter -> exemplar -> unitpp_exemplar v formats v
val pp_number_data_point_value :
Stdlib.Format.formatter ->
number_data_point_value ->
unitpp_number_data_point_value v formats v
val pp_number_data_point : Stdlib.Format.formatter -> number_data_point -> unitpp_number_data_point v formats v
val pp_gauge : Stdlib.Format.formatter -> gauge -> unitpp_gauge v formats v
val pp_aggregation_temporality :
diff --git a/opentelemetry/Opentelemetry_proto/Metrics_service/index.html b/opentelemetry/Opentelemetry_proto/Metrics_service/index.html
index ea916095..28f16cda 100644
--- a/opentelemetry/Opentelemetry_proto/Metrics_service/index.html
+++ b/opentelemetry/Opentelemetry_proto/Metrics_service/index.html
@@ -1,25 +1,43 @@
-Metrics_service (opentelemetry.Opentelemetry_proto.Metrics_service) Module Opentelemetry_proto.Metrics_service
Code for metrics_service.proto
Types
Basic values
val default_export_metrics_service_request :
+Metrics_service (opentelemetry.Opentelemetry_proto.Metrics_service) Module Opentelemetry_proto.Metrics_service
Code for metrics_service.proto
Types
type export_metrics_service_request = private {mutable resource_metrics : Metrics.resource_metrics list;
}type export_metrics_partial_success = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable rejected_data_points : int64;mutable error_message : string;
}type export_metrics_service_response = private {mutable partial_success : export_metrics_partial_success option;
}Basic values
val default_export_metrics_service_request :
+ unit ->
+ export_metrics_service_requestdefault_export_metrics_service_request () is a new empty value for type export_metrics_service_request
val default_export_metrics_partial_success :
+ unit ->
+ export_metrics_partial_successdefault_export_metrics_partial_success () is a new empty value for type export_metrics_partial_success
val default_export_metrics_service_response :
+ unit ->
+ export_metrics_service_responsedefault_export_metrics_service_response () is a new empty value for type export_metrics_service_response
Make functions
val make_export_metrics_service_request :
?resource_metrics:Metrics.resource_metrics list ->
unit ->
- export_metrics_service_requestdefault_export_metrics_service_request () is the default value for type export_metrics_service_request
val default_export_metrics_partial_success :
+ export_metrics_service_requestmake_export_metrics_service_request … () is a builder for type export_metrics_service_request
val copy_export_metrics_service_request :
+ export_metrics_service_request ->
+ export_metrics_service_requestval export_metrics_service_request_set_resource_metrics :
+ export_metrics_service_request ->
+ Metrics.resource_metrics list ->
+ unitset field resource_metrics in export_metrics_service_request
val make_export_metrics_partial_success :
?rejected_data_points:int64 ->
?error_message:string ->
unit ->
- export_metrics_partial_successdefault_export_metrics_partial_success () is the default value for type export_metrics_partial_success
val default_export_metrics_service_response :
- ?partial_success:export_metrics_partial_success option ->
+ export_metrics_partial_successmake_export_metrics_partial_success … () is a builder for type export_metrics_partial_success
val copy_export_metrics_partial_success :
+ export_metrics_partial_success ->
+ export_metrics_partial_successval export_metrics_partial_success_has_rejected_data_points :
+ export_metrics_partial_success ->
+ boolpresence of field "rejected_data_points" in export_metrics_partial_success
val export_metrics_partial_success_set_rejected_data_points :
+ export_metrics_partial_success ->
+ int64 ->
+ unitset field rejected_data_points in export_metrics_partial_success
val export_metrics_partial_success_has_error_message :
+ export_metrics_partial_success ->
+ boolpresence of field "error_message" in export_metrics_partial_success
val export_metrics_partial_success_set_error_message :
+ export_metrics_partial_success ->
+ string ->
+ unitset field error_message in export_metrics_partial_success
val make_export_metrics_service_response :
+ ?partial_success:export_metrics_partial_success ->
unit ->
- export_metrics_service_responsedefault_export_metrics_service_response () is the default value for type export_metrics_service_response
Make functions
val make_export_metrics_service_request :
- resource_metrics:Metrics.resource_metrics list ->
- unit ->
- export_metrics_service_requestmake_export_metrics_service_request … () is a builder for type export_metrics_service_request
val make_export_metrics_partial_success :
- rejected_data_points:int64 ->
- error_message:string ->
- unit ->
- export_metrics_partial_successmake_export_metrics_partial_success … () is a builder for type export_metrics_partial_success
val make_export_metrics_service_response :
- ?partial_success:export_metrics_partial_success option ->
- unit ->
- export_metrics_service_responsemake_export_metrics_service_response … () is a builder for type export_metrics_service_response
Formatters
val pp_export_metrics_service_request :
+ export_metrics_service_responsemake_export_metrics_service_response … () is a builder for type export_metrics_service_response
val copy_export_metrics_service_response :
+ export_metrics_service_response ->
+ export_metrics_service_responseval export_metrics_service_response_set_partial_success :
+ export_metrics_service_response ->
+ export_metrics_partial_success ->
+ unitset field partial_success in export_metrics_service_response
Formatters
val pp_export_metrics_service_request :
Stdlib.Format.formatter ->
export_metrics_service_request ->
unitpp_export_metrics_service_request v formats v
val pp_export_metrics_partial_success :
diff --git a/opentelemetry/Opentelemetry_proto/Resource/index.html b/opentelemetry/Opentelemetry_proto/Resource/index.html
index 1f110777..7b76cc39 100644
--- a/opentelemetry/Opentelemetry_proto/Resource/index.html
+++ b/opentelemetry/Opentelemetry_proto/Resource/index.html
@@ -1,10 +1,7 @@
-Resource (opentelemetry.Opentelemetry_proto.Resource) Module Opentelemetry_proto.Resource
Code for resource.proto
Types
Basic values
val default_resource :
+Resource (opentelemetry.Opentelemetry_proto.Resource) Module Opentelemetry_proto.Resource
Code for resource.proto
Types
type resource = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable entity_refs : Common.entity_ref list;
}Basic values
val default_resource : unit -> resourcedefault_resource () is a new empty value for type resource
Make functions
val make_resource :
?attributes:Common.key_value list ->
?dropped_attributes_count:int32 ->
+ ?entity_refs:Common.entity_ref list ->
unit ->
- resourcedefault_resource () is the default value for type resource
Make functions
val make_resource :
- attributes:Common.key_value list ->
- dropped_attributes_count:int32 ->
- unit ->
- resourcemake_resource … () is a builder for type resource
Formatters
val pp_resource : Stdlib.Format.formatter -> resource -> unitpp_resource v formats v
Protobuf Encoding
val encode_pb_resource : resource -> Pbrt.Encoder.t -> unitencode_pb_resource v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_resource : Pbrt.Decoder.t -> resourcedecode_pb_resource decoder decodes a resource binary value from decoder
+ resourcemake_resource … () is a builder for type resource
val resource_set_attributes : resource -> Common.key_value list -> unitset field attributes in resource
val resource_has_dropped_attributes_count : resource -> boolpresence of field "dropped_attributes_count" in resource
val resource_set_dropped_attributes_count : resource -> int32 -> unitset field dropped_attributes_count in resource
val resource_set_entity_refs : resource -> Common.entity_ref list -> unitset field entity_refs in resource
Formatters
val pp_resource : Stdlib.Format.formatter -> resource -> unitpp_resource v formats v
Protobuf Encoding
val encode_pb_resource : resource -> Pbrt.Encoder.t -> unitencode_pb_resource v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_resource : Pbrt.Decoder.t -> resourcedecode_pb_resource decoder decodes a resource binary value from decoder
diff --git a/opentelemetry/Opentelemetry_proto/Status/index.html b/opentelemetry/Opentelemetry_proto/Status/index.html
index a7199a97..ea83924f 100644
--- a/opentelemetry/Opentelemetry_proto/Status/index.html
+++ b/opentelemetry/Opentelemetry_proto/Status/index.html
@@ -1,12 +1,7 @@
-Status (opentelemetry.Opentelemetry_proto.Status) Module Opentelemetry_proto.Status
Code for status.proto
Types
Basic values
val default_status :
+Status (opentelemetry.Opentelemetry_proto.Status) Module Opentelemetry_proto.Status
Code for status.proto
Types
type status = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable code : int32;mutable message : bytes;mutable details : bytes list;
}Basic values
val default_status : unit -> statusdefault_status () is a new empty value for type status
Make functions
val make_status :
?code:int32 ->
?message:bytes ->
?details:bytes list ->
unit ->
- statusdefault_status () is the default value for type status
Make functions
val make_status :
- code:int32 ->
- message:bytes ->
- details:bytes list ->
- unit ->
- statusmake_status … () is a builder for type status
Formatters
val pp_status : Stdlib.Format.formatter -> status -> unitpp_status v formats v
Protobuf Encoding
val encode_pb_status : status -> Pbrt.Encoder.t -> unitencode_pb_status v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_status : Pbrt.Decoder.t -> statusdecode_pb_status decoder decodes a status binary value from decoder
+ statusmake_status … () is a builder for type status
val status_has_code : status -> boolpresence of field "code" in status
val status_set_code : status -> int32 -> unitset field code in status
val status_has_message : status -> boolpresence of field "message" in status
val status_set_message : status -> bytes -> unitset field message in status
val status_set_details : status -> bytes list -> unitset field details in status
Formatters
val pp_status : Stdlib.Format.formatter -> status -> unitpp_status v formats v
Protobuf Encoding
val encode_pb_status : status -> Pbrt.Encoder.t -> unitencode_pb_status v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_status : Pbrt.Decoder.t -> statusdecode_pb_status decoder decodes a status binary value from decoder
diff --git a/opentelemetry/Opentelemetry_proto/Trace/index.html b/opentelemetry/Opentelemetry_proto/Trace/index.html
index bb8c995e..6e84a24d 100644
--- a/opentelemetry/Opentelemetry_proto/Trace/index.html
+++ b/opentelemetry/Opentelemetry_proto/Trace/index.html
@@ -1,26 +1,24 @@
-Trace (opentelemetry.Opentelemetry_proto.Trace) Module Opentelemetry_proto.Trace
Code for trace.proto
Types
type span_event = {time_unix_nano : int64;name : string;attributes : Common.key_value list;dropped_attributes_count : int32;
}type span_link = {trace_id : bytes;span_id : bytes;trace_state : string;attributes : Common.key_value list;dropped_attributes_count : int32;
}type span = {trace_id : bytes;span_id : bytes;trace_state : string;parent_span_id : bytes;name : string;kind : span_span_kind;start_time_unix_nano : int64;end_time_unix_nano : int64;attributes : Common.key_value list;dropped_attributes_count : int32;events : span_event list;dropped_events_count : int32;links : span_link list;dropped_links_count : int32;status : status option;
}type scope_spans = {scope : Common.instrumentation_scope option;spans : span list;schema_url : string;
}type resource_spans = {resource : Resource.resource option;scope_spans : scope_spans list;schema_url : string;
}Basic values
val default_span_span_kind : unit -> span_span_kinddefault_span_span_kind () is the default value for type span_span_kind
val default_span_event :
+Trace (opentelemetry.Opentelemetry_proto.Trace) Module Opentelemetry_proto.Trace
Code for trace.proto
Types
type span_event = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 3 fields
*)mutable time_unix_nano : int64;mutable name : string;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;
}type span_link = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 5 fields
*)mutable trace_id : bytes;mutable span_id : bytes;mutable trace_state : string;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable flags : int32;
}type status = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable message : string;mutable code : status_status_code;
}type span = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 12 fields
*)mutable trace_id : bytes;mutable span_id : bytes;mutable trace_state : string;mutable parent_span_id : bytes;mutable flags : int32;mutable name : string;mutable kind : span_span_kind;mutable start_time_unix_nano : int64;mutable end_time_unix_nano : int64;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable events : span_event list;mutable dropped_events_count : int32;mutable links : span_link list;mutable dropped_links_count : int32;mutable status : status option;
}type scope_spans = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable scope : Common.instrumentation_scope option;mutable spans : span list;mutable schema_url : string;
}type resource_spans = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 1 fields
*)mutable resource : Resource.resource option;mutable scope_spans : scope_spans list;mutable schema_url : string;
}Basic values
val default_span_span_kind : unit -> span_span_kinddefault_span_span_kind () is a new empty value for type span_span_kind
val default_span_event : unit -> span_eventdefault_span_event () is a new empty value for type span_event
val default_span_link : unit -> span_linkdefault_span_link () is a new empty value for type span_link
val default_status_status_code : unit -> status_status_codedefault_status_status_code () is a new empty value for type status_status_code
val default_status : unit -> statusdefault_status () is a new empty value for type status
val default_span : unit -> spandefault_span () is a new empty value for type span
val default_scope_spans : unit -> scope_spansdefault_scope_spans () is a new empty value for type scope_spans
val default_resource_spans : unit -> resource_spansdefault_resource_spans () is a new empty value for type resource_spans
val default_traces_data : unit -> traces_datadefault_traces_data () is a new empty value for type traces_data
val default_span_flags : unit -> span_flagsdefault_span_flags () is a new empty value for type span_flags
Make functions
val make_span_event :
?time_unix_nano:int64 ->
?name:string ->
?attributes:Common.key_value list ->
?dropped_attributes_count:int32 ->
unit ->
- span_eventdefault_span_event () is the default value for type span_event
val default_span_link :
+ span_eventmake_span_event … () is a builder for type span_event
val copy_span_event : span_event -> span_eventval span_event_has_time_unix_nano : span_event -> boolpresence of field "time_unix_nano" in span_event
val span_event_set_time_unix_nano : span_event -> int64 -> unitset field time_unix_nano in span_event
val span_event_has_name : span_event -> boolpresence of field "name" in span_event
val span_event_set_name : span_event -> string -> unitset field name in span_event
val span_event_set_attributes : span_event -> Common.key_value list -> unitset field attributes in span_event
val span_event_has_dropped_attributes_count : span_event -> boolpresence of field "dropped_attributes_count" in span_event
val span_event_set_dropped_attributes_count : span_event -> int32 -> unitset field dropped_attributes_count in span_event
val make_span_link :
?trace_id:bytes ->
?span_id:bytes ->
?trace_state:string ->
?attributes:Common.key_value list ->
?dropped_attributes_count:int32 ->
+ ?flags:int32 ->
unit ->
- span_linkdefault_span_link () is the default value for type span_link
val default_status_status_code : unit -> status_status_codedefault_status_status_code () is the default value for type status_status_code
val default_status :
- ?message:string ->
- ?code:status_status_code ->
- unit ->
- statusdefault_status () is the default value for type status
val default_span :
+ span_linkmake_span_link … () is a builder for type span_link
val span_link_has_trace_id : span_link -> boolpresence of field "trace_id" in span_link
val span_link_set_trace_id : span_link -> bytes -> unitset field trace_id in span_link
val span_link_has_span_id : span_link -> boolpresence of field "span_id" in span_link
val span_link_set_span_id : span_link -> bytes -> unitset field span_id in span_link
val span_link_has_trace_state : span_link -> boolpresence of field "trace_state" in span_link
val span_link_set_trace_state : span_link -> string -> unitset field trace_state in span_link
val span_link_set_attributes : span_link -> Common.key_value list -> unitset field attributes in span_link
val span_link_has_dropped_attributes_count : span_link -> boolpresence of field "dropped_attributes_count" in span_link
val span_link_set_dropped_attributes_count : span_link -> int32 -> unitset field dropped_attributes_count in span_link
val span_link_has_flags : span_link -> boolpresence of field "flags" in span_link
val span_link_set_flags : span_link -> int32 -> unitset field flags in span_link
val make_status : ?message:string -> ?code:status_status_code -> unit -> statusmake_status … () is a builder for type status
val status_has_message : status -> boolpresence of field "message" in status
val status_set_message : status -> string -> unitset field message in status
val status_has_code : status -> boolpresence of field "code" in status
val status_set_code : status -> status_status_code -> unitset field code in status
val make_span :
?trace_id:bytes ->
?span_id:bytes ->
?trace_state:string ->
?parent_span_id:bytes ->
+ ?flags:int32 ->
?name:string ->
?kind:span_span_kind ->
?start_time_unix_nano:int64 ->
@@ -31,65 +29,22 @@
?dropped_events_count:int32 ->
?links:span_link list ->
?dropped_links_count:int32 ->
- ?status:status option ->
+ ?status:status ->
unit ->
- spandefault_span () is the default value for type span
val default_scope_spans :
- ?scope:Common.instrumentation_scope option ->
+ spanmake_span … () is a builder for type span
val span_has_trace_id : span -> boolpresence of field "trace_id" in span
val span_set_trace_id : span -> bytes -> unitset field trace_id in span
val span_has_span_id : span -> boolpresence of field "span_id" in span
val span_set_span_id : span -> bytes -> unitset field span_id in span
val span_has_trace_state : span -> boolpresence of field "trace_state" in span
val span_set_trace_state : span -> string -> unitset field trace_state in span
val span_has_parent_span_id : span -> boolpresence of field "parent_span_id" in span
val span_set_parent_span_id : span -> bytes -> unitset field parent_span_id in span
val span_has_flags : span -> boolpresence of field "flags" in span
val span_set_flags : span -> int32 -> unitset field flags in span
val span_has_name : span -> boolpresence of field "name" in span
val span_set_name : span -> string -> unitset field name in span
val span_has_kind : span -> boolpresence of field "kind" in span
val span_set_kind : span -> span_span_kind -> unitset field kind in span
val span_has_start_time_unix_nano : span -> boolpresence of field "start_time_unix_nano" in span
val span_set_start_time_unix_nano : span -> int64 -> unitset field start_time_unix_nano in span
val span_has_end_time_unix_nano : span -> boolpresence of field "end_time_unix_nano" in span
val span_set_end_time_unix_nano : span -> int64 -> unitset field end_time_unix_nano in span
val span_set_attributes : span -> Common.key_value list -> unitset field attributes in span
val span_has_dropped_attributes_count : span -> boolpresence of field "dropped_attributes_count" in span
val span_set_dropped_attributes_count : span -> int32 -> unitset field dropped_attributes_count in span
val span_set_events : span -> span_event list -> unitset field events in span
val span_has_dropped_events_count : span -> boolpresence of field "dropped_events_count" in span
val span_set_dropped_events_count : span -> int32 -> unitset field dropped_events_count in span
val span_has_dropped_links_count : span -> boolpresence of field "dropped_links_count" in span
val span_set_dropped_links_count : span -> int32 -> unitset field dropped_links_count in span
val make_scope_spans :
+ ?scope:Common.instrumentation_scope ->
?spans:span list ->
?schema_url:string ->
unit ->
- scope_spansdefault_scope_spans () is the default value for type scope_spans
val default_resource_spans :
- ?resource:Resource.resource option ->
+ scope_spansmake_scope_spans … () is a builder for type scope_spans
val copy_scope_spans : scope_spans -> scope_spansval scope_spans_set_scope : scope_spans -> Common.instrumentation_scope -> unitset field scope in scope_spans
val scope_spans_set_spans : scope_spans -> span list -> unitset field spans in scope_spans
val scope_spans_has_schema_url : scope_spans -> boolpresence of field "schema_url" in scope_spans
val scope_spans_set_schema_url : scope_spans -> string -> unitset field schema_url in scope_spans
val make_resource_spans :
+ ?resource:Resource.resource ->
?scope_spans:scope_spans list ->
?schema_url:string ->
unit ->
- resource_spansdefault_resource_spans () is the default value for type resource_spans
val default_traces_data :
+ resource_spansmake_resource_spans … () is a builder for type resource_spans
val copy_resource_spans : resource_spans -> resource_spansval resource_spans_set_resource : resource_spans -> Resource.resource -> unitset field resource in resource_spans
val resource_spans_set_scope_spans : resource_spans -> scope_spans list -> unitset field scope_spans in resource_spans
val resource_spans_has_schema_url : resource_spans -> boolpresence of field "schema_url" in resource_spans
val resource_spans_set_schema_url : resource_spans -> string -> unitset field schema_url in resource_spans
val make_traces_data :
?resource_spans:resource_spans list ->
unit ->
- traces_datadefault_traces_data () is the default value for type traces_data
Make functions
val make_span_event :
- time_unix_nano:int64 ->
- name:string ->
- attributes:Common.key_value list ->
- dropped_attributes_count:int32 ->
- unit ->
- span_eventmake_span_event … () is a builder for type span_event
val make_span_link :
- trace_id:bytes ->
- span_id:bytes ->
- trace_state:string ->
- attributes:Common.key_value list ->
- dropped_attributes_count:int32 ->
- unit ->
- span_linkmake_span_link … () is a builder for type span_link
val make_status : message:string -> code:status_status_code -> unit -> statusmake_status … () is a builder for type status
val make_span :
- trace_id:bytes ->
- span_id:bytes ->
- trace_state:string ->
- parent_span_id:bytes ->
- name:string ->
- kind:span_span_kind ->
- start_time_unix_nano:int64 ->
- end_time_unix_nano:int64 ->
- attributes:Common.key_value list ->
- dropped_attributes_count:int32 ->
- events:span_event list ->
- dropped_events_count:int32 ->
- links:span_link list ->
- dropped_links_count:int32 ->
- ?status:status option ->
- unit ->
- spanmake_span … () is a builder for type span
val make_scope_spans :
- ?scope:Common.instrumentation_scope option ->
- spans:span list ->
- schema_url:string ->
- unit ->
- scope_spansmake_scope_spans … () is a builder for type scope_spans
val make_resource_spans :
- ?resource:Resource.resource option ->
- scope_spans:scope_spans list ->
- schema_url:string ->
- unit ->
- resource_spansmake_resource_spans … () is a builder for type resource_spans
val make_traces_data :
- resource_spans:resource_spans list ->
- unit ->
- traces_datamake_traces_data … () is a builder for type traces_data
Formatters
val pp_span_span_kind : Stdlib.Format.formatter -> span_span_kind -> unitpp_span_span_kind v formats v
val pp_span_event : Stdlib.Format.formatter -> span_event -> unitpp_span_event v formats v
val pp_span_link : Stdlib.Format.formatter -> span_link -> unitpp_span_link v formats v
val pp_status_status_code :
+ traces_datamake_traces_data … () is a builder for type traces_data
val copy_traces_data : traces_data -> traces_dataval traces_data_set_resource_spans : traces_data -> resource_spans list -> unitset field resource_spans in traces_data
Formatters
val pp_span_span_kind : Stdlib.Format.formatter -> span_span_kind -> unitpp_span_span_kind v formats v
val pp_span_event : Stdlib.Format.formatter -> span_event -> unitpp_span_event v formats v
val pp_span_link : Stdlib.Format.formatter -> span_link -> unitpp_span_link v formats v
val pp_status_status_code :
Stdlib.Format.formatter ->
status_status_code ->
- unitpp_status_status_code v formats v
val pp_status : Stdlib.Format.formatter -> status -> unitpp_status v formats v
val pp_span : Stdlib.Format.formatter -> span -> unitpp_span v formats v
val pp_scope_spans : Stdlib.Format.formatter -> scope_spans -> unitpp_scope_spans v formats v
val pp_resource_spans : Stdlib.Format.formatter -> resource_spans -> unitpp_resource_spans v formats v
val pp_traces_data : Stdlib.Format.formatter -> traces_data -> unitpp_traces_data v formats v
Protobuf Encoding
val encode_pb_span_span_kind : span_span_kind -> Pbrt.Encoder.t -> unitencode_pb_span_span_kind v encoder encodes v with the given encoder
val encode_pb_span_event : span_event -> Pbrt.Encoder.t -> unitencode_pb_span_event v encoder encodes v with the given encoder
val encode_pb_span_link : span_link -> Pbrt.Encoder.t -> unitencode_pb_span_link v encoder encodes v with the given encoder
val encode_pb_status_status_code : status_status_code -> Pbrt.Encoder.t -> unitencode_pb_status_status_code v encoder encodes v with the given encoder
val encode_pb_status : status -> Pbrt.Encoder.t -> unitencode_pb_status v encoder encodes v with the given encoder
val encode_pb_span : span -> Pbrt.Encoder.t -> unitencode_pb_span v encoder encodes v with the given encoder
val encode_pb_scope_spans : scope_spans -> Pbrt.Encoder.t -> unitencode_pb_scope_spans v encoder encodes v with the given encoder
val encode_pb_resource_spans : resource_spans -> Pbrt.Encoder.t -> unitencode_pb_resource_spans v encoder encodes v with the given encoder
val encode_pb_traces_data : traces_data -> Pbrt.Encoder.t -> unitencode_pb_traces_data v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_span_span_kind : Pbrt.Decoder.t -> span_span_kinddecode_pb_span_span_kind decoder decodes a span_span_kind binary value from decoder
val decode_pb_span_event : Pbrt.Decoder.t -> span_eventdecode_pb_span_event decoder decodes a span_event binary value from decoder
val decode_pb_span_link : Pbrt.Decoder.t -> span_linkdecode_pb_span_link decoder decodes a span_link binary value from decoder
val decode_pb_status_status_code : Pbrt.Decoder.t -> status_status_codedecode_pb_status_status_code decoder decodes a status_status_code binary value from decoder
val decode_pb_status : Pbrt.Decoder.t -> statusdecode_pb_status decoder decodes a status binary value from decoder
val decode_pb_span : Pbrt.Decoder.t -> spandecode_pb_span decoder decodes a span binary value from decoder
val decode_pb_scope_spans : Pbrt.Decoder.t -> scope_spansdecode_pb_scope_spans decoder decodes a scope_spans binary value from decoder
val decode_pb_resource_spans : Pbrt.Decoder.t -> resource_spansdecode_pb_resource_spans decoder decodes a resource_spans binary value from decoder
val decode_pb_traces_data : Pbrt.Decoder.t -> traces_datadecode_pb_traces_data decoder decodes a traces_data binary value from decoder
+ unitpp_status_status_code v formats v
val pp_status : Stdlib.Format.formatter -> status -> unitpp_status v formats v
val pp_span : Stdlib.Format.formatter -> span -> unitpp_span v formats v
val pp_scope_spans : Stdlib.Format.formatter -> scope_spans -> unitpp_scope_spans v formats v
val pp_resource_spans : Stdlib.Format.formatter -> resource_spans -> unitpp_resource_spans v formats v
val pp_traces_data : Stdlib.Format.formatter -> traces_data -> unitpp_traces_data v formats v
val pp_span_flags : Stdlib.Format.formatter -> span_flags -> unitpp_span_flags v formats v
Protobuf Encoding
val encode_pb_span_span_kind : span_span_kind -> Pbrt.Encoder.t -> unitencode_pb_span_span_kind v encoder encodes v with the given encoder
val encode_pb_span_event : span_event -> Pbrt.Encoder.t -> unitencode_pb_span_event v encoder encodes v with the given encoder
val encode_pb_span_link : span_link -> Pbrt.Encoder.t -> unitencode_pb_span_link v encoder encodes v with the given encoder
val encode_pb_status_status_code : status_status_code -> Pbrt.Encoder.t -> unitencode_pb_status_status_code v encoder encodes v with the given encoder
val encode_pb_status : status -> Pbrt.Encoder.t -> unitencode_pb_status v encoder encodes v with the given encoder
val encode_pb_span : span -> Pbrt.Encoder.t -> unitencode_pb_span v encoder encodes v with the given encoder
val encode_pb_scope_spans : scope_spans -> Pbrt.Encoder.t -> unitencode_pb_scope_spans v encoder encodes v with the given encoder
val encode_pb_resource_spans : resource_spans -> Pbrt.Encoder.t -> unitencode_pb_resource_spans v encoder encodes v with the given encoder
val encode_pb_traces_data : traces_data -> Pbrt.Encoder.t -> unitencode_pb_traces_data v encoder encodes v with the given encoder
val encode_pb_span_flags : span_flags -> Pbrt.Encoder.t -> unitencode_pb_span_flags v encoder encodes v with the given encoder
Protobuf Decoding
val decode_pb_span_span_kind : Pbrt.Decoder.t -> span_span_kinddecode_pb_span_span_kind decoder decodes a span_span_kind binary value from decoder
val decode_pb_span_event : Pbrt.Decoder.t -> span_eventdecode_pb_span_event decoder decodes a span_event binary value from decoder
val decode_pb_span_link : Pbrt.Decoder.t -> span_linkdecode_pb_span_link decoder decodes a span_link binary value from decoder
val decode_pb_status_status_code : Pbrt.Decoder.t -> status_status_codedecode_pb_status_status_code decoder decodes a status_status_code binary value from decoder
val decode_pb_status : Pbrt.Decoder.t -> statusdecode_pb_status decoder decodes a status binary value from decoder
val decode_pb_span : Pbrt.Decoder.t -> spandecode_pb_span decoder decodes a span binary value from decoder
val decode_pb_scope_spans : Pbrt.Decoder.t -> scope_spansdecode_pb_scope_spans decoder decodes a scope_spans binary value from decoder
val decode_pb_resource_spans : Pbrt.Decoder.t -> resource_spansdecode_pb_resource_spans decoder decodes a resource_spans binary value from decoder
val decode_pb_traces_data : Pbrt.Decoder.t -> traces_datadecode_pb_traces_data decoder decodes a traces_data binary value from decoder
val decode_pb_span_flags : Pbrt.Decoder.t -> span_flagsdecode_pb_span_flags decoder decodes a span_flags binary value from decoder
diff --git a/opentelemetry/Opentelemetry_proto/Trace_service/index.html b/opentelemetry/Opentelemetry_proto/Trace_service/index.html
index fbcd4005..47190055 100644
--- a/opentelemetry/Opentelemetry_proto/Trace_service/index.html
+++ b/opentelemetry/Opentelemetry_proto/Trace_service/index.html
@@ -1,25 +1,39 @@
-Trace_service (opentelemetry.Opentelemetry_proto.Trace_service) Module Opentelemetry_proto.Trace_service
Code for trace_service.proto
Types
Basic values
val default_export_trace_service_request :
+Trace_service (opentelemetry.Opentelemetry_proto.Trace_service) Module Opentelemetry_proto.Trace_service
Code for trace_service.proto
Types
type export_trace_partial_success = private {mutable _presence : Pbrt.Bitfield.t;(*presence for 2 fields
*)mutable rejected_spans : int64;mutable error_message : string;
}type export_trace_service_response = private {mutable partial_success : export_trace_partial_success option;
}Basic values
val default_export_trace_service_request : unit -> export_trace_service_requestdefault_export_trace_service_request () is a new empty value for type export_trace_service_request
val default_export_trace_partial_success : unit -> export_trace_partial_successdefault_export_trace_partial_success () is a new empty value for type export_trace_partial_success
val default_export_trace_service_response :
+ unit ->
+ export_trace_service_responsedefault_export_trace_service_response () is a new empty value for type export_trace_service_response
Make functions
val make_export_trace_service_request :
?resource_spans:Trace.resource_spans list ->
unit ->
- export_trace_service_requestdefault_export_trace_service_request () is the default value for type export_trace_service_request
val default_export_trace_partial_success :
+ export_trace_service_requestmake_export_trace_service_request … () is a builder for type export_trace_service_request
val copy_export_trace_service_request :
+ export_trace_service_request ->
+ export_trace_service_requestval export_trace_service_request_set_resource_spans :
+ export_trace_service_request ->
+ Trace.resource_spans list ->
+ unitset field resource_spans in export_trace_service_request
val make_export_trace_partial_success :
?rejected_spans:int64 ->
?error_message:string ->
unit ->
- export_trace_partial_successdefault_export_trace_partial_success () is the default value for type export_trace_partial_success
val default_export_trace_service_response :
- ?partial_success:export_trace_partial_success option ->
+ export_trace_partial_successmake_export_trace_partial_success … () is a builder for type export_trace_partial_success
val copy_export_trace_partial_success :
+ export_trace_partial_success ->
+ export_trace_partial_successval export_trace_partial_success_has_rejected_spans :
+ export_trace_partial_success ->
+ boolpresence of field "rejected_spans" in export_trace_partial_success
val export_trace_partial_success_set_rejected_spans :
+ export_trace_partial_success ->
+ int64 ->
+ unitset field rejected_spans in export_trace_partial_success
val export_trace_partial_success_has_error_message :
+ export_trace_partial_success ->
+ boolpresence of field "error_message" in export_trace_partial_success
val export_trace_partial_success_set_error_message :
+ export_trace_partial_success ->
+ string ->
+ unitset field error_message in export_trace_partial_success
val make_export_trace_service_response :
+ ?partial_success:export_trace_partial_success ->
unit ->
- export_trace_service_responsedefault_export_trace_service_response () is the default value for type export_trace_service_response
Make functions
val make_export_trace_service_request :
- resource_spans:Trace.resource_spans list ->
- unit ->
- export_trace_service_requestmake_export_trace_service_request … () is a builder for type export_trace_service_request
val make_export_trace_partial_success :
- rejected_spans:int64 ->
- error_message:string ->
- unit ->
- export_trace_partial_successmake_export_trace_partial_success … () is a builder for type export_trace_partial_success
val make_export_trace_service_response :
- ?partial_success:export_trace_partial_success option ->
- unit ->
- export_trace_service_responsemake_export_trace_service_response … () is a builder for type export_trace_service_response
Formatters
val pp_export_trace_service_request :
+ export_trace_service_responsemake_export_trace_service_response … () is a builder for type export_trace_service_response
val copy_export_trace_service_response :
+ export_trace_service_response ->
+ export_trace_service_responseval export_trace_service_response_set_partial_success :
+ export_trace_service_response ->
+ export_trace_partial_success ->
+ unitset field partial_success in export_trace_service_response
Formatters
val pp_export_trace_service_request :
Stdlib.Format.formatter ->
export_trace_service_request ->
unitpp_export_trace_service_request v formats v
val pp_export_trace_partial_success :
diff --git a/pbrt/Pbrt/Bitfield/index.html b/pbrt/Pbrt/Bitfield/index.html
new file mode 100644
index 00000000..0e2bcb6d
--- /dev/null
+++ b/pbrt/Pbrt/Bitfield/index.html
@@ -0,0 +1,2 @@
+
+Bitfield (pbrt.Pbrt.Bitfield) Module Pbrt.Bitfield
Bitfield used for presence
diff --git a/pbrt/Pbrt/Decoder/index.html b/pbrt/Pbrt/Decoder/index.html
index 9aab0e1e..b9197525 100644
--- a/pbrt/Pbrt/Decoder/index.html
+++ b/pbrt/Pbrt/Decoder/index.html
@@ -1,2 +1,2 @@
-Decoder (pbrt.Pbrt.Decoder) Module Pbrt.Decoder
Decoding protobufs.
Types
Creator
val of_bytes : bytes -> tof_bytes b creates a decoder positioned at start of bytes b.
val of_subbytes : bytes -> int -> int -> tof_subbytes b offset len creates a decoder positioned at offset in bytes b, reading at most len bytes. This is similar to of_bytes (Bytes.sub b offset len) but doesn't copy.
val of_string : string -> tof_string s creates a decoder positioned at start of string s.
val of_substring : string -> int -> int -> tSee of_subbytes.
Errors
type error = | Incomplete| Overlong_varint| Malformed_field| Overflow of string| Unexpected_payload of string * payload_kind| Missing_field of string| Malformed_variant of string
val error_to_string : error -> stringerror_to_string e converts error e to its string representation.
exception Failure of errorRaised in decoding combinators
malformed_variant variant_name raises the exception Protobuf.Decoder.Failure (Malformed_variant variant_name)
val unexpected_payload : string -> payload_kind -> 'aunexpected_payload field_name pk raises the exception Protobuf.Decoder.Failure (Unexpected_payload (field_name, pk))
missing_field field_name raises the exception Protobuf.Decoder.Failure (Missing_field field_name)
Decoding Functions
val key : t -> (int * payload_kind) optionkey d reads a key and a payload kind from d. If d has exhausted its input when the function is called, returns None. If d has exhausted its input while reading, raises Failure Incomplete. If the payload kind is unknown, raises Failure Malformed_field.
val skip : t -> payload_kind -> unitskip d pk skips the next value of kind pk in d. If skipping the value would exhaust input of d, raises Encoding_error Incomplete.
nested d returns a decoder for a message nested in d. If reading the message would exhaust input of d, raises Failure Incomplete.
val empty_nested : t -> unitempty_nested d skips an empty message of 0 length. If reading the message would exhaust input of d, raises Failure Incomplete.
packed_fold f e0 d folds over the a packed encoding with f acc d and initial value e0. If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_varint : t -> intint_as_varint d reads an int value from d with Varint encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_zigzag : t -> intint_as_zigzag d reads an int value from d with zigzag encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int32_as_varint : t -> int32int32_as_varint d reads an int32 value from d with Varint encoding. If the integer value read cannot be converted to int32 raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int32_as_zigzag : t -> int32int32_as_varint d reads an int32 value from d with zigzag encoding. If the integer value read cannot be converted to int32 raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int64_as_varint : t -> int64int64_as_varint d reads an int64 value from d with Varint encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int64_as_zigzag : t -> int64int64_as_varint d reads an int64 value from d with zigzag encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int32_as_bits32 : t -> int32int32_as_bits32 d reads an int32 value from d with 32 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int64_as_bits64 : t -> int64int64_as_bits64 d reads an int64 value from d with 64 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val uint32_as_varint : t -> [ `unsigned of int32 ]val uint32_as_zigzag : t -> [ `unsigned of int32 ]val uint64_as_varint : t -> [ `unsigned of int64 ]val uint64_as_zigzag : t -> [ `unsigned of int64 ]val uint32_as_bits32 : t -> [ `unsigned of int32 ]val uint64_as_bits64 : t -> [ `unsigned of int64 ]val bool : t -> boolbool d reads a bool value from d with varing encoding. If the boolean value in d is neither 0 or 1 raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val float_as_bits32 : t -> floatfloat_as_bits32 d reads a float value from d with 32 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val float_as_bits64 : t -> floatfloat_as_bits64 d reads a float value from d with 64 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_bits32 : t -> intint_as_bits32 d reads a int value from d with 32 bit encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_bits64 : t -> intint_as_bits64 d reads a int value from d with 64 bit encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val string : t -> stringstring d reads a string value from d. If reading the message would exhaust input of d, raises Failure Incomplete.
val bytes : t -> bytesbytes d reads a bytes value from d. If reading the message would exhaust input of d, raises Failure Incomplete.
val wrapper_double_value : t -> float optionval wrapper_float_value : t -> float optionval wrapper_int64_value : t -> int64 optionval wrapper_int32_value : t -> int32 optionval wrapper_bool_value : t -> bool optionval wrapper_string_value : t -> string optionval wrapper_bytes_value : t -> bytes option
+Decoder (pbrt.Pbrt.Decoder) Module Pbrt.Decoder
Decoding protobufs.
Types
Creator
val of_bytes : bytes -> tof_bytes b creates a decoder positioned at start of bytes b.
val of_subbytes : bytes -> int -> int -> tof_subbytes b offset len creates a decoder positioned at offset in bytes b, reading at most len bytes. This is similar to of_bytes (Bytes.sub b offset len) but doesn't copy.
val of_string : string -> tof_string s creates a decoder positioned at start of string s.
val of_substring : string -> int -> int -> tSee of_subbytes.
Errors
type error = | Incomplete| Overlong_varint| Malformed_field| Overflow of string| Unexpected_payload of string * payload_kind| Missing_field of string| Malformed_variant of string
val error_to_string : error -> stringerror_to_string e converts error e to its string representation.
exception Failure of errorRaised in decoding combinators
malformed_variant variant_name raises the exception Protobuf.Decoder.Failure (Malformed_variant variant_name)
val unexpected_payload : string -> payload_kind -> 'aunexpected_payload field_name pk raises the exception Protobuf.Decoder.Failure (Unexpected_payload (field_name, pk))
val unexpected_payload_message : string -> int -> payload_kind -> 'aHelper specifically for messages, wrapping around unexpected_payload.
missing_field field_name raises the exception Protobuf.Decoder.Failure (Missing_field field_name)
Decoding Functions
val key : t -> (int * payload_kind) optionkey d reads a key and a payload kind from d. If d has exhausted its input when the function is called, returns None. If d has exhausted its input while reading, raises Failure Incomplete. If the payload kind is unknown, raises Failure Malformed_field.
val skip : t -> payload_kind -> unitskip d pk skips the next value of kind pk in d. If skipping the value would exhaust input of d, raises Encoding_error Incomplete.
nested d returns a decoder for a message nested in d. If reading the message would exhaust input of d, raises Failure Incomplete.
val empty_nested : t -> unitempty_nested d skips an empty message of 0 length. If reading the message would exhaust input of d, raises Failure Incomplete.
packed_fold f e0 d folds over the a packed encoding with f acc d and initial value e0. If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_varint : t -> intint_as_varint d reads an int value from d with Varint encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_zigzag : t -> intint_as_zigzag d reads an int value from d with zigzag encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int32_as_varint : t -> int32int32_as_varint d reads an int32 value from d with Varint encoding. If the integer value read cannot be converted to int32 raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int32_as_zigzag : t -> int32int32_as_varint d reads an int32 value from d with zigzag encoding. If the integer value read cannot be converted to int32 raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int64_as_varint : t -> int64int64_as_varint d reads an int64 value from d with Varint encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int64_as_zigzag : t -> int64int64_as_varint d reads an int64 value from d with zigzag encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int32_as_bits32 : t -> int32int32_as_bits32 d reads an int32 value from d with 32 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int64_as_bits64 : t -> int64int64_as_bits64 d reads an int64 value from d with 64 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val uint32_as_varint : t -> [ `unsigned of int32 ]val uint32_as_zigzag : t -> [ `unsigned of int32 ]val uint64_as_varint : t -> [ `unsigned of int64 ]val uint64_as_zigzag : t -> [ `unsigned of int64 ]val uint32_as_bits32 : t -> [ `unsigned of int32 ]val uint64_as_bits64 : t -> [ `unsigned of int64 ]val bool : t -> boolbool d reads a bool value from d with varing encoding. If the boolean value in d is neither 0 or 1 raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val float_as_bits32 : t -> floatfloat_as_bits32 d reads a float value from d with 32 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val float_as_bits64 : t -> floatfloat_as_bits64 d reads a float value from d with 64 bit encoding. If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_bits32 : t -> intint_as_bits32 d reads a int value from d with 32 bit encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val int_as_bits64 : t -> intint_as_bits64 d reads a int value from d with 64 bit encoding. If the integer value read cannot be converted to int raises Failure Overflow "". If reading the message would exhaust input of d, raises Failure Incomplete.
val string : t -> stringstring d reads a string value from d. If reading the message would exhaust input of d, raises Failure Incomplete.
val bytes : t -> bytesbytes d reads a bytes value from d. If reading the message would exhaust input of d, raises Failure Incomplete.
val wrapper_double_value : t -> float optionval wrapper_float_value : t -> float optionval wrapper_int64_value : t -> int64 optionval wrapper_int32_value : t -> int32 optionval wrapper_bool_value : t -> bool optionval wrapper_string_value : t -> string optionval wrapper_bytes_value : t -> bytes option
diff --git a/pbrt/Pbrt/Pp/index.html b/pbrt/Pbrt/Pp/index.html
index bae925d8..12d8f966 100644
--- a/pbrt/Pbrt/Pp/index.html
+++ b/pbrt/Pbrt/Pp/index.html
@@ -10,9 +10,10 @@
formatter ->
('a, 'b) Stdlib.Hashtbl.t ->
unit
+ unitpp_record_field label_name fmt field_value formats a record field_value with label_name
diff --git a/pbrt/Pbrt/index.html b/pbrt/Pbrt/index.html
index 7bde2e8f..53c8e353 100644
--- a/pbrt/Pbrt/index.html
+++ b/pbrt/Pbrt/index.html
@@ -1,2 +1,2 @@
-Pbrt (pbrt.Pbrt) Module Pbrt
Protobuf runtime library
Type of payload in a given field.
This is only the wire type, the generated code will have a more precise type in general.
module Decoder : sig ... endDecoding protobufs.
module Encoder : sig ... endEncoding protobufs.
module List_util : sig ... endmodule Repeated_field : sig ... endOptimized representation for repeated fields
module Pp : sig ... endRuntime functions for Pretty Printing functionality
+Pbrt (pbrt.Pbrt) Module Pbrt
Protobuf runtime library
Type of payload in a given field.
This is only the wire type, the generated code will have a more precise type in general.
module Decoder : sig ... endDecoding protobufs.
module Bitfield : sig ... endBitfield used for presence
module Encoder : sig ... endEncoding protobufs.
module List_util : sig ... endmodule Repeated_field : sig ... endOptimized representation for repeated fields
module Pp : sig ... endRuntime functions for Pretty Printing functionality
diff --git a/pbrt/Pbrt_options/E/index.html b/pbrt/Pbrt_options/E/index.html
new file mode 100644
index 00000000..ee9599f5
--- /dev/null
+++ b/pbrt/Pbrt_options/E/index.html
@@ -0,0 +1,2 @@
+
+E (pbrt.Pbrt_options.E) Module Pbrt_options.E
All exceptions which could be raised by the generated option parsers.
exception Failure of errorDecoding/Encoding failure
unexpected_option_type record_name field_name raises Failure (Unexpected_json_type (record_name, field_name))
diff --git a/pbrt/Pbrt_options/index.html b/pbrt/Pbrt_options/index.html
new file mode 100644
index 00000000..99e74488
--- /dev/null
+++ b/pbrt/Pbrt_options/index.html
@@ -0,0 +1,2 @@
+
+Pbrt_options (pbrt.Pbrt_options) Module Pbrt_options
Protobuf
module E : sig ... endAll exceptions which could be raised by the generated option parsers.
type message_literal = (string * value) listand list_literal = value listand value = | Scalar_value of constant| Message_literal of message_literal| List_literal of list_literal
Helper module for the generated code for common functionality
val string : value -> string -> string -> stringval float : value -> string -> string -> floatval int32 : value -> string -> string -> int32val int64 : value -> string -> string -> int64val int : value -> string -> string -> intval bool : value -> string -> string -> boolval bytes : value -> string -> string -> bytesval unit : value -> string -> string -> unit
diff --git a/pbrt/_doc-dir/CHANGES.md b/pbrt/_doc-dir/CHANGES.md
index 70d486f8..7c92a1a4 100644
--- a/pbrt/_doc-dir/CHANGES.md
+++ b/pbrt/_doc-dir/CHANGES.md
@@ -1,4 +1,21 @@
+## 4.0
+
+- better parsing of protobuf options
+- generation of validation code with `--pp_options`
+- feat: add `--encode-only` and `--decode-only` features
+- take presence semantics in account, to be closer to compliance
+ with the official protobuf docs and implementation
+ * use a bitfield to track presence for scalar fields
+ * use options in more places
+ * do not serialize non-present fields, to save space
+ * always generate `make` builders, setters, presence checks
+- merge mutable and immutable types, only generate a single record per
+ message type
+- feat codegen: use polyvariants for very large sum types
+- fix parser: handle `reserved` in enums
+- improved tests
+
## 3.1.1
- fix error in codegen for nested `oneof` in yojson
diff --git a/pbrt/_doc-dir/README.md b/pbrt/_doc-dir/README.md
index 8fc0370e..3d7b2dcf 100644
--- a/pbrt/_doc-dir/README.md
+++ b/pbrt/_doc-dir/README.md
@@ -192,13 +192,14 @@ Online documentation [here](https://mransan.github.io/ocaml-protoc/dev/pbrt/Pbrt
| Command line switch | Description | Runtime |
| ------------- | ------------- | ----------|
-| | Type definition along with a `default` constructor function to conveniently create values of that type | |
-| --make | `make` constructor functions | |
-| --binary | Binary encodings | `pbrt` |
-| --yojson | JSON encoding using the widely popular [yojson](https://github.com/mjambon/yojson) library | `pbrt_yojson` |
-| --bs | BuckleScript encoding using the BuckleScript core binding to JS json library | [bs-ocaml-protoc-json][3] |
-| --pp | pretty printing functions based on the Format module. | `pbrt` |
-| --services | RPC definitions. | `pbrt_services` |
+| | Type definition along with a `default` constructor function to conveniently create values of that type | n/a |
+| `--make` | `make` constructor functions | n/a |
+| `--binary` | Binary encodings | `pbrt` |
+| `--yojson` | JSON encoding using the widely popular [yojson](https://github.com/mjambon/yojson) library | `pbrt_yojson` |
+| `--bs` | BuckleScript encoding using the BuckleScript core binding to JS json library | [bs-ocaml-protoc-json][3] |
+| `--pp` | pretty printing functions based on the Format module. | `pbrt` |
+| `--pp_options` | Option validation. | `pbrt.options` |
+| `--services` | RPC definitions. | `pbrt_services` |
[3]:https://www.npmjs.com/package/bs-ocaml-protoc-json
diff --git a/pbrt/index.html b/pbrt/index.html
index 4979d134..50589ed6 100644
--- a/pbrt/index.html
+++ b/pbrt/index.html
@@ -1,2 +1,2 @@
-index (pbrt.index) Package pbrt
Pbrt Protobuf runtime library
+index (pbrt.index) Package pbrt
Pbrt Protobuf runtime libraryPbrt_options Protobuf