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_ocurl (opentelemetry-client-ocurl.Opentelemetry_client_ocurl)

Module Opentelemetry_client_ocurl

val get_headers : unit -> (string * string) list
val set_headers : (string * string) list -> unit

Set http headers that are sent on every http query to the collector.

module Config : sig ... end

Configuration for the ocurl backend

val create_backend : +Opentelemetry_client_ocurl (opentelemetry-client-ocurl.Opentelemetry_client_ocurl)

Module Opentelemetry_client_ocurl

val get_headers : unit -> (string * string) list
val set_headers : (string * string) list -> unit

Set http headers that are sent on every http query to the collector.

module Config : sig ... end

Configuration for the ocurl backend

val n_bytes_sent : unit -> int

Global counter of bytes sent (or attempted to be sent)

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 =
  1. | Severity_number_unspecified
  2. | Severity_number_trace
  3. | Severity_number_trace2
  4. | Severity_number_trace3
  5. | Severity_number_trace4
  6. | Severity_number_debug
  7. | Severity_number_debug2
  8. | Severity_number_debug3
  9. | Severity_number_debug4
  10. | Severity_number_info
  11. | Severity_number_info2
  12. | Severity_number_info3
  13. | Severity_number_info4
  14. | Severity_number_warn
  15. | Severity_number_warn2
  16. | Severity_number_warn3
  17. | Severity_number_warn4
  18. | Severity_number_error
  19. | Severity_number_error2
  20. | Severity_number_error3
  21. | Severity_number_error4
  22. | Severity_number_fatal
  23. | Severity_number_fatal2
  24. | Severity_number_fatal3
  25. | Severity_number_fatal4
type log_record = Opentelemetry_proto.Logs.log_record = {
  1. time_unix_nano : int64;
  2. observed_time_unix_nano : int64;
  3. severity_number : severity_number;
  4. severity_text : string;
  5. body : Opentelemetry_proto.Common.any_value option;
  6. attributes : Opentelemetry_proto.Common.key_value list;
  7. dropped_attributes_count : int32;
  8. flags : int32;
  9. trace_id : bytes;
  10. span_id : bytes;
}
type scope_logs = Opentelemetry_proto.Logs.scope_logs = {
  1. scope : Opentelemetry_proto.Common.instrumentation_scope option;
  2. log_records : log_record list;
  3. schema_url : string;
}
type resource_logs = Opentelemetry_proto.Logs.resource_logs = {
  1. resource : Opentelemetry_proto.Resource.resource option;
  2. scope_logs : scope_logs list;
  3. schema_url : string;
}
type logs_data = Opentelemetry_proto.Logs.logs_data = {
  1. resource_logs : resource_logs list;
}
type log_record_flags = Opentelemetry_proto.Logs.log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask

Basic values

val default_severity_number : unit -> severity_number

default_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 =
  1. | Severity_number_unspecified
  2. | Severity_number_trace
  3. | Severity_number_trace2
  4. | Severity_number_trace3
  5. | Severity_number_trace4
  6. | Severity_number_debug
  7. | Severity_number_debug2
  8. | Severity_number_debug3
  9. | Severity_number_debug4
  10. | Severity_number_info
  11. | Severity_number_info2
  12. | Severity_number_info3
  13. | Severity_number_info4
  14. | Severity_number_warn
  15. | Severity_number_warn2
  16. | Severity_number_warn3
  17. | Severity_number_warn4
  18. | Severity_number_error
  19. | Severity_number_error2
  20. | Severity_number_error3
  21. | Severity_number_error4
  22. | Severity_number_fatal
  23. | Severity_number_fatal2
  24. | Severity_number_fatal3
  25. | Severity_number_fatal4
type log_record = private Opentelemetry_proto.Logs.log_record = {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 9 fields

    *)
  2. mutable time_unix_nano : int64;
  3. mutable observed_time_unix_nano : int64;
  4. mutable severity_number : severity_number;
  5. mutable severity_text : string;
  6. mutable body : Opentelemetry_proto.Common.any_value option;
  7. mutable attributes : Opentelemetry_proto.Common.key_value list;
  8. mutable dropped_attributes_count : int32;
  9. mutable flags : int32;
  10. mutable trace_id : bytes;
  11. mutable span_id : bytes;
  12. mutable event_name : string;
}
type scope_logs = private Opentelemetry_proto.Logs.scope_logs = {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable scope : Opentelemetry_proto.Common.instrumentation_scope option;
  3. mutable log_records : log_record list;
  4. mutable schema_url : string;
}
type resource_logs = private Opentelemetry_proto.Logs.resource_logs = {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable resource : Opentelemetry_proto.Resource.resource option;
  3. mutable scope_logs : scope_logs list;
  4. mutable schema_url : string;
}
type logs_data = private Opentelemetry_proto.Logs.logs_data = {
  1. mutable resource_logs : resource_logs list;
}
type log_record_flags = Opentelemetry_proto.Logs.log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask

Basic values

val default_severity_number : unit -> severity_number

default_severity_number () is a new empty value for type severity_number

val default_log_record : unit -> log_record

default_log_record () is a new empty value for type log_record

val default_scope_logs : unit -> scope_logs

default_scope_logs () is a new empty value for type scope_logs

val default_resource_logs : unit -> resource_logs

default_resource_logs () is a new empty value for type resource_logs

val default_logs_data : unit -> logs_data

default_logs_data () is a new empty value for type logs_data

val default_log_record_flags : unit -> log_record_flags

default_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_record

default_log_record () is the default value for type log_record

val default_scope_logs : - ?scope:Opentelemetry_proto.Common.instrumentation_scope option -> + log_record

make_log_record … () is a builder for type log_record

val copy_log_record : log_record -> log_record
val log_record_has_time_unix_nano : log_record -> bool

presence of field "time_unix_nano" in log_record

val log_record_set_time_unix_nano : log_record -> int64 -> unit

set field time_unix_nano in log_record

val log_record_has_observed_time_unix_nano : log_record -> bool

presence of field "observed_time_unix_nano" in log_record

val log_record_set_observed_time_unix_nano : log_record -> int64 -> unit

set field observed_time_unix_nano in log_record

val log_record_has_severity_number : log_record -> bool

presence of field "severity_number" in log_record

val log_record_set_severity_number : log_record -> severity_number -> unit

set field severity_number in log_record

val log_record_has_severity_text : log_record -> bool

presence of field "severity_text" in log_record

val log_record_set_severity_text : log_record -> string -> unit

set field severity_text in log_record

val log_record_set_body : + log_record -> + Opentelemetry_proto.Common.any_value -> + unit

set field body in log_record

val log_record_set_attributes : + log_record -> + Opentelemetry_proto.Common.key_value list -> + unit

set field attributes in log_record

val log_record_has_dropped_attributes_count : log_record -> bool

presence of field "dropped_attributes_count" in log_record

val log_record_set_dropped_attributes_count : log_record -> int32 -> unit

set field dropped_attributes_count in log_record

val log_record_has_flags : log_record -> bool

presence of field "flags" in log_record

val log_record_set_flags : log_record -> int32 -> unit

set field flags in log_record

val log_record_has_trace_id : log_record -> bool

presence of field "trace_id" in log_record

val log_record_set_trace_id : log_record -> bytes -> unit

set field trace_id in log_record

val log_record_has_span_id : log_record -> bool

presence of field "span_id" in log_record

val log_record_set_span_id : log_record -> bytes -> unit

set field span_id in log_record

val log_record_has_event_name : log_record -> bool

presence of field "event_name" in log_record

val log_record_set_event_name : log_record -> string -> unit

set 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_logs

default_scope_logs () is the default value for type scope_logs

val default_resource_logs : - ?resource:Opentelemetry_proto.Resource.resource option -> + scope_logs

make_scope_logs … () is a builder for type scope_logs

val copy_scope_logs : scope_logs -> scope_logs
val scope_logs_set_scope : + scope_logs -> + Opentelemetry_proto.Common.instrumentation_scope -> + unit

set field scope in scope_logs

val scope_logs_set_log_records : scope_logs -> log_record list -> unit

set field log_records in scope_logs

val scope_logs_has_schema_url : scope_logs -> bool

presence of field "schema_url" in scope_logs

val scope_logs_set_schema_url : scope_logs -> string -> unit

set 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_logs

default_resource_logs () is the default value for type resource_logs

val default_logs_data : ?resource_logs:resource_logs list -> unit -> logs_data

default_logs_data () is the default value for type logs_data

val default_log_record_flags : unit -> log_record_flags

default_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_record

make_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_logs

make_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_logs

make_resource_logs … () is a builder for type resource_logs

val make_logs_data : resource_logs:resource_logs list -> unit -> logs_data

make_logs_data … () is a builder for type logs_data

Formatters

val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unit

pp_severity_number v formats v

val pp_log_record : Stdlib.Format.formatter -> log_record -> unit

pp_log_record v formats v

val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unit

pp_scope_logs v formats v

val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unit

pp_resource_logs v formats v

val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unit

pp_logs_data v formats v

val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unit

pp_log_record_flags v formats v

Protobuf Encoding

val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unit

encode_pb_severity_number v encoder encodes v with the given encoder

val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unit

encode_pb_log_record v encoder encodes v with the given encoder

val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unit

encode_pb_scope_logs v encoder encodes v with the given encoder

val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unit

encode_pb_resource_logs v encoder encodes v with the given encoder

val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unit

encode_pb_logs_data v encoder encodes v with the given encoder

val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unit

encode_pb_log_record_flags v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_severity_number : Pbrt.Decoder.t -> severity_number

decode_pb_severity_number decoder decodes a severity_number binary value from decoder

val decode_pb_log_record : Pbrt.Decoder.t -> log_record

decode_pb_log_record decoder decodes a log_record binary value from decoder

val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logs

decode_pb_scope_logs decoder decodes a scope_logs binary value from decoder

val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logs

decode_pb_resource_logs decoder decodes a resource_logs binary value from decoder

val decode_pb_logs_data : Pbrt.Decoder.t -> logs_data

decode_pb_logs_data decoder decodes a logs_data binary value from decoder

val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flags

decode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder

include module type of struct include Opentelemetry.Logs end
type severity = Opentelemetry_proto.Logs.severity_number =
  1. | Severity_number_unspecified
  2. | Severity_number_trace
  3. | Severity_number_trace2
  4. | Severity_number_trace3
  5. | Severity_number_trace4
  6. | Severity_number_debug
  7. | Severity_number_debug2
  8. | Severity_number_debug3
  9. | Severity_number_debug4
  10. | Severity_number_info
  11. | Severity_number_info2
  12. | Severity_number_info3
  13. | Severity_number_info4
  14. | Severity_number_warn
  15. | Severity_number_warn2
  16. | Severity_number_warn3
  17. | Severity_number_warn4
  18. | Severity_number_error
  19. | Severity_number_error2
  20. | Severity_number_error3
  21. | Severity_number_error4
  22. | Severity_number_fatal
  23. | Severity_number_fatal2
  24. | Severity_number_fatal3
  25. | Severity_number_fatal4

Severity level of a log event

val pp_severity : + resource_logs

make_resource_logs … () is a builder for type resource_logs

val copy_resource_logs : resource_logs -> resource_logs
val resource_logs_set_resource : + resource_logs -> + Opentelemetry_proto.Resource.resource -> + unit

set field resource in resource_logs

val resource_logs_set_scope_logs : resource_logs -> scope_logs list -> unit

set field scope_logs in resource_logs

val resource_logs_has_schema_url : resource_logs -> bool

presence of field "schema_url" in resource_logs

val resource_logs_set_schema_url : resource_logs -> string -> unit

set field schema_url in resource_logs

val make_logs_data : ?resource_logs:resource_logs list -> unit -> logs_data

make_logs_data … () is a builder for type logs_data

val copy_logs_data : logs_data -> logs_data
val logs_data_set_resource_logs : logs_data -> resource_logs list -> unit

set field resource_logs in logs_data

Formatters

val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unit

pp_severity_number v formats v

val pp_log_record : Stdlib.Format.formatter -> log_record -> unit

pp_log_record v formats v

val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unit

pp_scope_logs v formats v

val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unit

pp_resource_logs v formats v

val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unit

pp_logs_data v formats v

val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unit

pp_log_record_flags v formats v

Protobuf Encoding

val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unit

encode_pb_severity_number v encoder encodes v with the given encoder

val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unit

encode_pb_log_record v encoder encodes v with the given encoder

val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unit

encode_pb_scope_logs v encoder encodes v with the given encoder

val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unit

encode_pb_resource_logs v encoder encodes v with the given encoder

val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unit

