Opentelemetry_proto.TraceSourceCode for trace.proto
type span_event = private {mutable _presence : Pbrt.Bitfield.t;presence for 3 fields
*)mutable time_unix_nano : int64;mutable name : string;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;}type span_link = private {mutable _presence : Pbrt.Bitfield.t;presence for 5 fields
*)mutable trace_id : bytes;mutable span_id : bytes;mutable trace_state : string;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable flags : int32;}type status = private {mutable _presence : Pbrt.Bitfield.t;presence for 2 fields
*)mutable message : string;mutable code : status_status_code;}type span = private {mutable _presence : Pbrt.Bitfield.t;presence for 12 fields
*)mutable trace_id : bytes;mutable span_id : bytes;mutable trace_state : string;mutable parent_span_id : bytes;mutable flags : int32;mutable name : string;mutable kind : span_span_kind;mutable start_time_unix_nano : int64;mutable end_time_unix_nano : int64;mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable events : span_event list;mutable dropped_events_count : int32;mutable links : span_link list;mutable dropped_links_count : int32;mutable status : status option;}type scope_spans = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable scope : Common.instrumentation_scope option;mutable spans : span list;mutable schema_url : string;}type resource_spans = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable resource : Resource.resource option;mutable scope_spans : scope_spans list;mutable schema_url : string;}default_span_span_kind () is a new empty value for type span_span_kind
default_span_event () is a new empty value for type span_event
default_span_link () is a new empty value for type span_link
default_status_status_code () is a new empty value for type status_status_code
default_scope_spans () is a new empty value for type scope_spans
default_resource_spans () is a new empty value for type resource_spans
default_traces_data () is a new empty value for type traces_data
default_span_flags () is a new empty value for type span_flags
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
presence of field "time_unix_nano" in span_event
set field time_unix_nano in span_event
presence of field "name" in span_event
set field name in span_event
set field attributes in span_event
presence of field "dropped_attributes_count" in span_event
set field dropped_attributes_count in span_event
val make_span_link :
?trace_id:bytes ->
?span_id:bytes ->
?trace_state:string ->
?attributes:Common.key_value list ->
?dropped_attributes_count:int32 ->
?flags:int32 ->
unit ->
span_linkmake_span_link … () is a builder for type 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
make_status … () is a builder for type status
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 ->
?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 ->
unit ->
spanmake_span … () is a builder for type span
set field kind in span
presence of field "start_time_unix_nano" in span
set field start_time_unix_nano in span
set field attributes in span
presence of field "dropped_attributes_count" in span
set field dropped_attributes_count in span
set field events in span
presence of field "dropped_events_count" in span
set field dropped_events_count in span
presence of field "dropped_links_count" in span
val make_scope_spans :
?scope:Common.instrumentation_scope ->
?spans:span list ->
?schema_url:string ->
unit ->
scope_spansmake_scope_spans … () is a builder for type scope_spans
set field scope in scope_spans
set field spans in scope_spans
presence of field "schema_url" in scope_spans
set field schema_url in scope_spans
val make_resource_spans :
?resource:Resource.resource ->
?scope_spans:scope_spans list ->
?schema_url:string ->
unit ->
resource_spansmake_resource_spans … () is a builder for type resource_spans
set field resource in resource_spans
set field scope_spans in resource_spans
presence of field "schema_url" in resource_spans
set field schema_url in resource_spans
make_traces_data … () is a builder for type traces_data
set field resource_spans in traces_data
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
pp_span_flags v formats v
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
encode_pb_span_flags v encoder encodes v with the given encoder
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
decode_pb_span_flags decoder decodes a span_flags binary value from decoder
encode_json_span_span_kind v encoder encodes v to to json
encode_json_span_event v encoder encodes v to to json
encode_json_span_link v encoder encodes v to to json
encode_json_status_status_code v encoder encodes v to to json
encode_json_status v encoder encodes v to to json
encode_json_span v encoder encodes v to to json
encode_json_scope_spans v encoder encodes v to to json
encode_json_resource_spans v encoder encodes v to to json
encode_json_traces_data v encoder encodes v to to json
encode_json_span_flags v encoder encodes v to to json
decode_json_span_span_kind decoder decodes a span_span_kind value from decoder
decode_json_span_event decoder decodes a span_event value from decoder
decode_json_span_link decoder decodes a span_link value from decoder
decode_json_status_status_code decoder decodes a status_status_code value from decoder
decode_json_status decoder decodes a status value from decoder
decode_json_span decoder decodes a span value from decoder
decode_json_scope_spans decoder decodes a scope_spans value from decoder
decode_json_resource_spans decoder decodes a resource_spans value from decoder
decode_json_traces_data decoder decodes a traces_data value from decoder
decode_json_span_flags decoder decodes a span_flags value from decoder