opentelemetry: in Trace, change default span kind

This commit is contained in:
Simon Cruanes 2023-09-06 23:34:58 -04:00
parent 4af7b9bd9a
commit b67ecfdda7
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -436,10 +436,11 @@ module Globals = struct
List.rev_append (List.filter not_redundant !global_attributes) into
(** Default span kind in {!Span.create}.
This will be used in all spans that do not specify [~kind] explicitly.
This will be used in all spans that do not specify [~kind] explicitly;
it is set to "internal", following directions from the [.proto] file.
It can be convenient to set "client" or "server" uniformly in here.
@since 0.4 *)
let default_span_kind = ref Proto.Trace.Span_kind_unspecified
let default_span_kind = ref Proto.Trace.Span_kind_internal
let mk_attributes ?(service_name = !service_name) ?(attrs = []) () : _ list =
let l = List.map _conv_key_value attrs in