package opentelemetry-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Opentelemetry.Proto.Logs end
type severity_number = Opentelemetry__Logs_types.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__Logs_types.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__.Common_types.any_value option;
  6. attributes : Opentelemetry__.Common_types.key_value list;
  7. dropped_attributes_count : int32;
  8. flags : int32;
  9. trace_id : bytes;
  10. span_id : bytes;
}
type scope_logs = Opentelemetry__Logs_types.scope_logs = {
  1. scope : Opentelemetry__.Common_types.instrumentation_scope option;
  2. log_records : log_record list;
  3. schema_url : string;
}
type resource_logs = Opentelemetry__Logs_types.resource_logs = {
  1. resource : Opentelemetry__.Resource_types.resource option;
  2. scope_logs : scope_logs list;
  3. schema_url : string;
}
type logs_data = Opentelemetry__Logs_types.logs_data = {
  1. resource_logs : resource_logs list;
}
type log_record_flags = Opentelemetry__Logs_types.log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask
val default_severity_number : unit -> severity_number
val default_log_record : ?time_unix_nano:int64 -> ?observed_time_unix_nano:int64 -> ?severity_number:severity_number -> ?severity_text:string -> ?body:Opentelemetry__.Common_types.any_value option -> ?attributes:Opentelemetry__.Common_types.key_value list -> ?dropped_attributes_count:int32 -> ?flags:int32 -> ?trace_id:bytes -> ?span_id:bytes -> unit -> log_record
val default_scope_logs : ?scope:Opentelemetry__.Common_types.instrumentation_scope option -> ?log_records:log_record list -> ?schema_url:string -> unit -> scope_logs
val default_resource_logs : ?resource:Opentelemetry__.Resource_types.resource option -> ?scope_logs:scope_logs list -> ?schema_url:string -> unit -> resource_logs
val default_logs_data : ?resource_logs:resource_logs list -> unit -> logs_data
val default_log_record_flags : unit -> log_record_flags
val encode_severity_number : Opentelemetry__.Logs_types.severity_number -> Pbrt.Encoder.t -> unit
val encode_log_record : Opentelemetry__.Logs_types.log_record -> Pbrt.Encoder.t -> unit
val encode_scope_logs : Opentelemetry__.Logs_types.scope_logs -> Pbrt.Encoder.t -> unit
val encode_resource_logs : Opentelemetry__.Logs_types.resource_logs -> Pbrt.Encoder.t -> unit
val encode_logs_data : Opentelemetry__.Logs_types.logs_data -> Pbrt.Encoder.t -> unit
val encode_log_record_flags : Opentelemetry__.Logs_types.log_record_flags -> Pbrt.Encoder.t -> unit
val decode_severity_number : Pbrt.Decoder.t -> Opentelemetry__.Logs_types.severity_number
val decode_log_record : Pbrt.Decoder.t -> Opentelemetry__.Logs_types.log_record
val decode_scope_logs : Pbrt.Decoder.t -> Opentelemetry__.Logs_types.scope_logs
val decode_resource_logs : Pbrt.Decoder.t -> Opentelemetry__.Logs_types.resource_logs
val decode_logs_data : Pbrt.Decoder.t -> Opentelemetry__.Logs_types.logs_data
val decode_log_record_flags : Pbrt.Decoder.t -> Opentelemetry__.Logs_types.log_record_flags
val pp_severity_number : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.severity_number -> unit
val pp_log_record : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.log_record -> unit
val pp_scope_logs : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.scope_logs -> unit
val pp_resource_logs : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.resource_logs -> unit
val pp_logs_data : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.logs_data -> unit
val pp_log_record_flags : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.log_record_flags -> unit
include module type of struct include Opentelemetry.Logs end
type t = Opentelemetry__.Logs_types.log_record
type severity = Opentelemetry__.Logs_types.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
val pp_severity : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.severity_number -> unit
type flags = Opentelemetry__.Logs_types.log_record_flags =
  1. | Log_record_flags_do_not_use
  2. | Log_record_flags_trace_flags_mask
val pp_flags : Stdlib.Format.formatter -> Opentelemetry__.Logs_types.log_record_flags -> unit
val make : ?time:Opentelemetry.Timestamp_ns.t -> ?observed_time_unix_nano:Opentelemetry.Timestamp_ns.t -> ?severity:Opentelemetry__.Logs_types.severity_number -> ?log_level:string -> ?flags:int32 -> ?trace_id:Opentelemetry.Trace_id.t -> ?span_id:Opentelemetry.Span_id.t -> Opentelemetry.value -> t
val make_str : ?time:Opentelemetry.Timestamp_ns.t -> ?observed_time_unix_nano:Opentelemetry.Timestamp_ns.t -> ?severity:Opentelemetry__.Logs_types.severity_number -> ?log_level:string -> ?flags:int32 -> ?trace_id:Opentelemetry.Trace_id.t -> ?span_id:Opentelemetry.Span_id.t -> string -> t
val make_strf : ?time:Opentelemetry.Timestamp_ns.t -> ?observed_time_unix_nano:Opentelemetry.Timestamp_ns.t -> ?severity:Opentelemetry__.Logs_types.severity_number -> ?log_level:string -> ?flags:int32 -> ?trace_id:Opentelemetry.Trace_id.t -> ?span_id:Opentelemetry.Span_id.t -> ('a, Stdlib.Format.formatter, unit, t) Stdlib.format4 -> 'a
val emit : ?service_name:string -> ?attrs: (string * [< `Bool of bool | `Float of float | `Int of int | `None | `String of string ]) list -> t list -> unit
OCaml

Innovation. Community. Security.