Legend:
Library
Module
Module type
Parameter
Class
Class type
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 =
| Severity_number_unspecified
| Severity_number_trace
| Severity_number_trace2
| Severity_number_trace3
| Severity_number_trace4
| Severity_number_debug
| Severity_number_debug2
| Severity_number_debug3
| Severity_number_debug4
| Severity_number_info
| Severity_number_info2
| Severity_number_info3
| Severity_number_info4
| Severity_number_warn
| Severity_number_warn2
| Severity_number_warn3
| Severity_number_warn4
| Severity_number_error
| Severity_number_error2
| Severity_number_error3
| Severity_number_error4
| Severity_number_fatal
| Severity_number_fatal2
| Severity_number_fatal3
| Severity_number_fatal4
type log_record = Opentelemetry__Logs_types.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;
}
type scope_logs = Opentelemetry__Logs_types.scope_logs = {
scope : Opentelemetry__.Common_types.instrumentation_scope option;
log_records : log_record list;
schema_url : string;
}
type resource_logs = Opentelemetry__Logs_types.resource_logs = {
resource : Opentelemetry__.Resource_types.resource option;
scope_logs : scope_logs list;
schema_url : string;
}
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
include module type of struct include Opentelemetry.Logs end
type severity = Opentelemetry__.Logs_types.severity_number =
| Severity_number_unspecified
| Severity_number_trace
| Severity_number_trace2
| Severity_number_trace3
| Severity_number_trace4
| Severity_number_debug
| Severity_number_debug2
| Severity_number_debug3
| Severity_number_debug4
| Severity_number_info
| Severity_number_info2
| Severity_number_info3
| Severity_number_info4
| Severity_number_warn
| Severity_number_warn2
| Severity_number_warn3
| Severity_number_warn4
| Severity_number_error
| Severity_number_error2
| Severity_number_error3
| Severity_number_error4
| Severity_number_fatal
| Severity_number_fatal2
| Severity_number_fatal3
| Severity_number_fatal4
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