Skip to content

Commit

Permalink
use dune-generated version number in instrumentation name
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 9, 2024
1 parent 8d0f815 commit abafac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/opentelemetry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abafac8

Please sign in to comment.