From 3d89103ca6b05f573966c7444b2920c3294bab85 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 21 Mar 2022 13:16:50 -0400 Subject: [PATCH] typo --- src/opentelemetry.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opentelemetry.ml b/src/opentelemetry.ml index 67b9b4ef..28cf5126 100644 --- a/src/opentelemetry.ml +++ b/src/opentelemetry.ml @@ -170,14 +170,14 @@ module Globals = struct default_instrumentation_library ~name:"ocaml-opentelemetry" () (* TODO: version, perhaps with dune subst? *) - (** Global attributes, set via OTEL_RESOURCE_ATTRIBUTE *) + (** Global attributes, set via OTEL_RESOURCE_ATTRIBUTES *) let global_attributes : key_value list = let parse_pair s = match String.split_on_char '=' s with | [a;b] -> default_key_value ~key:a ~value:(Some (String_value b)) () | _ -> failwith (Printf.sprintf "invalid attribute: %S" s) in try - Sys.getenv "OTEL_RESOURCE_ATTRIBUTE" |> String.split_on_char ',' + Sys.getenv "OTEL_RESOURCE_ATTRIBUTES" |> String.split_on_char ',' |> List.map parse_pair with _ -> []