encode_pb_logs_data v encoder encodes v with the given encoder

val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unit

encode_pb_log_record_flags v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_severity_number : Pbrt.Decoder.t -> severity_number

decode_pb_severity_number decoder decodes a severity_number binary value from decoder

val decode_pb_log_record : Pbrt.Decoder.t -> log_record

decode_pb_log_record decoder decodes a log_record binary value from decoder

val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logs

decode_pb_scope_logs decoder decodes a scope_logs binary value from decoder

val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logs

decode_pb_resource_logs decoder decodes a resource_logs binary value from decoder

val decode_pb_logs_data : Pbrt.Decoder.t -> logs_data

decode_pb_logs_data decoder decodes a logs_data binary value from decoder

val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flags

decode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder

include module type of struct include Opentelemetry.Logs end
type severity = Opentelemetry_proto.Logs.severity_number =
  1. | Severity_number_unspecified
  2. | Severity_number_trace
  3. | Severity_number_trace2
  4. | Severity_number_trace3
  5. | Severity_number_trace4
  6. | Severity_number_debug
  7. | Severity_number_debug2
  8. | Severity_number_debug3
  9. | Severity_number_debug4
  10. | Severity_number_info
  11. | Severity_number_info2
  12. | Severity_number_info3
  13. | Severity_number_info4
  14. | Severity_number_warn
  15. | Severity_number_warn2
  16. | Severity_number_warn3
  17. | Severity_number_warn4
  18. | Severity_number_error
  19. | Severity_number_error2
  20. | Severity_number_error3
  21. | Severity_number_error4
  22. | Severity_number_fatal
  23. | Severity_number_fatal2
  24. | Severity_number_fatal3
  25. | Severity_number_fatal4

Severity level of a log event

type flags = Opentelemetry_proto.Logs.log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask
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

type t = Proto.Trace.status = {
  1. message : string;
  2. code : Proto.Trace.status_status_code;
}
type code = Proto.Trace.status_status_code =
  1. | Status_code_unset
  2. | Status_code_ok
  3. | Status_code_error
val make : message:string -> code:code -> t
+Span_status (opentelemetry.Opentelemetry.Span_status)

Module Opentelemetry.Span_status

type t = private Proto.Trace.status = {
  1. mutable _presence : Pbrt.Bitfield.t;
  2. mutable message : string;
  3. mutable code : Proto.Trace.status_status_code;
}
type code = Proto.Trace.status_status_code =
  1. | Status_code_unset
  2. | Status_code_ok
  3. | Status_code_error
val make : message:string -> code:code -> t
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 =
  1. | String_value of string
  2. | Bool_value of bool
  3. | Int_value of int64
  4. | Double_value of float
  5. | Array_value of array_value
  6. | Kvlist_value of key_value_list
  7. | Bytes_value of bytes
and array_value = {
  1. values : any_value list;
}
and key_value_list = {
  1. values : key_value list;
}
and key_value = {
  1. key : string;
  2. value : any_value option;
}
type instrumentation_scope = {
  1. name : string;
  2. version : string;
  3. attributes : key_value list;
  4. dropped_attributes_count : int32;
}

Basic values

val default_any_value : unit -> any_value

default_any_value () is the default value for type any_value

val default_array_value : ?values:any_value list -> unit -> array_value

default_array_value () is the default value for type array_value

val default_key_value_list : ?values:key_value list -> unit -> key_value_list

default_key_value_list () is the default value for type key_value_list

val default_key_value : - ?key:string -> - ?value:any_value option -> - unit -> - key_value

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 =
  1. | String_value of string
  2. | Bool_value of bool
  3. | Int_value of int64
  4. | Double_value of float
  5. | Array_value of array_value
  6. | Kvlist_value of key_value_list
  7. | Bytes_value of bytes
and array_value = private {
  1. mutable values : any_value list;
}
and key_value_list = private {
  1. mutable values : key_value list;
}
and key_value = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable key : string;
  3. mutable value : any_value option;
}
type instrumentation_scope = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 3 fields

    *)
  2. mutable name : string;
  3. mutable version : string;
  4. mutable attributes : key_value list;
  5. mutable dropped_attributes_count : int32;
}
type entity_ref = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable schema_url : string;
  3. mutable type_ : string;
  4. mutable id_keys : string list;
  5. mutable description_keys : string list;
}

Basic values

val default_any_value : unit -> any_value

default_any_value () is a new empty value for type any_value

val default_array_value : unit -> array_value

default_array_value () is a new empty value for type array_value

val default_key_value_list : unit -> key_value_list

default_key_value_list () is a new empty value for type key_value_list

val default_key_value : unit -> key_value

default_key_value () is a new empty value for type key_value

val default_instrumentation_scope : unit -> instrumentation_scope

default_instrumentation_scope () is a new empty value for type instrumentation_scope

val default_entity_ref : unit -> entity_ref

default_entity_ref () is a new empty value for type entity_ref

Make functions

val make_array_value : ?values:any_value list -> unit -> array_value

make_array_value … () is a builder for type array_value

val copy_array_value : array_value -> array_value
val array_value_set_values : array_value -> any_value list -> unit

set field values in array_value

val make_key_value_list : ?values:key_value list -> unit -> key_value_list

make_key_value_list … () is a builder for type key_value_list

val copy_key_value_list : key_value_list -> key_value_list
val key_value_list_set_values : key_value_list -> key_value list -> unit

set field values in key_value_list

val make_key_value : ?key:string -> ?value:any_value -> unit -> key_value

make_key_value … () is a builder for type key_value

val copy_key_value : key_value -> key_value
val key_value_has_key : key_value -> bool

presence of field "key" in key_value

val key_value_set_key : key_value -> string -> unit

set field key in key_value

val key_value_set_value : key_value -> any_value -> unit

set field value in key_value

val make_instrumentation_scope : ?name:string -> ?version:string -> ?attributes:key_value list -> ?dropped_attributes_count:int32 -> unit -> - instrumentation_scope

default_instrumentation_scope () is the default value for type instrumentation_scope

Make functions

val make_array_value : values:any_value list -> unit -> array_value

make_array_value … () is a builder for type array_value

val make_key_value_list : values:key_value list -> unit -> key_value_list

make_key_value_list … () is a builder for type key_value_list

val make_key_value : key:string -> ?value:any_value option -> unit -> key_value

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_scope

make_instrumentation_scope … () is a builder for type instrumentation_scope

val copy_instrumentation_scope : instrumentation_scope -> instrumentation_scope
val instrumentation_scope_has_name : instrumentation_scope -> bool

presence of field "name" in instrumentation_scope

val instrumentation_scope_set_name : instrumentation_scope -> string -> unit

set field name in instrumentation_scope

val instrumentation_scope_has_version : instrumentation_scope -> bool

presence of field "version" in instrumentation_scope

val instrumentation_scope_set_version : instrumentation_scope -> string -> unit

set field version in instrumentation_scope

val instrumentation_scope_set_attributes : + instrumentation_scope -> + key_value list -> + unit

set field attributes in instrumentation_scope

val instrumentation_scope_has_dropped_attributes_count : + instrumentation_scope -> + bool

presence of field "dropped_attributes_count" in instrumentation_scope

val instrumentation_scope_set_dropped_attributes_count : + instrumentation_scope -> + int32 -> + unit

set 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_scope

make_instrumentation_scope … () is a builder for type instrumentation_scope

Formatters

val pp_any_value : Stdlib.Format.formatter -> any_value -> unit

pp_any_value v formats v

val pp_array_value : Stdlib.Format.formatter -> array_value -> unit

pp_array_value v formats v

val pp_key_value_list : Stdlib.Format.formatter -> key_value_list -> unit

pp_key_value_list v formats v

val pp_key_value : Stdlib.Format.formatter -> key_value -> unit

pp_key_value v formats v

val pp_instrumentation_scope : + entity_ref

make_entity_ref … () is a builder for type entity_ref

val copy_entity_ref : entity_ref -> entity_ref
val entity_ref_has_schema_url : entity_ref -> bool

presence of field "schema_url" in entity_ref

val entity_ref_set_schema_url : entity_ref -> string -> unit

set field schema_url in entity_ref

val entity_ref_has_type_ : entity_ref -> bool

presence of field "type_" in entity_ref

val entity_ref_set_type_ : entity_ref -> string -> unit

set field type_ in entity_ref

val entity_ref_set_id_keys : entity_ref -> string list -> unit

set field id_keys in entity_ref

val entity_ref_set_description_keys : entity_ref -> string list -> unit

set field description_keys in entity_ref

Formatters

val pp_any_value : Stdlib.Format.formatter -> any_value -> unit

pp_any_value v formats v

val pp_array_value : Stdlib.Format.formatter -> array_value -> unit

pp_array_value v formats v

val pp_key_value_list : Stdlib.Format.formatter -> key_value_list -> unit

pp_key_value_list v formats v

val pp_key_value : Stdlib.Format.formatter -> key_value -> unit

pp_key_value v formats v

val pp_instrumentation_scope : Stdlib.Format.formatter -> instrumentation_scope -> - unit

pp_instrumentation_scope v formats v

Protobuf Encoding

val encode_pb_any_value : any_value -> Pbrt.Encoder.t -> unit

encode_pb_any_value v encoder encodes v with the given encoder

val encode_pb_array_value : array_value -> Pbrt.Encoder.t -> unit

encode_pb_array_value v encoder encodes v with the given encoder

val encode_pb_key_value_list : key_value_list -> Pbrt.Encoder.t -> unit

encode_pb_key_value_list v encoder encodes v with the given encoder

val encode_pb_key_value : key_value -> Pbrt.Encoder.t -> unit

encode_pb_key_value v encoder encodes v with the given encoder

val encode_pb_instrumentation_scope : + unit

pp_instrumentation_scope v formats v

val pp_entity_ref : Stdlib.Format.formatter -> entity_ref -> unit

pp_entity_ref v formats v

Protobuf Encoding

val encode_pb_any_value : any_value -> Pbrt.Encoder.t -> unit

encode_pb_any_value v encoder encodes v with the given encoder

val encode_pb_array_value : array_value -> Pbrt.Encoder.t -> unit

encode_pb_array_value v encoder encodes v with the given encoder

val encode_pb_key_value_list : key_value_list -> Pbrt.Encoder.t -> unit

encode_pb_key_value_list v encoder encodes v with the given encoder

val encode_pb_key_value : key_value -> Pbrt.Encoder.t -> unit

encode_pb_key_value v encoder encodes v with the given encoder

val encode_pb_instrumentation_scope : instrumentation_scope -> Pbrt.Encoder.t -> - unit

encode_pb_instrumentation_scope v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_any_value : Pbrt.Decoder.t -> any_value

decode_pb_any_value decoder decodes a any_value binary value from decoder

val decode_pb_array_value : Pbrt.Decoder.t -> array_value

decode_pb_array_value decoder decodes a array_value binary value from decoder

val decode_pb_key_value_list : Pbrt.Decoder.t -> key_value_list

decode_pb_key_value_list decoder decodes a key_value_list binary value from decoder

val decode_pb_key_value : Pbrt.Decoder.t -> key_value

decode_pb_key_value decoder decodes a key_value binary value from decoder

val decode_pb_instrumentation_scope : Pbrt.Decoder.t -> instrumentation_scope

decode_pb_instrumentation_scope decoder decodes a instrumentation_scope binary value from decoder

+ unit

encode_pb_instrumentation_scope v encoder encodes v with the given encoder

val encode_pb_entity_ref : entity_ref -> Pbrt.Encoder.t -> unit

encode_pb_entity_ref v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_any_value : Pbrt.Decoder.t -> any_value

decode_pb_any_value decoder decodes a any_value binary value from decoder

val decode_pb_array_value : Pbrt.Decoder.t -> array_value

decode_pb_array_value decoder decodes a array_value binary value from decoder

val decode_pb_key_value_list : Pbrt.Decoder.t -> key_value_list

decode_pb_key_value_list decoder decodes a key_value_list binary value from decoder

val decode_pb_key_value : Pbrt.Decoder.t -> key_value

decode_pb_key_value decoder decodes a key_value binary value from decoder

val decode_pb_instrumentation_scope : Pbrt.Decoder.t -> instrumentation_scope

decode_pb_instrumentation_scope decoder decodes a instrumentation_scope binary value from decoder

val decode_pb_entity_ref : Pbrt.Decoder.t -> entity_ref

