mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
use conventions
This commit is contained in:
parent
c362899ff1
commit
71b999a5b7
1 changed files with 2 additions and 2 deletions
|
|
@ -297,13 +297,13 @@ module Globals = struct
|
|||
let mk_attributes ?(service_name = !service_name) ?(attrs=[]) () : _ list =
|
||||
let l = List.map _conv_key_value attrs in
|
||||
let l =
|
||||
default_key_value ~key:"service.name"
|
||||
default_key_value ~key:Conventions.Attributes.Service.name
|
||||
~value:(Some (String_value service_name)) () :: l
|
||||
in
|
||||
let l = match !service_namespace with
|
||||
| None -> l
|
||||
| Some v ->
|
||||
default_key_value ~key:"service.name"
|
||||
default_key_value ~key:Conventions.Attributes.Service.namespace
|
||||
~value:(Some (String_value v)) () :: l
|
||||
in
|
||||
l |> merge_global_attributes_
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue