package opentelemetry
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=7c674ecf1851d23cc520dad81ac1135ad4ac2460e54985dfe655fcfda265a713
    
    
  sha512=34f585d9961d0c9ad908f479b3cf93cadc9602ffc39ec37396c8613cc76ae3e2fbaf5446a51c4820cc02b16e01d6df74cb607e3fa1b291d1847f2d76b31f5f0e
    
    
  doc/opentelemetry.proto/Opentelemetry_proto/Trace/index.html
Module Opentelemetry_proto.TraceSource
Code for trace.proto
Types
type span_event = {time_unix_nano : int64;name : string;attributes : Common.key_value list;dropped_attributes_count : int32;
}type span_link = {trace_id : bytes;span_id : bytes;trace_state : string;attributes : Common.key_value list;dropped_attributes_count : int32;
}type span = {trace_id : bytes;span_id : bytes;trace_state : string;parent_span_id : bytes;name : string;kind : span_span_kind;start_time_unix_nano : int64;end_time_unix_nano : int64;attributes : Common.key_value list;dropped_attributes_count : int32;events : span_event list;dropped_events_count : int32;links : span_link list;dropped_links_count : int32;status : status option;
}type scope_spans = {scope : Common.instrumentation_scope option;spans : span list;schema_url : string;
}type resource_spans = {resource : Resource.resource option;scope_spans : scope_spans list;schema_url : string;
}Basic values
default_span_span_kind () is the default value for type span_span_kind
val default_span_event : 
  ?time_unix_nano:int64 ->
  ?name:string ->
  ?attributes:Common.key_value list ->
  ?dropped_attributes_count:int32 ->
  unit ->
  span_eventdefault_span_event () is the default value for type span_event
val default_span_link : 
  ?trace_id:bytes ->
  ?span_id:bytes ->
  ?trace_state:string ->
  ?attributes:Common.key_value list ->
  ?dropped_attributes_count:int32 ->
  unit ->
  span_linkdefault_span_link () is the default value for type span_link
default_status_status_code () is the default value for type status_status_code
default_status () is the default value for type status
val default_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 ->
  spandefault_span () is the default value for type span
val default_scope_spans : 
  ?scope:Common.instrumentation_scope option ->
  ?spans:span list ->
  ?schema_url:string ->
  unit ->
  scope_spansdefault_scope_spans () is the default value for type scope_spans
val default_resource_spans : 
  ?resource:Resource.resource option ->
  ?scope_spans:scope_spans list ->
  ?schema_url:string ->
  unit ->
  resource_spansdefault_resource_spans () is the default value for type resource_spans
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_eventmake_span_event … () is a builder for type span_event
val make_span_link : 
  trace_id:bytes ->
  span_id:bytes ->
  trace_state:string ->
  attributes:Common.key_value list ->
  dropped_attributes_count:int32 ->
  unit ->
  span_linkmake_span_link … () is a builder for type span_link
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 ->
  spanmake_span … () is a builder for type span
val make_scope_spans : 
  ?scope:Common.instrumentation_scope option ->
  spans:span list ->
  schema_url:string ->
  unit ->
  scope_spansmake_scope_spans … () is a builder for type scope_spans
val make_resource_spans : 
  ?resource:Resource.resource option ->
  scope_spans:scope_spans list ->
  schema_url:string ->
  unit ->
  resource_spansmake_resource_spans … () is a builder for type resource_spans
make_traces_data … () is a builder for type traces_data
Formatters
pp_span_span_kind v formats v
pp_span_event v formats v
pp_span_link v formats v
pp_status_status_code v formats v
pp_status v formats v
pp_span v formats v
pp_scope_spans v formats v
pp_resource_spans v formats v
pp_traces_data v formats v
Protobuf Encoding
encode_pb_span_span_kind v encoder encodes v with the given encoder
encode_pb_span_event v encoder encodes v with the given encoder
encode_pb_span_link v encoder encodes v with the given encoder
encode_pb_status_status_code v encoder encodes v with the given encoder
encode_pb_status v encoder encodes v with the given encoder
encode_pb_span v encoder encodes v with the given encoder
encode_pb_scope_spans v encoder encodes v with the given encoder
encode_pb_resource_spans v encoder encodes v with the given encoder
encode_pb_traces_data v encoder encodes v with the given encoder
Protobuf Decoding
decode_pb_span_span_kind decoder decodes a span_span_kind binary value from decoder
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
decode_pb_status_status_code decoder decodes a status_status_code binary value from decoder
decode_pb_status decoder decodes a status binary value from decoder
decode_pb_span decoder decodes a span binary value from decoder
decode_pb_scope_spans decoder decodes a scope_spans binary value from decoder
decode_pb_resource_spans decoder decodes a resource_spans binary value from decoder
decode_pb_traces_data decoder decodes a traces_data binary value from decoder