decode_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 =
  1. | Severity_number_unspecified
  2. | Severity_number_trace
  3. | Severity_number_trace2
  4. | Severity_number_trace3
  5. | Severity_number_trace4
  6. | Severity_number_debug
  7. | Severity_number_debug2
  8. | Severity_number_debug3
  9. | Severity_number_debug4
  10. | Severity_number_info
  11. | Severity_number_info2
  12. | Severity_number_info3
  13. | Severity_number_info4
  14. | Severity_number_warn
  15. | Severity_number_warn2
  16. | Severity_number_warn3
  17. | Severity_number_warn4
  18. | Severity_number_error
  19. | Severity_number_error2
  20. | Severity_number_error3
  21. | Severity_number_error4
  22. | Severity_number_fatal
  23. | Severity_number_fatal2
  24. | Severity_number_fatal3
  25. | Severity_number_fatal4
type log_record = {
  1. time_unix_nano : int64;
  2. observed_time_unix_nano : int64;
  3. severity_number : severity_number;
  4. severity_text : string;
  5. body : Common.any_value option;
  6. attributes : Common.key_value list;
  7. dropped_attributes_count : int32;
  8. flags : int32;
  9. trace_id : bytes;
  10. span_id : bytes;
}
type scope_logs = {
  1. scope : Common.instrumentation_scope option;
  2. log_records : log_record list;
  3. schema_url : string;
}
type resource_logs = {
  1. resource : Resource.resource option;
  2. scope_logs : scope_logs list;
  3. schema_url : string;
}
type logs_data = {
  1. resource_logs : resource_logs list;
}
type log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask

Basic values

val default_severity_number : unit -> severity_number

default_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 =
  1. | Severity_number_unspecified
  2. | Severity_number_trace
  3. | Severity_number_trace2
  4. | Severity_number_trace3
  5. | Severity_number_trace4
  6. | Severity_number_debug
  7. | Severity_number_debug2
  8. | Severity_number_debug3
  9. | Severity_number_debug4
  10. | Severity_number_info
  11. | Severity_number_info2
  12. | Severity_number_info3
  13. | Severity_number_info4
  14. | Severity_number_warn
  15. | Severity_number_warn2
  16. | Severity_number_warn3
  17. | Severity_number_warn4
  18. | Severity_number_error
  19. | Severity_number_error2
  20. | Severity_number_error3
  21. | Severity_number_error4
  22. | Severity_number_fatal
  23. | Severity_number_fatal2
  24. | Severity_number_fatal3
  25. | Severity_number_fatal4
type log_record = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 9 fields

    *)
  2. mutable time_unix_nano : int64;
  3. mutable observed_time_unix_nano : int64;
  4. mutable severity_number : severity_number;
  5. mutable severity_text : string;
  6. mutable body : Common.any_value option;
  7. mutable attributes : Common.key_value list;
  8. mutable dropped_attributes_count : int32;
  9. mutable flags : int32;
  10. mutable trace_id : bytes;
  11. mutable span_id : bytes;
  12. mutable event_name : string;
}
type scope_logs = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable scope : Common.instrumentation_scope option;
  3. mutable log_records : log_record list;
  4. mutable schema_url : string;
}
type resource_logs = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable resource : Resource.resource option;
  3. mutable scope_logs : scope_logs list;
  4. mutable schema_url : string;
}
type logs_data = private {
  1. mutable resource_logs : resource_logs list;
}
type log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask

Basic values

val default_severity_number : unit -> severity_number

default_severity_number () is a new empty value for type severity_number

val default_log_record : unit -> log_record

default_log_record () is a new empty value for type log_record

val default_scope_logs : unit -> scope_logs

default_scope_logs () is a new empty value for type scope_logs

val default_resource_logs : unit -> resource_logs

default_resource_logs () is a new empty value for type resource_logs

val default_logs_data : unit -> logs_data

default_logs_data () is a new empty value for type logs_data

val default_log_record_flags : unit -> log_record_flags

default_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_record

default_log_record () is the default value for type log_record

val default_scope_logs : - ?scope:Common.instrumentation_scope option -> + log_record

make_log_record … () is a builder for type log_record

val copy_log_record : log_record -> log_record
val log_record_has_time_unix_nano : log_record -> bool

presence of field "time_unix_nano" in log_record

val log_record_set_time_unix_nano : log_record -> int64 -> unit

set field time_unix_nano in log_record

val log_record_has_observed_time_unix_nano : log_record -> bool

presence of field "observed_time_unix_nano" in log_record

val log_record_set_observed_time_unix_nano : log_record -> int64 -> unit

set field observed_time_unix_nano in log_record

val log_record_has_severity_number : log_record -> bool

presence of field "severity_number" in log_record

val log_record_set_severity_number : log_record -> severity_number -> unit

set field severity_number in log_record

val log_record_has_severity_text : log_record -> bool

presence of field "severity_text" in log_record

val log_record_set_severity_text : log_record -> string -> unit

set field severity_text in log_record

val log_record_set_body : log_record -> Common.any_value -> unit

set field body in log_record

val log_record_set_attributes : log_record -> Common.key_value list -> unit

set field attributes in log_record

val log_record_has_dropped_attributes_count : log_record -> bool

presence of field "dropped_attributes_count" in log_record

val log_record_set_dropped_attributes_count : log_record -> int32 -> unit

set field dropped_attributes_count in log_record

val log_record_has_flags : log_record -> bool

presence of field "flags" in log_record

val log_record_set_flags : log_record -> int32 -> unit

set field flags in log_record

val log_record_has_trace_id : log_record -> bool

presence of field "trace_id" in log_record

val log_record_set_trace_id : log_record -> bytes -> unit

set field trace_id in log_record

val log_record_has_span_id : log_record -> bool

presence of field "span_id" in log_record

val log_record_set_span_id : log_record -> bytes -> unit

set field span_id in log_record

val log_record_has_event_name : log_record -> bool

presence of field "event_name" in log_record

val log_record_set_event_name : log_record -> string -> unit

set field event_name in log_record

val make_scope_logs : + ?scope:Common.instrumentation_scope -> ?log_records:log_record list -> ?schema_url:string -> unit -> - scope_logs

default_scope_logs () is the default value for type scope_logs

val default_resource_logs : - ?resource:Resource.resource option -> + scope_logs

make_scope_logs … () is a builder for type scope_logs

val copy_scope_logs : scope_logs -> scope_logs
val scope_logs_set_scope : scope_logs -> Common.instrumentation_scope -> unit

set field scope in scope_logs

val scope_logs_set_log_records : scope_logs -> log_record list -> unit

set field log_records in scope_logs

val scope_logs_has_schema_url : scope_logs -> bool

presence of field "schema_url" in scope_logs

val scope_logs_set_schema_url : scope_logs -> string -> unit

set field schema_url in scope_logs

val make_resource_logs : + ?resource:Resource.resource -> ?scope_logs:scope_logs list -> ?schema_url:string -> unit -> - resource_logs

default_resource_logs () is the default value for type resource_logs

val default_logs_data : ?resource_logs:resource_logs list -> unit -> logs_data

default_logs_data () is the default value for type logs_data

val default_log_record_flags : unit -> log_record_flags

default_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_record

make_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_logs

make_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_logs

make_resource_logs … () is a builder for type resource_logs

val make_logs_data : resource_logs:resource_logs list -> unit -> logs_data

make_logs_data … () is a builder for type logs_data

Formatters

val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unit

pp_severity_number v formats v

val pp_log_record : Stdlib.Format.formatter -> log_record -> unit

pp_log_record v formats v

val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unit

pp_scope_logs v formats v

val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unit

pp_resource_logs v formats v

val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unit

pp_logs_data v formats v

val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unit

pp_log_record_flags v formats v

Protobuf Encoding

val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unit

encode_pb_severity_number v encoder encodes v with the given encoder

val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unit

encode_pb_log_record v encoder encodes v with the given encoder

val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unit

encode_pb_scope_logs v encoder encodes v with the given encoder

val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unit

encode_pb_resource_logs v encoder encodes v with the given encoder

val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unit

encode_pb_logs_data v encoder encodes v with the given encoder

val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unit

encode_pb_log_record_flags v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_severity_number : Pbrt.Decoder.t -> severity_number

decode_pb_severity_number decoder decodes a severity_number binary value from decoder

val decode_pb_log_record : Pbrt.Decoder.t -> log_record

decode_pb_log_record decoder decodes a log_record binary value from decoder

val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logs

decode_pb_scope_logs decoder decodes a scope_logs binary value from decoder

val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logs

decode_pb_resource_logs decoder decodes a resource_logs binary value from decoder

val decode_pb_logs_data : Pbrt.Decoder.t -> logs_data

decode_pb_logs_data decoder decodes a logs_data binary value from decoder

val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flags

decode_pb_log_record_flags decoder decodes a log_record_flags binary value from decoder

+ resource_logs

make_resource_logs … () is a builder for type resource_logs

val copy_resource_logs : resource_logs -> resource_logs
val resource_logs_set_resource : resource_logs -> Resource.resource -> unit

set field resource in resource_logs

val resource_logs_set_scope_logs : resource_logs -> scope_logs list -> unit

set field scope_logs in resource_logs

val resource_logs_has_schema_url : resource_logs -> bool

presence of field "schema_url" in resource_logs

val resource_logs_set_schema_url : resource_logs -> string -> unit

set field schema_url in resource_logs

val make_logs_data : ?resource_logs:resource_logs list -> unit -> logs_data

make_logs_data … () is a builder for type logs_data

val copy_logs_data : logs_data -> logs_data
val logs_data_set_resource_logs : logs_data -> resource_logs list -> unit

set field resource_logs in logs_data

Formatters

val pp_severity_number : Stdlib.Format.formatter -> severity_number -> unit

pp_severity_number v formats v

val pp_log_record : Stdlib.Format.formatter -> log_record -> unit

pp_log_record v formats v

val pp_scope_logs : Stdlib.Format.formatter -> scope_logs -> unit

pp_scope_logs v formats v

val pp_resource_logs : Stdlib.Format.formatter -> resource_logs -> unit

pp_resource_logs v formats v

val pp_logs_data : Stdlib.Format.formatter -> logs_data -> unit

pp_logs_data v formats v

val pp_log_record_flags : Stdlib.Format.formatter -> log_record_flags -> unit

pp_log_record_flags v formats v

Protobuf Encoding

val encode_pb_severity_number : severity_number -> Pbrt.Encoder.t -> unit

encode_pb_severity_number v encoder encodes v with the given encoder

val encode_pb_log_record : log_record -> Pbrt.Encoder.t -> unit

encode_pb_log_record v encoder encodes v with the given encoder

val encode_pb_scope_logs : scope_logs -> Pbrt.Encoder.t -> unit

encode_pb_scope_logs v encoder encodes v with the given encoder

val encode_pb_resource_logs : resource_logs -> Pbrt.Encoder.t -> unit

encode_pb_resource_logs v encoder encodes v with the given encoder

val encode_pb_logs_data : logs_data -> Pbrt.Encoder.t -> unit

encode_pb_logs_data v encoder encodes v with the given encoder

val encode_pb_log_record_flags : log_record_flags -> Pbrt.Encoder.t -> unit

encode_pb_log_record_flags v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_severity_number : Pbrt.Decoder.t -> severity_number

decode_pb_severity_number decoder decodes a severity_number binary value from decoder

val decode_pb_log_record : Pbrt.Decoder.t -> log_record

decode_pb_log_record decoder decodes a log_record binary value from decoder

val decode_pb_scope_logs : Pbrt.Decoder.t -> scope_logs

decode_pb_scope_logs decoder decodes a scope_logs binary value from decoder

val decode_pb_resource_logs : Pbrt.Decoder.t -> resource_logs

decode_pb_resource_logs decoder decodes a resource_logs binary value from decoder

val decode_pb_logs_data : Pbrt.Decoder.t -> logs_data

decode_pb_logs_data decoder decodes a logs_data binary value from decoder

val decode_pb_log_record_flags : Pbrt.Decoder.t -> log_record_flags

decode_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

type export_logs_service_request = {
  1. resource_logs : Logs.resource_logs list;
}
type export_logs_partial_success = {
  1. rejected_log_records : int64;
  2. error_message : string;
}
type export_logs_service_response = {
  1. partial_success : export_logs_partial_success option;
}

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_service_request = private {
  1. mutable resource_logs : Logs.resource_logs list;
}
type export_logs_partial_success = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable rejected_log_records : int64;
  3. mutable error_message : string;
}
type export_logs_service_response = private {
  1. mutable partial_success : export_logs_partial_success option;
}

Basic values

val default_export_logs_service_request : unit -> export_logs_service_request

default_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_success

default_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_response

default_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_request

default_export_logs_service_request () is the default value for type export_logs_service_request

val default_export_logs_partial_success : + export_logs_service_request

