From 619b389322a7b49f11bfac22832566541e8df224 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Fri, 15 Apr 2022 21:53:43 -0400 Subject: [PATCH] type error fixed --- src/opentelemetry.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opentelemetry.ml b/src/opentelemetry.ml index 612315f4..6c413a3c 100644 --- a/src/opentelemetry.ml +++ b/src/opentelemetry.ml @@ -732,6 +732,8 @@ module Logs = struct | None -> observed_time_unix_nano | Some t -> t in + let trace_id = Option.map Trace_id.to_bytes trace_id in + let span_id = Option.map Span_id.to_bytes span_id in let body = _conv_value body in default_log_record ~time_unix_nano ~observed_time_unix_nano