mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
fix tests
This commit is contained in:
parent
6faf23899f
commit
d974213376
2 changed files with 7 additions and 2 deletions
|
|
@ -7,8 +7,8 @@
|
|||
scope_logs =
|
||||
[{ scope =
|
||||
Some(
|
||||
{ name = "ocaml-otel";
|
||||
version = "%%VERSION_NUM%%";
|
||||
{ name = "opentelemetry";
|
||||
version = "";
|
||||
attributes = [];
|
||||
dropped_attributes_count = 0 (* absent *);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue