mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
update test core
This commit is contained in:
parent
4066cad663
commit
2a2baeb7cd
2 changed files with 26 additions and 47 deletions
|
|
@ -1,21 +1,7 @@
|
|||
metrics size: 243B
|
||||
res1: { resource =
|
||||
Some(
|
||||
{ attributes =
|
||||
[{ key = "service.name";
|
||||
value = Some(String_value("unknown_service"));
|
||||
}
|
||||
];
|
||||
dropped_attributes_count = 0;
|
||||
});
|
||||
metrics size: 171B
|
||||
res1: { resource = None;
|
||||
scope_metrics =
|
||||
[{ scope =
|
||||
Some(
|
||||
{ name = "ocaml-otel";
|
||||
version = "%%VERSION_NUM%%";
|
||||
attributes = [];
|
||||
dropped_attributes_count = 0;
|
||||
});
|
||||
[{ scope = None;
|
||||
metrics =
|
||||
[{ name = "sum.foo";
|
||||
description = "";
|
||||
|
|
@ -72,23 +58,9 @@ res1: { resource =
|
|||
];
|
||||
schema_url = "";
|
||||
}
|
||||
res1: { resource =
|
||||
Some(
|
||||
{ attributes =
|
||||
[{ key = "service.name";
|
||||
value = Some(String_value("unknown_service"));
|
||||
}
|
||||
];
|
||||
dropped_attributes_count = 0;
|
||||
});
|
||||
res1: { resource = None;
|
||||
scope_metrics =
|
||||
[{ scope =
|
||||
Some(
|
||||
{ name = "ocaml-otel";
|
||||
version = "%%VERSION_NUM%%";
|
||||
attributes = [];
|
||||
dropped_attributes_count = 0;
|
||||
});
|
||||
[{ scope = None;
|
||||
metrics =
|
||||
[{ name = "sum.foo";
|
||||
description = "";
|
||||
|
|
|
|||
|
|
@ -2,8 +2,12 @@
|
|||
|
||||
open Opentelemetry
|
||||
|
||||
let res1 =
|
||||
Metrics.make_resource_metrics
|
||||
let res1 : Proto.Metrics.resource_metrics =
|
||||
Proto.Metrics.make_resource_metrics ~schema_url:""
|
||||
~scope_metrics:
|
||||
[
|
||||
Proto.Metrics.make_scope_metrics ~schema_url:""
|
||||
~metrics:
|
||||
[
|
||||
Metrics.sum ~name:"sum.foo"
|
||||
[
|
||||
|
|
@ -16,6 +20,9 @@ let res1 =
|
|||
Metrics.float ~start_time_unix_nano:52L ~now:55L 20.;
|
||||
];
|
||||
]
|
||||
();
|
||||
]
|
||||
()
|
||||
|
||||
let str =
|
||||
let enc = Pbrt.Encoder.create () in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue