fix tests

This commit is contained in:
Simon Cruanes 2026-03-06 12:07:50 -05:00
parent 6faf23899f
commit d974213376
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 7 additions and 2 deletions

View file

@ -7,8 +7,8 @@
scope_logs = scope_logs =
[{ scope = [{ scope =
Some( Some(
{ name = "ocaml-otel"; { name = "opentelemetry";
version = "%%VERSION_NUM%%"; version = "";
attributes = []; attributes = [];
dropped_attributes_count = 0 (* absent *); dropped_attributes_count = 0 (* absent *);
}); });

View file

@ -42,6 +42,11 @@ let tests (signal_batches : Client.Resource_signal.t list) =
lr) lr)
sl.log_records sl.log_records
in in
Option.iter
(fun sc ->
Opentelemetry_proto.Common
.instrumentation_scope_set_version sc "")
sl.scope;
let sl = L.copy_scope_logs sl in let sl = L.copy_scope_logs sl in
L.scope_logs_set_log_records sl masked_log_records; L.scope_logs_set_log_records sl masked_log_records;
sl) sl)