make_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_request
val export_logs_service_request_set_resource_logs : + export_logs_service_request -> + Logs.resource_logs list -> + unit

set 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_success

default_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_success

make_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_success
val export_logs_partial_success_has_rejected_log_records : + export_logs_partial_success -> + bool

presence of field "rejected_log_records" in export_logs_partial_success

val export_logs_partial_success_set_rejected_log_records : + export_logs_partial_success -> + int64 -> + unit

set field rejected_log_records in export_logs_partial_success

val export_logs_partial_success_has_error_message : + export_logs_partial_success -> + bool

presence of field "error_message" in export_logs_partial_success

val export_logs_partial_success_set_error_message : + export_logs_partial_success -> + string -> + unit

set field error_message in export_logs_partial_success

val make_export_logs_service_response : + ?partial_success:export_logs_partial_success -> unit -> - export_logs_service_response

default_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_request

make_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_success

make_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_response

make_export_logs_service_response … () is a builder for type export_logs_service_response

Formatters

val pp_export_logs_service_request : + export_logs_service_response

make_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_response
val export_logs_service_response_set_partial_success : + export_logs_service_response -> + export_logs_partial_success -> + unit

set field partial_success in export_logs_service_response

Formatters

val pp_export_logs_service_request : Stdlib.Format.formatter -> export_logs_service_request -> unit

pp_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

type exemplar_value =
  1. | As_double of float
  2. | As_int of int64
and exemplar = {
  1. filtered_attributes : Common.key_value list;
  2. time_unix_nano : int64;
  3. value : exemplar_value;
  4. span_id : bytes;
  5. trace_id : bytes;
}
type number_data_point_value =
  1. | As_double of float
  2. | As_int of int64
and number_data_point = {
  1. attributes : Common.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. value : number_data_point_value;
  5. exemplars : exemplar list;
  6. flags : int32;
}
type gauge = {
  1. data_points : number_data_point list;
}
type aggregation_temporality =
  1. | Aggregation_temporality_unspecified
  2. | Aggregation_temporality_delta
  3. | Aggregation_temporality_cumulative
type sum = {
  1. data_points : number_data_point list;
  2. aggregation_temporality : aggregation_temporality;
  3. is_monotonic : bool;
}
type histogram_data_point = {
  1. attributes : Common.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. count : int64;
  5. sum : float option;
  6. bucket_counts : int64 list;
  7. explicit_bounds : float list;
  8. exemplars : exemplar list;
  9. flags : int32;
  10. min : float option;
  11. max : float option;
}
type histogram = {
  1. data_points : histogram_data_point list;
  2. aggregation_temporality : aggregation_temporality;
}
type exponential_histogram_data_point_buckets = {
  1. offset : int32;
  2. bucket_counts : int64 list;
}
type exponential_histogram_data_point = {
  1. attributes : Common.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. count : int64;
  5. sum : float option;
  6. scale : int32;
  7. zero_count : int64;
  8. positive : exponential_histogram_data_point_buckets option;
  9. negative : exponential_histogram_data_point_buckets option;
  10. flags : int32;
  11. exemplars : exemplar list;
  12. min : float option;
  13. max : float option;
  14. zero_threshold : float;
}
type exponential_histogram = {
  1. data_points : exponential_histogram_data_point list;
  2. aggregation_temporality : aggregation_temporality;
}
type summary_data_point_value_at_quantile = {
  1. quantile : float;
  2. value : float;
}
type summary_data_point = {
  1. attributes : Common.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. count : int64;
  5. sum : float;
  6. quantile_values : summary_data_point_value_at_quantile list;
  7. flags : int32;
}
type summary = {
  1. data_points : summary_data_point list;
}
type metric_data =
  1. | Gauge of gauge
  2. | Sum of sum
  3. | Histogram of histogram
  4. | Exponential_histogram of exponential_histogram
  5. | Summary of summary
and metric = {
  1. name : string;
  2. description : string;
  3. unit_ : string;
  4. data : metric_data;
}
type scope_metrics = {
  1. scope : Common.instrumentation_scope option;
  2. metrics : metric list;
  3. schema_url : string;
}
type resource_metrics = {
  1. resource : Resource.resource option;
  2. scope_metrics : scope_metrics list;
  3. schema_url : string;
}
type metrics_data = {
  1. resource_metrics : resource_metrics list;
}
type data_point_flags =
  1. | Data_point_flags_do_not_use
  2. | Data_point_flags_no_recorded_value_mask

Basic values

val default_exemplar_value : unit -> exemplar_value

default_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

type exemplar_value =
  1. | As_double of float
  2. | As_int of int64
and exemplar = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 3 fields

    *)
  2. mutable filtered_attributes : Common.key_value list;
  3. mutable time_unix_nano : int64;
  4. mutable value : exemplar_value option;
  5. mutable span_id : bytes;
  6. mutable trace_id : bytes;
}
type number_data_point_value =
  1. | As_double of float
  2. | As_int of int64
and number_data_point = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 3 fields

    *)
  2. mutable attributes : Common.key_value list;
  3. mutable start_time_unix_nano : int64;
  4. mutable time_unix_nano : int64;
  5. mutable value : number_data_point_value option;
  6. mutable exemplars : exemplar list;
  7. mutable flags : int32;
}
type gauge = private {
  1. mutable data_points : number_data_point list;
}
type aggregation_temporality =
  1. | Aggregation_temporality_unspecified
  2. | Aggregation_temporality_delta
  3. | Aggregation_temporality_cumulative
type sum = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable data_points : number_data_point list;
  3. mutable aggregation_temporality : aggregation_temporality;
  4. mutable is_monotonic : bool;
}
type histogram_data_point = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 7 fields

    *)
  2. mutable attributes : Common.key_value list;
  3. mutable start_time_unix_nano : int64;
  4. mutable time_unix_nano : int64;
  5. mutable count : int64;
  6. mutable sum : float;
  7. mutable bucket_counts : int64 list;
  8. mutable explicit_bounds : float list;
  9. mutable exemplars : exemplar list;
  10. mutable flags : int32;
  11. mutable min : float;
  12. mutable max : float;
}
type histogram = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable data_points : histogram_data_point list;
  3. mutable aggregation_temporality : aggregation_temporality;
}
type exponential_histogram_data_point_buckets = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable offset : int32;
  3. mutable bucket_counts : int64 list;
}
type exponential_histogram_data_point = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 10 fields

    *)
  2. mutable attributes : Common.key_value list;
  3. mutable start_time_unix_nano : int64;
  4. mutable time_unix_nano : int64;
  5. mutable count : int64;
  6. mutable sum : float;
  7. mutable scale : int32;
  8. mutable zero_count : int64;
  9. mutable positive : exponential_histogram_data_point_buckets option;
  10. mutable negative : exponential_histogram_data_point_buckets option;
  11. mutable flags : int32;
  12. mutable exemplars : exemplar list;
  13. mutable min : float;
  14. mutable max : float;
  15. mutable zero_threshold : float;
}
type exponential_histogram = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable data_points : exponential_histogram_data_point list;
  3. mutable aggregation_temporality : aggregation_temporality;
}
type summary_data_point_value_at_quantile = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable quantile : float;
  3. mutable value : float;
}
type summary_data_point = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 5 fields

    *)
  2. mutable attributes : Common.key_value list;
  3. mutable start_time_unix_nano : int64;
  4. mutable time_unix_nano : int64;
  5. mutable count : int64;
  6. mutable sum : float;
  7. mutable quantile_values : summary_data_point_value_at_quantile list;
  8. mutable flags : int32;
}
type summary = private {
  1. mutable data_points : summary_data_point list;
}
type metric_data =
  1. | Gauge of gauge
  2. | Sum of sum
  3. | Histogram of histogram
  4. | Exponential_histogram of exponential_histogram
  5. | Summary of summary
and metric = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 3 fields

    *)
  2. mutable name : string;
  3. mutable description : string;
  4. mutable unit_ : string;
  5. mutable data : metric_data option;
  6. mutable metadata : Common.key_value list;
}
type scope_metrics = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable scope : Common.instrumentation_scope option;
  3. mutable metrics : metric list;
  4. mutable schema_url : string;
}
type resource_metrics = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable resource : Resource.resource option;
  3. mutable scope_metrics : scope_metrics list;
  4. mutable schema_url : string;
}
type metrics_data = private {
  1. mutable resource_metrics : resource_metrics list;
}
type data_point_flags =
  1. | Data_point_flags_do_not_use
  2. | Data_point_flags_no_recorded_value_mask

Basic values

val default_exemplar_value : unit -> exemplar_value

default_exemplar_value () is a new empty value for type exemplar_value

val default_exemplar : unit -> exemplar

default_exemplar () is a new empty value for type exemplar

val default_number_data_point_value : unit -> number_data_point_value

default_number_data_point_value () is a new empty value for type number_data_point_value

val default_number_data_point : unit -> number_data_point

default_number_data_point () is a new empty value for type number_data_point

val default_gauge : unit -> gauge

default_gauge () is a new empty value for type gauge

val default_aggregation_temporality : unit -> aggregation_temporality

default_aggregation_temporality () is a new empty value for type aggregation_temporality

val default_sum : unit -> sum

default_sum () is a new empty value for type sum

val default_histogram_data_point : unit -> histogram_data_point

default_histogram_data_point () is a new empty value for type histogram_data_point

val default_histogram : unit -> histogram

default_histogram () is a new empty value for type histogram

val default_exponential_histogram_data_point_buckets : + unit -> + exponential_histogram_data_point_buckets

default_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_point

default_exponential_histogram_data_point () is a new empty value for type exponential_histogram_data_point

val default_exponential_histogram : unit -> exponential_histogram

default_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_quantile

default_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_point

default_summary_data_point () is a new empty value for type summary_data_point

val default_summary : unit -> summary

default_summary () is a new empty value for type summary

val default_metric_data : unit -> metric_data

default_metric_data () is a new empty value for type metric_data

val default_metric : unit -> metric

default_metric () is a new empty value for type metric

val default_scope_metrics : unit -> scope_metrics

default_scope_metrics () is a new empty value for type scope_metrics

val default_resource_metrics : unit -> resource_metrics

default_resource_metrics () is a new empty value for type resource_metrics

val default_metrics_data : unit -> metrics_data

default_metrics_data () is a new empty value for type metrics_data

val default_data_point_flags : unit -> data_point_flags

default_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 -> - exemplar

default_exemplar () is the default value for type exemplar

val default_number_data_point_value : unit -> number_data_point_value

default_number_data_point_value () is the default value for type number_data_point_value

val default_number_data_point : + exemplar

make_exemplar … () is a builder for type exemplar

val copy_exemplar : exemplar -> exemplar
val exemplar_set_filtered_attributes : + exemplar -> + Common.key_value list -> + unit

set field filtered_attributes in exemplar

val exemplar_has_time_unix_nano : exemplar -> bool

presence of field "time_unix_nano" in exemplar

val exemplar_set_time_unix_nano : exemplar -> int64 -> unit

set field time_unix_nano in exemplar

val exemplar_set_value : exemplar -> exemplar_value -> unit

set field value in exemplar

val exemplar_has_span_id : exemplar -> bool

presence of field "span_id" in exemplar

val exemplar_set_span_id : exemplar -> bytes -> unit

set field span_id in exemplar

val exemplar_has_trace_id : exemplar -> bool

presence of field "trace_id" in exemplar

val exemplar_set_trace_id : exemplar -> bytes -> unit

set 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_point

default_number_data_point () is the default value for type number_data_point

val default_gauge : ?data_points:number_data_point list -> unit -> gauge

default_gauge () is the default value for type gauge

val default_aggregation_temporality : unit -> aggregation_temporality

default_aggregation_temporality () is the default value for type aggregation_temporality

val default_sum : + number_data_point

make_number_data_point … () is a builder for type number_data_point

val copy_number_data_point : number_data_point -> number_data_point
val number_data_point_set_attributes : + number_data_point -> + Common.key_value list -> + unit

set field attributes in number_data_point

val number_data_point_has_start_time_unix_nano : number_data_point -> bool

presence of field "start_time_unix_nano" in number_data_point

val number_data_point_set_start_time_unix_nano : + number_data_point -> + int64 -> + unit

set field start_time_unix_nano in number_data_point

val number_data_point_has_time_unix_nano : number_data_point -> bool

presence of field "time_unix_nano" in number_data_point

val number_data_point_set_time_unix_nano : number_data_point -> int64 -> unit

set field time_unix_nano in number_data_point

val number_data_point_set_value : + number_data_point -> + number_data_point_value -> + unit

set field value in number_data_point

