Proto.Logstype severity_number = type log_record = {time_unix_nano : int64; |
observed_time_unix_nano : int64; |
severity_number : severity_number; |
severity_text : string; |
name : 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; |
}type instrumentation_library_logs = {instrumentation_library : Opentelemetry__Common_types.instrumentation_library
option; |
log_records : log_record list; |
schema_url : string; |
}type resource_logs = {resource : Opentelemetry__Resource_types.resource option; |
instrumentation_library_logs : instrumentation_library_logs list; |
schema_url : string; |
}val default_severity_number : unit -> severity_numberdefault_severity_number () is the default value for type severity_number
val default_log_record :
?time_unix_nano:int64 ->
?observed_time_unix_nano:int64 ->
?severity_number:severity_number ->
?severity_text:string ->
?name: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_recorddefault_log_record () is the default value for type log_record
val default_instrumentation_library_logs :
?instrumentation_library:
Opentelemetry__Common_types.instrumentation_library option ->
?log_records:log_record list ->
?schema_url:string ->
unit ->
instrumentation_library_logsdefault_instrumentation_library_logs () is the default value for type instrumentation_library_logs
val default_resource_logs :
?resource:Opentelemetry__Resource_types.resource option ->
?instrumentation_library_logs:instrumentation_library_logs list ->
?schema_url:string ->
unit ->
resource_logsdefault_resource_logs () is the default value for type resource_logs
val default_logs_data : ?resource_logs:resource_logs list -> unit -> logs_datadefault_logs_data () is the default value for type logs_data
val default_log_record_flags : unit -> log_record_flagsdefault_log_record_flags () is the default value for type log_record_flags
encode_severity_number v encoder encodes v with the given encoder
encode_log_record v encoder encodes v with the given encoder
val encode_instrumentation_library_logs :
Opentelemetry__Logs_types.instrumentation_library_logs ->
Pbrt.Encoder.t ->
unitencode_instrumentation_library_logs v encoder encodes v with the given encoder
encode_resource_logs v encoder encodes v with the given encoder
encode_logs_data v encoder encodes v with the given encoder
encode_log_record_flags v encoder encodes v with the given encoder
decode_severity_number decoder decodes a severity_number value from decoder
decode_log_record decoder decodes a log_record value from decoder
val decode_instrumentation_library_logs :
Pbrt.Decoder.t ->
Opentelemetry__Logs_types.instrumentation_library_logsdecode_instrumentation_library_logs decoder decodes a instrumentation_library_logs value from decoder
decode_resource_logs decoder decodes a resource_logs value from decoder
decode_logs_data decoder decodes a logs_data value from decoder
val pp_severity_number :
Stdlib.Format.formatter ->
Opentelemetry__Logs_types.severity_number ->
unitpp_severity_number v formats v
pp_log_record v formats v
val pp_instrumentation_library_logs :
Stdlib.Format.formatter ->
Opentelemetry__Logs_types.instrumentation_library_logs ->
unitpp_instrumentation_library_logs v formats v
pp_resource_logs v formats v
pp_logs_data v formats v