mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 20:07:55 -04:00
fix test
This commit is contained in:
parent
c27cb13d4b
commit
6f75e90ee2
1 changed files with 10 additions and 7 deletions
|
|
@ -23,17 +23,20 @@ let tests (signal_batches : Client.Signal.t list) =
|
||||||
let masked_log_records =
|
let masked_log_records =
|
||||||
List.map
|
List.map
|
||||||
(fun (lr : L.log_record) ->
|
(fun (lr : L.log_record) ->
|
||||||
{
|
let lr = L.copy_log_record lr in
|
||||||
lr with
|
L.set_log_record_time_unix_nano lr 0L;
|
||||||
time_unix_nano = 0L;
|
L.set_log_record_observed_time_unix_nano lr 0L;
|
||||||
observed_time_unix_nano = 0L;
|
lr)
|
||||||
})
|
|
||||||
sl.log_records
|
sl.log_records
|
||||||
in
|
in
|
||||||
{ sl with log_records = masked_log_records })
|
let sl = L.copy_scope_logs sl in
|
||||||
|
L.set_scope_logs_log_records sl masked_log_records;
|
||||||
|
sl)
|
||||||
l.scope_logs
|
l.scope_logs
|
||||||
in
|
in
|
||||||
{ l with scope_logs = masked_scope_logs })
|
let l = L.copy_resource_logs l in
|
||||||
|
L.set_resource_logs_scope_logs l masked_scope_logs;
|
||||||
|
l)
|
||||||
|> List.iter (Format.printf "%a\n" L.pp_resource_logs)
|
|> List.iter (Format.printf "%a\n" L.pp_resource_logs)
|
||||||
| _ -> ())
|
| _ -> ())
|
||||||
signal_batches
|
signal_batches
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue