use dune-generated version number in instrumentation name

This commit is contained in:
Simon Cruanes 2024-02-09 14:58:55 -05:00
parent 8d0f815fe2
commit abafac8361
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -429,7 +429,8 @@ module Globals = struct
let service_instance_id = ref None
let instrumentation_library =
default_instrumentation_scope ~version:"0.2" ~name:"ocaml-otel" ()
default_instrumentation_scope ~version:"%%VERSION_NUM%%" ~name:"ocaml-otel"
()
(** Global attributes, initially set
via OTEL_RESOURCE_ATTRIBUTES and modifiable