mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04: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_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 *);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue