Skip to content

Commit

Permalink
opentelemetry: in Trace, change default span kind
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Sep 7, 2023
1 parent 4af7b9b commit b67ecfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/opentelemetry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b67ecfd

Please sign in to comment.