val number_data_point_set_exemplars : + number_data_point -> + exemplar list -> + unit

set field exemplars in number_data_point

val number_data_point_has_flags : number_data_point -> bool

presence of field "flags" in number_data_point

val number_data_point_set_flags : number_data_point -> int32 -> unit

set field flags in number_data_point

val make_gauge : ?data_points:number_data_point list -> unit -> gauge

make_gauge … () is a builder for type gauge

val copy_gauge : gauge -> gauge
val gauge_set_data_points : gauge -> number_data_point list -> unit

set field data_points in gauge

val make_sum : ?data_points:number_data_point list -> ?aggregation_temporality:aggregation_temporality -> ?is_monotonic:bool -> unit -> - sum

default_sum () is the default value for type sum

val default_histogram_data_point : + sum

make_sum … () is a builder for type sum

val copy_sum : sum -> sum
val sum_set_data_points : sum -> number_data_point list -> unit

set field data_points in sum

val sum_has_aggregation_temporality : sum -> bool

presence of field "aggregation_temporality" in sum

val sum_set_aggregation_temporality : sum -> aggregation_temporality -> unit

set field aggregation_temporality in sum

val sum_has_is_monotonic : sum -> bool

presence of field "is_monotonic" in sum

val sum_set_is_monotonic : sum -> bool -> unit

set 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_point

default_histogram_data_point () is the default value for type histogram_data_point

val default_histogram : + histogram_data_point

make_histogram_data_point … () is a builder for type histogram_data_point

val copy_histogram_data_point : histogram_data_point -> histogram_data_point
val histogram_data_point_set_attributes : + histogram_data_point -> + Common.key_value list -> + unit

set field attributes in histogram_data_point

val histogram_data_point_has_start_time_unix_nano : + histogram_data_point -> + bool

presence of field "start_time_unix_nano" in histogram_data_point

val histogram_data_point_set_start_time_unix_nano : + histogram_data_point -> + int64 -> + unit

set field start_time_unix_nano in histogram_data_point

val histogram_data_point_has_time_unix_nano : histogram_data_point -> bool

presence of field "time_unix_nano" in histogram_data_point

val histogram_data_point_set_time_unix_nano : + histogram_data_point -> + int64 -> + unit

set field time_unix_nano in histogram_data_point

val histogram_data_point_has_count : histogram_data_point -> bool

presence of field "count" in histogram_data_point

val histogram_data_point_set_count : histogram_data_point -> int64 -> unit

set field count in histogram_data_point

val histogram_data_point_has_sum : histogram_data_point -> bool

presence of field "sum" in histogram_data_point

val histogram_data_point_set_sum : histogram_data_point -> float -> unit

set field sum in histogram_data_point

val histogram_data_point_set_bucket_counts : + histogram_data_point -> + int64 list -> + unit

set field bucket_counts in histogram_data_point

val histogram_data_point_set_explicit_bounds : + histogram_data_point -> + float list -> + unit

set field explicit_bounds in histogram_data_point

val histogram_data_point_set_exemplars : + histogram_data_point -> + exemplar list -> + unit

set field exemplars in histogram_data_point

val histogram_data_point_has_flags : histogram_data_point -> bool

presence of field "flags" in histogram_data_point

val histogram_data_point_set_flags : histogram_data_point -> int32 -> unit

set field flags in histogram_data_point

val histogram_data_point_has_min : histogram_data_point -> bool

presence of field "min" in histogram_data_point

val histogram_data_point_set_min : histogram_data_point -> float -> unit

set field min in histogram_data_point

val histogram_data_point_has_max : histogram_data_point -> bool

presence of field "max" in histogram_data_point

val histogram_data_point_set_max : histogram_data_point -> float -> unit

set field max in histogram_data_point

val make_histogram : ?data_points:histogram_data_point list -> ?aggregation_temporality:aggregation_temporality -> unit -> - histogram

default_histogram () is the default value for type histogram

val default_exponential_histogram_data_point_buckets : + histogram

make_histogram … () is a builder for type histogram

val copy_histogram : histogram -> histogram
val histogram_set_data_points : histogram -> histogram_data_point list -> unit

set field data_points in histogram

val histogram_has_aggregation_temporality : histogram -> bool

presence of field "aggregation_temporality" in histogram

val histogram_set_aggregation_temporality : + histogram -> + aggregation_temporality -> + unit

set field aggregation_temporality in histogram

val make_exponential_histogram_data_point_buckets : ?offset:int32 -> ?bucket_counts:int64 list -> unit -> - exponential_histogram_data_point_buckets

default_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_buckets

make_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_buckets
val exponential_histogram_data_point_buckets_has_offset : + exponential_histogram_data_point_buckets -> + bool

presence of field "offset" in exponential_histogram_data_point_buckets

val exponential_histogram_data_point_buckets_set_offset : + exponential_histogram_data_point_buckets -> + int32 -> + unit

set field offset in exponential_histogram_data_point_buckets

val exponential_histogram_data_point_buckets_set_bucket_counts : + exponential_histogram_data_point_buckets -> + int64 list -> + unit

set 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_point

default_exponential_histogram_data_point () is the default value for type exponential_histogram_data_point

val default_exponential_histogram : + exponential_histogram_data_point

make_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_point
val exponential_histogram_data_point_set_attributes : + exponential_histogram_data_point -> + Common.key_value list -> + unit

set field attributes in exponential_histogram_data_point

val exponential_histogram_data_point_has_start_time_unix_nano : + exponential_histogram_data_point -> + bool

presence 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 -> + unit

set field start_time_unix_nano in exponential_histogram_data_point

val exponential_histogram_data_point_has_time_unix_nano : + exponential_histogram_data_point -> + bool

presence of field "time_unix_nano" in exponential_histogram_data_point

val exponential_histogram_data_point_set_time_unix_nano : + exponential_histogram_data_point -> + int64 -> + unit

set field time_unix_nano in exponential_histogram_data_point

val exponential_histogram_data_point_has_count : + exponential_histogram_data_point -> + bool

presence of field "count" in exponential_histogram_data_point

val exponential_histogram_data_point_set_count : + exponential_histogram_data_point -> + int64 -> + unit

set field count in exponential_histogram_data_point

val exponential_histogram_data_point_has_sum : + exponential_histogram_data_point -> + bool

presence of field "sum" in exponential_histogram_data_point

val exponential_histogram_data_point_set_sum : + exponential_histogram_data_point -> + float -> + unit

set field sum in exponential_histogram_data_point

val exponential_histogram_data_point_has_scale : + exponential_histogram_data_point -> + bool

presence of field "scale" in exponential_histogram_data_point

val exponential_histogram_data_point_set_scale : + exponential_histogram_data_point -> + int32 -> + unit

set field scale in exponential_histogram_data_point

val exponential_histogram_data_point_has_zero_count : + exponential_histogram_data_point -> + bool

presence of field "zero_count" in exponential_histogram_data_point

val exponential_histogram_data_point_set_zero_count : + exponential_histogram_data_point -> + int64 -> + unit

set field zero_count in exponential_histogram_data_point

val exponential_histogram_data_point_set_positive : + exponential_histogram_data_point -> + exponential_histogram_data_point_buckets -> + unit

set field positive in exponential_histogram_data_point

val exponential_histogram_data_point_set_negative : + exponential_histogram_data_point -> + exponential_histogram_data_point_buckets -> + unit

set field negative in exponential_histogram_data_point

val exponential_histogram_data_point_has_flags : + exponential_histogram_data_point -> + bool

presence of field "flags" in exponential_histogram_data_point

val exponential_histogram_data_point_set_flags : + exponential_histogram_data_point -> + int32 -> + unit

set field flags in exponential_histogram_data_point

val exponential_histogram_data_point_set_exemplars : + exponential_histogram_data_point -> + exemplar list -> + unit

set field exemplars in exponential_histogram_data_point

val exponential_histogram_data_point_has_min : + exponential_histogram_data_point -> + bool

presence of field "min" in exponential_histogram_data_point

val exponential_histogram_data_point_set_min : + exponential_histogram_data_point -> + float -> + unit

set field min in exponential_histogram_data_point

val exponential_histogram_data_point_has_max : + exponential_histogram_data_point -> + bool

presence of field "max" in exponential_histogram_data_point

val exponential_histogram_data_point_set_max : + exponential_histogram_data_point -> + float -> + unit

set field max in exponential_histogram_data_point

val exponential_histogram_data_point_has_zero_threshold : + exponential_histogram_data_point -> + bool

presence of field "zero_threshold" in exponential_histogram_data_point

val exponential_histogram_data_point_set_zero_threshold : + exponential_histogram_data_point -> + float -> + unit

set 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_histogram

default_exponential_histogram () is the default value for type exponential_histogram

val default_summary_data_point_value_at_quantile : + exponential_histogram

make_exponential_histogram … () is a builder for type exponential_histogram

val copy_exponential_histogram : exponential_histogram -> exponential_histogram
val exponential_histogram_set_data_points : + exponential_histogram -> + exponential_histogram_data_point list -> + unit

set field data_points in exponential_histogram

val exponential_histogram_has_aggregation_temporality : + exponential_histogram -> + bool

presence of field "aggregation_temporality" in exponential_histogram

val exponential_histogram_set_aggregation_temporality : + exponential_histogram -> + aggregation_temporality -> + unit

set field aggregation_temporality in exponential_histogram

val make_summary_data_point_value_at_quantile : ?quantile:float -> ?value:float -> unit -> - summary_data_point_value_at_quantile

default_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_quantile

make_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_quantile
val summary_data_point_value_at_quantile_has_quantile : + summary_data_point_value_at_quantile -> + bool

presence 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 -> + unit

set field quantile in summary_data_point_value_at_quantile

val summary_data_point_value_at_quantile_has_value : + summary_data_point_value_at_quantile -> + bool

presence 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 -> + unit

set 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_point

default_summary_data_point () is the default value for type summary_data_point

val default_summary : ?data_points:summary_data_point list -> unit -> summary

default_summary () is the default value for type summary

val default_metric_data : unit -> metric_data

default_metric_data () is the default value for type metric_data

val default_metric : + summary_data_point

make_summary_data_point … () is a builder for type summary_data_point

val copy_summary_data_point : summary_data_point -> summary_data_point
val summary_data_point_set_attributes : + summary_data_point -> + Common.key_value list -> + unit

set field attributes in summary_data_point

val summary_data_point_has_start_time_unix_nano : summary_data_point -> bool

presence of field "start_time_unix_nano" in summary_data_point

val summary_data_point_set_start_time_unix_nano : + summary_data_point -> + int64 -> + unit

set field start_time_unix_nano in summary_data_point

val summary_data_point_has_time_unix_nano : summary_data_point -> bool

presence of field "time_unix_nano" in summary_data_point

val summary_data_point_set_time_unix_nano : summary_data_point -> int64 -> unit

set field time_unix_nano in summary_data_point

val summary_data_point_has_count : summary_data_point -> bool

presence of field "count" in summary_data_point

val summary_data_point_set_count : summary_data_point -> int64 -> unit

set field count in summary_data_point

val summary_data_point_has_sum : summary_data_point -> bool

presence of field "sum" in summary_data_point

val summary_data_point_set_sum : summary_data_point -> float -> unit

set field sum in summary_data_point

val summary_data_point_set_quantile_values : + summary_data_point -> + summary_data_point_value_at_quantile list -> + unit

set field quantile_values in summary_data_point

val summary_data_point_has_flags : summary_data_point -> bool

presence of field "flags" in summary_data_point

val summary_data_point_set_flags : summary_data_point -> int32 -> unit

set field flags in summary_data_point

val make_summary : ?data_points:summary_data_point list -> unit -> summary

make_summary … () is a builder for type summary

val copy_summary : summary -> summary
val summary_set_data_points : summary -> summary_data_point list -> unit

set field data_points in summary

val make_metric : ?name:string -> ?description:string -> ?unit_:string -> ?data:metric_data -> + ?metadata:Common.key_value list -> unit -> - metric

default_metric () is the default value for type metric

val default_scope_metrics : - ?scope:Common.instrumentation_scope option -> + metric

make_metric … () is a builder for type metric

val copy_metric : metric -> metric
val metric_has_name : metric -> bool

presence of field "name" in metric

val metric_set_name : metric -> string -> unit

set field name in metric

val metric_has_description : metric -> bool

presence of field "description" in metric

val metric_set_description : metric -> string -> unit

set field description in metric

val metric_has_unit_ : metric -> bool

presence of field "unit_" in metric

val metric_set_unit_ : metric -> string -> unit

set field unit_ in metric

val metric_set_data : metric -> metric_data -> unit

