From abafac8361ee92db5cb56d6446c685141e94b043 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Fri, 9 Feb 2024 14:58:55 -0500 Subject: [PATCH] use dune-generated version number in instrumentation name --- src/core/opentelemetry.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/opentelemetry.ml b/src/core/opentelemetry.ml index e8568863..4127568e 100644 --- a/src/core/opentelemetry.ml +++ b/src/core/opentelemetry.ml @@ -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