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 =
Some(
{ name = "ocaml-otel";
version = "%%VERSION_NUM%%";
{ name = "opentelemetry";
version = "";
attributes = [];
dropped_attributes_count = 0 (* absent *);
});

View file

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