set field data in metric

val metric_set_metadata : metric -> Common.key_value list -> unit

set field metadata in metric

val make_scope_metrics : + ?scope:Common.instrumentation_scope -> ?metrics:metric list -> ?schema_url:string -> unit -> - scope_metrics

default_scope_metrics () is the default value for type scope_metrics

val default_resource_metrics : - ?resource:Resource.resource option -> + scope_metrics

make_scope_metrics … () is a builder for type scope_metrics

val copy_scope_metrics : scope_metrics -> scope_metrics
val scope_metrics_set_scope : + scope_metrics -> + Common.instrumentation_scope -> + unit

set field scope in scope_metrics

val scope_metrics_set_metrics : scope_metrics -> metric list -> unit

set field metrics in scope_metrics

val scope_metrics_has_schema_url : scope_metrics -> bool

presence of field "schema_url" in scope_metrics

val scope_metrics_set_schema_url : scope_metrics -> string -> unit

set field schema_url in scope_metrics

val make_resource_metrics : + ?resource:Resource.resource -> ?scope_metrics:scope_metrics list -> ?schema_url:string -> unit -> - resource_metrics

default_resource_metrics () is the default value for type resource_metrics

val default_metrics_data : + resource_metrics

make_resource_metrics … () is a builder for type resource_metrics

val copy_resource_metrics : resource_metrics -> resource_metrics
val resource_metrics_set_resource : + resource_metrics -> + Resource.resource -> + unit

set field resource in resource_metrics

val resource_metrics_set_scope_metrics : + resource_metrics -> + scope_metrics list -> + unit

set field scope_metrics in resource_metrics

val resource_metrics_has_schema_url : resource_metrics -> bool

presence of field "schema_url" in resource_metrics

val resource_metrics_set_schema_url : resource_metrics -> string -> unit

set field schema_url in resource_metrics

val make_metrics_data : ?resource_metrics:resource_metrics list -> unit -> - metrics_data

default_metrics_data () is the default value for type metrics_data

val default_data_point_flags : unit -> data_point_flags

default_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 -> - exemplar

make_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_point

make_number_data_point … () is a builder for type number_data_point

val make_gauge : data_points:number_data_point list -> unit -> gauge

make_gauge … () is a builder for type gauge

val make_sum : - data_points:number_data_point list -> - aggregation_temporality:aggregation_temporality -> - is_monotonic:bool -> - unit -> - sum

make_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_point

make_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 -> - histogram

make_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_buckets

make_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_point

make_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_histogram

make_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_quantile

make_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_point

make_summary_data_point … () is a builder for type summary_data_point

val make_summary : data_points:summary_data_point list -> unit -> summary

make_summary … () is a builder for type summary

val make_metric : - name:string -> - description:string -> - unit_:string -> - data:metric_data -> - unit -> - metric

make_metric … () is a builder for type metric

val make_scope_metrics : - ?scope:Common.instrumentation_scope option -> - metrics:metric list -> - schema_url:string -> - unit -> - scope_metrics

make_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_metrics

make_resource_metrics … () is a builder for type resource_metrics

val make_metrics_data : - resource_metrics:resource_metrics list -> - unit -> - metrics_data

make_metrics_data … () is a builder for type metrics_data

Formatters

val pp_exemplar_value : Stdlib.Format.formatter -> exemplar_value -> unit

pp_exemplar_value v formats v

val pp_exemplar : Stdlib.Format.formatter -> exemplar -> unit

pp_exemplar v formats v

val pp_number_data_point_value : + metrics_data

make_metrics_data … () is a builder for type metrics_data

val copy_metrics_data : metrics_data -> metrics_data
val metrics_data_set_resource_metrics : + metrics_data -> + resource_metrics list -> + unit

set field resource_metrics in metrics_data

Formatters

val pp_exemplar_value : Stdlib.Format.formatter -> exemplar_value -> unit

pp_exemplar_value v formats v

val pp_exemplar : Stdlib.Format.formatter -> exemplar -> unit

pp_exemplar v formats v

val pp_number_data_point_value : Stdlib.Format.formatter -> number_data_point_value -> unit

pp_number_data_point_value v formats v

val pp_number_data_point : Stdlib.Format.formatter -> number_data_point -> unit

pp_number_data_point v formats v

val pp_gauge : Stdlib.Format.formatter -> gauge -> unit

pp_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

type export_metrics_service_request = {
  1. resource_metrics : Metrics.resource_metrics list;
}
type export_metrics_partial_success = {
  1. rejected_data_points : int64;
  2. error_message : string;
}
type export_metrics_service_response = {
  1. partial_success : export_metrics_partial_success option;
}

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 {
  1. mutable resource_metrics : Metrics.resource_metrics list;
}
type export_metrics_partial_success = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable rejected_data_points : int64;
  3. mutable error_message : string;
}
type export_metrics_service_response = private {
  1. mutable partial_success : export_metrics_partial_success option;
}

Basic values

val default_export_metrics_service_request : + unit -> + export_metrics_service_request

default_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_success

default_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_response

default_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_request

default_export_metrics_service_request () is the default value for type export_metrics_service_request

val default_export_metrics_partial_success : + export_metrics_service_request

make_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_request
val export_metrics_service_request_set_resource_metrics : + export_metrics_service_request -> + Metrics.resource_metrics list -> + unit

set 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_success

default_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_success

make_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_success
val export_metrics_partial_success_has_rejected_data_points : + export_metrics_partial_success -> + bool

presence of field "rejected_data_points" in export_metrics_partial_success

val export_metrics_partial_success_set_rejected_data_points : + export_metrics_partial_success -> + int64 -> + unit

set field rejected_data_points in export_metrics_partial_success

val export_metrics_partial_success_has_error_message : + export_metrics_partial_success -> + bool

presence of field "error_message" in export_metrics_partial_success

val export_metrics_partial_success_set_error_message : + export_metrics_partial_success -> + string -> + unit

set field error_message in export_metrics_partial_success

val make_export_metrics_service_response : + ?partial_success:export_metrics_partial_success -> unit -> - export_metrics_service_response

default_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_request

make_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_success

make_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_response

make_export_metrics_service_response … () is a builder for type export_metrics_service_response

Formatters

val pp_export_metrics_service_request : + export_metrics_service_response

make_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_response
val export_metrics_service_response_set_partial_success : + export_metrics_service_response -> + export_metrics_partial_success -> + unit

set field partial_success in export_metrics_service_response

Formatters

val pp_export_metrics_service_request : Stdlib.Format.formatter -> export_metrics_service_request -> unit

pp_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

type resource = {
  1. attributes : Common.key_value list;
  2. dropped_attributes_count : int32;
}

Basic values

val default_resource : +Resource (opentelemetry.Opentelemetry_proto.Resource)

Module Opentelemetry_proto.Resource

Code for resource.proto

Types

type resource = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable attributes : Common.key_value list;
  3. mutable dropped_attributes_count : int32;
  4. mutable entity_refs : Common.entity_ref list;
}

Basic values

val default_resource : unit -> resource

default_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 -> - resource

default_resource () is the default value for type resource

Make functions

val make_resource : - attributes:Common.key_value list -> - dropped_attributes_count:int32 -> - unit -> - resource

make_resource … () is a builder for type resource

Formatters

val pp_resource : Stdlib.Format.formatter -> resource -> unit

pp_resource v formats v

Protobuf Encoding

val encode_pb_resource : resource -> Pbrt.Encoder.t -> unit

encode_pb_resource v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_resource : Pbrt.Decoder.t -> resource

decode_pb_resource decoder decodes a resource binary value from decoder

+ resource

make_resource … () is a builder for type resource

val copy_resource : resource -> resource
val resource_set_attributes : resource -> Common.key_value list -> unit

set field attributes in resource

val resource_has_dropped_attributes_count : resource -> bool

presence of field "dropped_attributes_count" in resource

val resource_set_dropped_attributes_count : resource -> int32 -> unit

set field dropped_attributes_count in resource

val resource_set_entity_refs : resource -> Common.entity_ref list -> unit

set field entity_refs in resource

Formatters

val pp_resource : Stdlib.Format.formatter -> resource -> unit

pp_resource v formats v

Protobuf Encoding

val encode_pb_resource : resource -> Pbrt.Encoder.t -> unit

encode_pb_resource v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_resource : Pbrt.Decoder.t -> resource

decode_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

type status = {
  1. code : int32;
  2. message : bytes;
  3. details : bytes list;
}

Basic values

val default_status : +Status (opentelemetry.Opentelemetry_proto.Status)

Module Opentelemetry_proto.Status

Code for status.proto

Types

type status = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable code : int32;
  3. mutable message : bytes;
  4. mutable details : bytes list;
}

Basic values

val default_status : unit -> status

default_status () is a new empty value for type status

Make functions

val make_status : ?code:int32 -> ?message:bytes -> ?details:bytes list -> unit -> - status

default_status () is the default value for type status

Make functions

val make_status : - code:int32 -> - message:bytes -> - details:bytes list -> - unit -> - status

make_status … () is a builder for type status

Formatters

val pp_status : Stdlib.Format.formatter -> status -> unit

pp_status v formats v

Protobuf Encoding

val encode_pb_status : status -> Pbrt.Encoder.t -> unit

encode_pb_status v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_status : Pbrt.Decoder.t -> status

decode_pb_status decoder decodes a status binary value from decoder

+ status

make_status … () is a builder for type status

val copy_status : status -> status
val status_has_code : status -> bool

presence of field "code" in status

val status_set_code : status -> int32 -> unit

set field code in status

val status_has_message : status -> bool

presence of field "message" in status

val status_set_message : status -> bytes -> unit

set field message in status

val status_set_details : status -> bytes list -> unit

set field details in status

Formatters

val pp_status : Stdlib.Format.formatter -> status -> unit

pp_status v formats v

Protobuf Encoding

val encode_pb_status : status -> Pbrt.Encoder.t -> unit

encode_pb_status v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_status : Pbrt.Decoder.t -> status

decode_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_span_kind =
  1. | Span_kind_unspecified
  2. | Span_kind_internal
  3. | Span_kind_server
  4. | Span_kind_client
  5. | Span_kind_producer
  6. | Span_kind_consumer
type span_event = {
  1. time_unix_nano : int64;
  2. name : string;
  3. attributes : Common.key_value list;
  4. dropped_attributes_count : int32;
}
type status_status_code =
  1. | Status_code_unset
  2. | Status_code_ok
  3. | Status_code_error
type status = {
  1. message : string;
  2. code : status_status_code;
}
type span = {
  1. trace_id : bytes;
  2. span_id : bytes;
  3. trace_state : string;
  4. parent_span_id : bytes;
  5. name : string;
  6. kind : span_span_kind;
  7. start_time_unix_nano : int64;
  8. end_time_unix_nano : int64;
  9. attributes : Common.key_value list;
  10. dropped_attributes_count : int32;
  11. events : span_event list;
  12. dropped_events_count : int32;
  13. status : status option;
}
type scope_spans = {
  1. scope : Common.instrumentation_scope option;
  2. spans : span list;
  3. schema_url : string;
}
type resource_spans = {
  1. resource : Resource.resource option;
  2. scope_spans : scope_spans list;
  3. schema_url : string;
}
type traces_data = {
  1. resource_spans : resource_spans list;
}

Basic values

val default_span_span_kind : unit -> span_span_kind

default_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_span_kind =
  1. | Span_kind_unspecified
  2. | Span_kind_internal
  3. | Span_kind_server
  4. | Span_kind_client
  5. | Span_kind_producer
  6. | Span_kind_consumer
type span_event = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 3 fields

    *)
  2. mutable time_unix_nano : int64;
  3. mutable name : string;
  4. mutable attributes : Common.key_value list;
  5. mutable dropped_attributes_count : int32;
}
type status_status_code =
  1. | Status_code_unset
  2. | Status_code_ok
  3. | Status_code_error
type status = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable message : string;
  3. mutable code : status_status_code;
}
type span = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 12 fields

    *)
  2. mutable trace_id : bytes;
  3. mutable span_id : bytes;
  4. mutable trace_state : string;
  5. mutable parent_span_id : bytes;
  6. mutable flags : int32;
  7. mutable name : string;
  8. mutable kind : span_span_kind;
  9. mutable start_time_unix_nano : int64;
  10. mutable end_time_unix_nano : int64;
  11. mutable attributes : Common.key_value list;
  12. mutable dropped_attributes_count : int32;
  13. mutable events : span_event list;
  14. mutable dropped_events_count : int32;
  15. mutable status : status option;
}
type scope_spans = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable scope : Common.instrumentation_scope option;
  3. mutable spans : span list;
  4. mutable schema_url : string;
}
type resource_spans = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 1 fields

    *)
  2. mutable resource : Resource.resource option;
  3. mutable scope_spans : scope_spans list;
  4. mutable schema_url : string;
}
type traces_data = private {
  1. mutable resource_spans : resource_spans list;
}
type span_flags =
  1. | Span_flags_do_not_use
  2. | Span_flags_trace_flags_mask
  3. | Span_flags_context_has_is_remote_mask
  4. | Span_flags_context_is_remote_mask

Basic values

val default_span_span_kind : unit -> span_span_kind

default_span_span_kind () is a new empty value for type span_span_kind

val default_span_event : unit -> span_event

default_span_event () is a new empty value for type span_event

default_span_link () is a new empty value for type span_link

val default_status_status_code : unit -> status_status_code

default_status_status_code () is a new empty value for type status_status_code

val default_status : unit -> status

default_status () is a new empty value for type status

val default_span : unit -> span

default_span () is a new empty value for type span

val default_scope_spans : unit -> scope_spans

default_scope_spans () is a new empty value for type scope_spans

val default_resource_spans : unit -> resource_spans

default_resource_spans () is a new empty value for type resource_spans

val default_traces_data : unit -> traces_data

default_traces_data () is a new empty value for type traces_data

val default_span_flags : unit -> span_flags

default_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_event

default_span_event () is the default value for type span_event

make_span_event … () is a builder for type span_event

val copy_span_event : span_event -> span_event
val span_event_has_time_unix_nano : span_event -> bool

presence of field "time_unix_nano" in span_event

val span_event_set_time_unix_nano : span_event -> int64 -> unit

set field time_unix_nano in span_event

val span_event_has_name : span_event -> bool

presence of field "name" in span_event

val span_event_set_name : span_event -> string -> unit

set field name in span_event

val span_event_set_attributes : span_event -> Common.key_value list -> unit

set field attributes in span_event

val span_event_has_dropped_attributes_count : span_event -> bool

presence of field "dropped_attributes_count" in span_event

val span_event_set_dropped_attributes_count : span_event -> int32 -> unit

set field dropped_attributes_count in span_event

default_span_link () is the default value for type span_link

val default_status_status_code : unit -> status_status_code

default_status_status_code () is the default value for type status_status_code

val default_status : - ?message:string -> - ?code:status_status_code -> - unit -> - status

default_status () is the default value for type status

val default_span : + span_link

make_span_link … () is a builder for type span_link

presence of field "trace_id" in span_link

set field trace_id in span_link

presence of field "span_id" in span_link

set field span_id in span_link

presence of field "trace_state" in span_link

set field trace_state in span_link

set field attributes in span_link

presence of field "dropped_attributes_count" in span_link

set field dropped_attributes_count in span_link

presence of field "flags" in span_link

set field flags in span_link

val make_status : ?message:string -> ?code:status_status_code -> unit -> status

make_status … () is a builder for type status

val copy_status : status -> status
val status_has_message : status -> bool

presence of field "message" in status

val status_set_message : status -> string -> unit

set field message in status

val status_has_code : status -> bool

presence of field "code" in status

val status_set_code : status -> status_status_code -> unit

set 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 -> - span

default_span () is the default value for type span

val default_scope_spans : - ?scope:Common.instrumentation_scope option -> + span

make_span … () is a builder for type span

val copy_span : span -> span
val span_has_trace_id : span -> bool

presence of field "trace_id" in span

val span_set_trace_id : span -> bytes -> unit

set field trace_id in span

val span_has_span_id : span -> bool

presence of field "span_id" in span

val span_set_span_id : span -> bytes -> unit

set field span_id in span

val span_has_trace_state : span -> bool

presence of field "trace_state" in span

val span_set_trace_state : span -> string -> unit

set field trace_state in span

val span_has_parent_span_id : span -> bool

presence of field "parent_span_id" in span

val span_set_parent_span_id : span -> bytes -> unit

set field parent_span_id in span

val span_has_flags : span -> bool

presence of field "flags" in span

val span_set_flags : span -> int32 -> unit

set field flags in span

val span_has_name : span -> bool

presence of field "name" in span

val span_set_name : span -> string -> unit

set field name in span

val span_has_kind : span -> bool

presence of field "kind" in span

val span_set_kind : span -> span_span_kind -> unit

set field kind in span

val span_has_start_time_unix_nano : span -> bool

presence of field "start_time_unix_nano" in span

val span_set_start_time_unix_nano : span -> int64 -> unit

set field start_time_unix_nano in span

val span_has_end_time_unix_nano : span -> bool

presence of field "end_time_unix_nano" in span

val span_set_end_time_unix_nano : span -> int64 -> unit

set field end_time_unix_nano in span

val span_set_attributes : span -> Common.key_value list -> unit

set field attributes in span

val span_has_dropped_attributes_count : span -> bool

presence of field "dropped_attributes_count" in span

val span_set_dropped_attributes_count : span -> int32 -> unit

set field dropped_attributes_count in span

val span_set_events : span -> span_event list -> unit

set field events in span

val span_has_dropped_events_count : span -> bool

presence of field "dropped_events_count" in span

val span_set_dropped_events_count : span -> int32 -> unit

set field dropped_events_count in span

set field links in span

presence of field "dropped_links_count" in span

set field dropped_links_count in span

val span_set_status : span -> status -> unit

set field status in span

val make_scope_spans : + ?scope:Common.instrumentation_scope -> ?spans:span list -> ?schema_url:string -> unit -> - scope_spans

default_scope_spans () is the default value for type scope_spans

val default_resource_spans : - ?resource:Resource.resource option -> + scope_spans

make_scope_spans … () is a builder for type scope_spans

val copy_scope_spans : scope_spans -> scope_spans
val scope_spans_set_scope : scope_spans -> Common.instrumentation_scope -> unit

set field scope in scope_spans

val scope_spans_set_spans : scope_spans -> span list -> unit

set field spans in scope_spans

val scope_spans_has_schema_url : scope_spans -> bool

presence of field "schema_url" in scope_spans

val scope_spans_set_schema_url : scope_spans -> string -> unit

set field schema_url in scope_spans

val make_resource_spans : + ?resource:Resource.resource -> ?scope_spans:scope_spans list -> ?schema_url:string -> unit -> - resource_spans

default_resource_spans () is the default value for type resource_spans

val default_traces_data : + resource_spans

make_resource_spans … () is a builder for type resource_spans

val copy_resource_spans : resource_spans -> resource_spans
val resource_spans_set_resource : resource_spans -> Resource.resource -> unit

set field resource in resource_spans

val resource_spans_set_scope_spans : resource_spans -> scope_spans list -> unit

set field scope_spans in resource_spans

val resource_spans_has_schema_url : resource_spans -> bool

presence of field "schema_url" in resource_spans

val resource_spans_set_schema_url : resource_spans -> string -> unit

set field schema_url in resource_spans

val make_traces_data : ?resource_spans:resource_spans list -> unit -> - traces_data

default_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_event

make_span_event … () is a builder for type span_event

make_span_link … () is a builder for type span_link

val make_status : message:string -> code:status_status_code -> unit -> status

make_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 -> - span

make_span … () is a builder for type span

val make_scope_spans : - ?scope:Common.instrumentation_scope option -> - spans:span list -> - schema_url:string -> - unit -> - scope_spans

make_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_spans

make_resource_spans … () is a builder for type resource_spans

val make_traces_data : - resource_spans:resource_spans list -> - unit -> - traces_data

make_traces_data … () is a builder for type traces_data

Formatters

val pp_span_span_kind : Stdlib.Format.formatter -> span_span_kind -> unit

pp_span_span_kind v formats v

val pp_span_event : Stdlib.Format.formatter -> span_event -> unit

pp_span_event v formats v

pp_span_link v formats v

val pp_status_status_code : + traces_data

make_traces_data … () is a builder for type traces_data

val copy_traces_data : traces_data -> traces_data
val traces_data_set_resource_spans : traces_data -> resource_spans list -> unit

set field resource_spans in traces_data

Formatters

val pp_span_span_kind : Stdlib.Format.formatter -> span_span_kind -> unit

pp_span_span_kind v formats v

val pp_span_event : Stdlib.Format.formatter -> span_event -> unit

pp_span_event v formats v

pp_span_link v formats v

val pp_status_status_code : Stdlib.Format.formatter -> status_status_code -> - unit

pp_status_status_code v formats v

val pp_status : Stdlib.Format.formatter -> status -> unit

pp_status v formats v

val pp_span : Stdlib.Format.formatter -> span -> unit

pp_span v formats v

val pp_scope_spans : Stdlib.Format.formatter -> scope_spans -> unit

pp_scope_spans v formats v

val pp_resource_spans : Stdlib.Format.formatter -> resource_spans -> unit

pp_resource_spans v formats v

val pp_traces_data : Stdlib.Format.formatter -> traces_data -> unit

pp_traces_data v formats v

Protobuf Encoding

val encode_pb_span_span_kind : span_span_kind -> Pbrt.Encoder.t -> unit

encode_pb_span_span_kind v encoder encodes v with the given encoder

val encode_pb_span_event : span_event -> Pbrt.Encoder.t -> unit

encode_pb_span_event v encoder encodes v with the given encoder

encode_pb_span_link v encoder encodes v with the given encoder

val encode_pb_status_status_code : status_status_code -> Pbrt.Encoder.t -> unit

encode_pb_status_status_code v encoder encodes v with the given encoder

val encode_pb_status : status -> Pbrt.Encoder.t -> unit

encode_pb_status v encoder encodes v with the given encoder

val encode_pb_span : span -> Pbrt.Encoder.t -> unit

encode_pb_span v encoder encodes v with the given encoder

val encode_pb_scope_spans : scope_spans -> Pbrt.Encoder.t -> unit

encode_pb_scope_spans v encoder encodes v with the given encoder

val encode_pb_resource_spans : resource_spans -> Pbrt.Encoder.t -> unit

encode_pb_resource_spans v encoder encodes v with the given encoder

val encode_pb_traces_data : traces_data -> Pbrt.Encoder.t -> unit

encode_pb_traces_data v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_span_span_kind : Pbrt.Decoder.t -> span_span_kind

decode_pb_span_span_kind decoder decodes a span_span_kind binary value from decoder

val decode_pb_span_event : Pbrt.Decoder.t -> span_event

decode_pb_span_event decoder decodes a span_event binary value from decoder

decode_pb_span_link decoder decodes a span_link binary value from decoder

val decode_pb_status_status_code : Pbrt.Decoder.t -> status_status_code

decode_pb_status_status_code decoder decodes a status_status_code binary value from decoder

val decode_pb_status : Pbrt.Decoder.t -> status

decode_pb_status decoder decodes a status binary value from decoder

val decode_pb_span : Pbrt.Decoder.t -> span

decode_pb_span decoder decodes a span binary value from decoder

val decode_pb_scope_spans : Pbrt.Decoder.t -> scope_spans

decode_pb_scope_spans decoder decodes a scope_spans binary value from decoder

val decode_pb_resource_spans : Pbrt.Decoder.t -> resource_spans

decode_pb_resource_spans decoder decodes a resource_spans binary value from decoder

val decode_pb_traces_data : Pbrt.Decoder.t -> traces_data

decode_pb_traces_data decoder decodes a traces_data binary value from decoder

+ unit

pp_status_status_code v formats v

val pp_status : Stdlib.Format.formatter -> status -> unit

pp_status v formats v

val pp_span : Stdlib.Format.formatter -> span -> unit

pp_span v formats v

val pp_scope_spans : Stdlib.Format.formatter -> scope_spans -> unit

pp_scope_spans v formats v

val pp_resource_spans : Stdlib.Format.formatter -> resource_spans -> unit

pp_resource_spans v formats v

val pp_traces_data : Stdlib.Format.formatter -> traces_data -> unit

pp_traces_data v formats v

val pp_span_flags : Stdlib.Format.formatter -> span_flags -> unit

pp_span_flags v formats v

Protobuf Encoding

val encode_pb_span_span_kind : span_span_kind -> Pbrt.Encoder.t -> unit

encode_pb_span_span_kind v encoder encodes v with the given encoder

val encode_pb_span_event : span_event -> Pbrt.Encoder.t -> unit

encode_pb_span_event v encoder encodes v with the given encoder

encode_pb_span_link v encoder encodes v with the given encoder

val encode_pb_status_status_code : status_status_code -> Pbrt.Encoder.t -> unit

encode_pb_status_status_code v encoder encodes v with the given encoder

val encode_pb_status : status -> Pbrt.Encoder.t -> unit

encode_pb_status v encoder encodes v with the given encoder

val encode_pb_span : span -> Pbrt.Encoder.t -> unit

encode_pb_span v encoder encodes v with the given encoder

val encode_pb_scope_spans : scope_spans -> Pbrt.Encoder.t -> unit

encode_pb_scope_spans v encoder encodes v with the given encoder

val encode_pb_resource_spans : resource_spans -> Pbrt.Encoder.t -> unit

encode_pb_resource_spans v encoder encodes v with the given encoder

val encode_pb_traces_data : traces_data -> Pbrt.Encoder.t -> unit

encode_pb_traces_data v encoder encodes v with the given encoder

val encode_pb_span_flags : span_flags -> Pbrt.Encoder.t -> unit

encode_pb_span_flags v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_span_span_kind : Pbrt.Decoder.t -> span_span_kind

decode_pb_span_span_kind decoder decodes a span_span_kind binary value from decoder

val decode_pb_span_event : Pbrt.Decoder.t -> span_event

decode_pb_span_event decoder decodes a span_event binary value from decoder

decode_pb_span_link decoder decodes a span_link binary value from decoder

val decode_pb_status_status_code : Pbrt.Decoder.t -> status_status_code

decode_pb_status_status_code decoder decodes a status_status_code binary value from decoder

val decode_pb_status : Pbrt.Decoder.t -> status

decode_pb_status decoder decodes a status binary value from decoder

val decode_pb_span : Pbrt.Decoder.t -> span

decode_pb_span decoder decodes a span binary value from decoder

val decode_pb_scope_spans : Pbrt.Decoder.t -> scope_spans

decode_pb_scope_spans decoder decodes a scope_spans binary value from decoder

val decode_pb_resource_spans : Pbrt.Decoder.t -> resource_spans

decode_pb_resource_spans decoder decodes a resource_spans binary value from decoder

val decode_pb_traces_data : Pbrt.Decoder.t -> traces_data

decode_pb_traces_data decoder decodes a traces_data binary value from decoder

val decode_pb_span_flags : Pbrt.Decoder.t -> span_flags

decode_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

type export_trace_service_request = {
  1. resource_spans : Trace.resource_spans list;
}
type export_trace_partial_success = {
  1. rejected_spans : int64;
  2. error_message : string;
}
type export_trace_service_response = {
  1. partial_success : export_trace_partial_success option;
}

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_service_request = private {
  1. mutable resource_spans : Trace.resource_spans list;
}
type export_trace_partial_success = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable rejected_spans : int64;
  3. mutable error_message : string;
}
type export_trace_service_response = private {
  1. mutable partial_success : export_trace_partial_success option;
}

Basic values

val default_export_trace_service_request : unit -> export_trace_service_request

default_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_success

default_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_response

default_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_request

default_export_trace_service_request () is the default value for type export_trace_service_request

val default_export_trace_partial_success : + export_trace_service_request

make_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_request
val export_trace_service_request_set_resource_spans : + export_trace_service_request -> + Trace.resource_spans list -> + unit

set field resource_spans in export_trace_service_request

val make_export_trace_partial_success : ?rejected_spans:int64 -> ?error_message:string -> unit -> - export_trace_partial_success

default_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_success

make_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_success
val export_trace_partial_success_has_rejected_spans : + export_trace_partial_success -> + bool

presence of field "rejected_spans" in export_trace_partial_success

val export_trace_partial_success_set_rejected_spans : + export_trace_partial_success -> + int64 -> + unit

set field rejected_spans in export_trace_partial_success

val export_trace_partial_success_has_error_message : + export_trace_partial_success -> + bool

presence of field "error_message" in export_trace_partial_success

val export_trace_partial_success_set_error_message : + export_trace_partial_success -> + string -> + unit

set field error_message in export_trace_partial_success

val make_export_trace_service_response : + ?partial_success:export_trace_partial_success -> unit -> - export_trace_service_response

default_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_request

make_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_success

make_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_response

make_export_trace_service_response … () is a builder for type export_trace_service_response

Formatters

val pp_export_trace_service_request : + export_trace_service_response

make_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_response
val export_trace_service_response_set_partial_success : + export_trace_service_response -> + export_trace_partial_success -> + unit

set field partial_success in export_trace_service_response

Formatters

val pp_export_trace_service_request : Stdlib.Format.formatter -> export_trace_service_request -> unit

pp_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

type t = private int
val max_bits : int
val empty : t
val get : t -> int -> bool
val set : t -> int -> t
val pp : Stdlib.Format.formatter -> t -> unit
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

type t

The decoder

Creator

val of_bytes : bytes -> t

of_bytes b creates a decoder positioned at start of bytes b.

val of_subbytes : bytes -> int -> int -> t

of_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.

  • since 3.0
val of_string : string -> t

of_string s creates a decoder positioned at start of string s.

val of_substring : string -> int -> int -> t

See of_subbytes.

  • since 3.0

Errors

type error =
  1. | Incomplete
  2. | Overlong_varint
  3. | Malformed_field
  4. | Overflow of string
  5. | Unexpected_payload of string * payload_kind
  6. | Missing_field of string
  7. | Malformed_variant of string
val error_to_string : error -> string

error_to_string e converts error e to its string representation.

exception Failure of error

Raised in decoding combinators

val malformed_variant : string -> 'a

malformed_variant variant_name raises the exception Protobuf.Decoder.Failure (Malformed_variant variant_name)

val unexpected_payload : string -> payload_kind -> 'a

unexpected_payload field_name pk raises the exception Protobuf.Decoder.Failure (Unexpected_payload (field_name, pk))

val missing_field : string -> 'a

missing_field field_name raises the exception Protobuf.Decoder.Failure (Missing_field field_name)

Decoding Functions

val key : t -> (int * payload_kind) option

key 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 -> unit

skip d pk skips the next value of kind pk in d. If skipping the value would exhaust input of d, raises Encoding_error Incomplete.

val nested : t -> t

nested d returns a decoder for a message nested in d. If reading the message would exhaust input of d, raises Failure Incomplete.

val map_entry : t -> decode_key:(t -> 'a) -> decode_value:(t -> 'b) -> 'a * 'b
val empty_nested : t -> unit

empty_nested d skips an empty message of 0 length. If reading the message would exhaust input of d, raises Failure Incomplete.

val packed_fold : ('a -> t -> 'a) -> 'a -> t -> 'a

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 -> int

int_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 -> int

int_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 -> int32

int32_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 -> int32

int32_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 -> int64

int64_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 -> int64

int64_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 -> int32

int32_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 -> int64

int64_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 -> bool

bool 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 -> float

float_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 -> float

float_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 -> int

int_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 -> int

int_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 -> string

string d reads a string value from d. If reading the message would exhaust input of d, raises Failure Incomplete.

val bytes : t -> bytes

bytes 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 option
val wrapper_float_value : t -> float option
val wrapper_int64_value : t -> int64 option
val wrapper_int32_value : t -> int32 option
val wrapper_bool_value : t -> bool option
val wrapper_string_value : t -> string option
val wrapper_bytes_value : t -> bytes option
+Decoder (pbrt.Pbrt.Decoder)

Module Pbrt.Decoder

Decoding protobufs.

Types

type t

The decoder

Creator

val of_bytes : bytes -> t

of_bytes b creates a decoder positioned at start of bytes b.

val of_subbytes : bytes -> int -> int -> t

of_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.

  • since 3.0
val of_string : string -> t

of_string s creates a decoder positioned at start of string s.

val of_substring : string -> int -> int -> t

See of_subbytes.

  • since 3.0

Errors

type error =
  1. | Incomplete
  2. | Overlong_varint
  3. | Malformed_field
  4. | Overflow of string
  5. | Unexpected_payload of string * payload_kind
  6. | Missing_field of string
  7. | Malformed_variant of string
val error_to_string : error -> string

error_to_string e converts error e to its string representation.

exception Failure of error

Raised in decoding combinators

val malformed_variant : string -> 'a

malformed_variant variant_name raises the exception Protobuf.Decoder.Failure (Malformed_variant variant_name)

val unexpected_payload : string -> payload_kind -> 'a

unexpected_payload field_name pk raises the exception Protobuf.Decoder.Failure (Unexpected_payload (field_name, pk))

val unexpected_payload_message : string -> int -> payload_kind -> 'a

Helper specifically for messages, wrapping around unexpected_payload.

  • since NEXT_RELEASE
val missing_field : string -> 'a

missing_field field_name raises the exception Protobuf.Decoder.Failure (Missing_field field_name)

Decoding Functions

val key : t -> (int * payload_kind) option

key 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 -> unit

skip d pk skips the next value of kind pk in d. If skipping the value would exhaust input of d, raises Encoding_error Incomplete.

val nested : t -> t

nested d returns a decoder for a message nested in d. If reading the message would exhaust input of d, raises Failure Incomplete.

val map_entry : t -> decode_key:(t -> 'a) -> decode_value:(t -> 'b) -> 'a * 'b
val empty_nested : t -> unit

empty_nested d skips an empty message of 0 length. If reading the message would exhaust input of d, raises Failure Incomplete.

val packed_fold : ('a -> t -> 'a) -> 'a -> t -> 'a

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 -> int

int_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 -> int

int_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 -> int32

int32_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 -> int32

int32_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 -> int64

int64_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 -> int64

int64_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 -> int32

int32_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 -> int64

int64_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 -> bool

bool 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 -> float

float_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 -> float

float_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 -> int

int_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 -> int

int_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 -> string

string d reads a string value from d. If reading the message would exhaust input of d, raises Failure Incomplete.

val bytes : t -> bytes

bytes 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 option
val wrapper_float_value : t -> float option
val wrapper_int64_value : t -> int64 option
val wrapper_int32_value : t -> int32 option
val wrapper_bool_value : t -> bool option
val wrapper_string_value : t -> string option
val 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
val pp_record_field : + ?absent:bool -> ?first:bool -> string -> (formatter -> 'a -> unit) -> formatter -> 'a -> - unit

pp_record_field label_name fmt field_value formats a record field_value with label_name

val pp_brk : (formatter -> 'a -> unit) -> formatter -> 'a -> unit

pp_brk fmt r formats record value r with curly brakets.

+ unit

pp_record_field label_name fmt field_value formats a record field_value with label_name

  • parameter absent

    if true, a comment "(* absent *)" is emitted. since NEXT_RELEASE

val pp_brk : (formatter -> 'a -> unit) -> formatter -> 'a -> unit

pp_brk fmt r formats record value r with curly brakets.

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 payload_kind =
  1. | Varint
  2. | Bits32
  3. | Bits64
  4. | Bytes

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 ... end

Decoding protobufs.

module Encoder : sig ... end

Encoding protobufs.

module List_util : sig ... end
module Repeated_field : sig ... end

Optimized representation for repeated fields

module Pp : sig ... end

Runtime functions for Pretty Printing functionality

+Pbrt (pbrt.Pbrt)

Module Pbrt

Protobuf runtime library

type payload_kind =
  1. | Varint
  2. | Bits32
  3. | Bits64
  4. | Bytes

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 ... end

Decoding protobufs.

module Bitfield : sig ... end

Bitfield used for presence

module Encoder : sig ... end

Encoding protobufs.

module List_util : sig ... end
module Repeated_field : sig ... end

Optimized representation for repeated fields

module Pp : sig ... end

Runtime 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.

type error =
  1. | Unexpected_option_type of string * string
  2. | Malformed_variant of string
exception Failure of error

Decoding/Encoding failure

val unexpected_option_type : string -> string -> 'a

unexpected_option_type record_name field_name raises Failure (Unexpected_json_type (record_name, field_name))

val malformed_variant : string -> 'a

malformed_variant variant_name raise Failure (Malformed_variant variant_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 ... end

All exceptions which could be raised by the generated option parsers.

type constant =
  1. | Constant_string of string
  2. | Constant_bool of bool
  3. | Constant_int of int
  4. | Constant_float of float
  5. | Constant_literal of string
type message_literal = (string * value) list
and list_literal = value list
and value =
  1. | Scalar_value of constant
  2. | Message_literal of message_literal
  3. | List_literal of list_literal

Helper module for the generated code for common functionality

val string : value -> string -> string -> string
val float : value -> string -> string -> float
val int32 : value -> string -> string -> int32
val int64 : value -> string -> string -> int64
val int : value -> string -> string -> int
val bool : value -> string -> string -> bool
val bytes : value -> string -> string -> bytes
val 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

Package info

changes-files
license-files
readme-files
+index (pbrt.index)

Package pbrt

Package info

changes-files
license-files
readme-files