mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
update core test
This commit is contained in:
parent
6f75e90ee2
commit
81b6a81b0e
2 changed files with 97 additions and 93 deletions
|
|
@ -1,119 +1,123 @@
|
|||
metrics size: 171B
|
||||
metrics size: 149B
|
||||
res1: { resource = None;
|
||||
scope_metrics =
|
||||
[{ scope = None;
|
||||
metrics =
|
||||
[{ name = "sum.foo";
|
||||
description = "";
|
||||
unit_ = "";
|
||||
description = "";(* absent *)
|
||||
unit_ = "";(* absent *)
|
||||
data =
|
||||
Sum(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = As_int(10);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = As_int(20);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
}
|
||||
];
|
||||
aggregation_temporality =
|
||||
Aggregation_temporality_cumulative;
|
||||
is_monotonic = false;
|
||||
});
|
||||
Some(
|
||||
Sum(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = Some(As_int(10));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = Some(As_int(20));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
}
|
||||
];
|
||||
aggregation_temporality =
|
||||
Aggregation_temporality_cumulative;
|
||||
is_monotonic = false;(* absent *)
|
||||
}));
|
||||
};
|
||||
{ name = "gauge.bar";
|
||||
description = "";
|
||||
unit_ = "";
|
||||
description = "";(* absent *)
|
||||
unit_ = "";(* absent *)
|
||||
data =
|
||||
Gauge(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = As_double(10.);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = As_double(20.);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
}
|
||||
];
|
||||
});
|
||||
Some(
|
||||
Gauge(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = Some(As_double(10.));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = Some(As_double(20.));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
}
|
||||
];
|
||||
}));
|
||||
}
|
||||
];
|
||||
schema_url = "";
|
||||
schema_url = "";(* absent *)
|
||||
}
|
||||
];
|
||||
schema_url = "";
|
||||
schema_url = "";(* absent *)
|
||||
}
|
||||
res1: { resource = None;
|
||||
scope_metrics =
|
||||
[{ scope = None;
|
||||
metrics =
|
||||
[{ name = "sum.foo";
|
||||
description = "";
|
||||
unit_ = "";
|
||||
description = "";(* absent *)
|
||||
unit_ = "";(* absent *)
|
||||
data =
|
||||
Sum(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = As_int(10);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = As_int(20);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
}
|
||||
];
|
||||
aggregation_temporality =
|
||||
Aggregation_temporality_cumulative;
|
||||
is_monotonic = false;
|
||||
});
|
||||
Some(
|
||||
Sum(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = Some(As_int(10));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = Some(As_int(20));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
}
|
||||
];
|
||||
aggregation_temporality =
|
||||
Aggregation_temporality_cumulative;
|
||||
is_monotonic = false;(* absent *)
|
||||
}));
|
||||
};
|
||||
{ name = "gauge.bar";
|
||||
description = "";
|
||||
unit_ = "";
|
||||
description = "";(* absent *)
|
||||
unit_ = "";(* absent *)
|
||||
data =
|
||||
Gauge(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = As_double(10.);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = As_double(20.);
|
||||
exemplars = [];
|
||||
flags = 0;
|
||||
}
|
||||
];
|
||||
});
|
||||
Some(
|
||||
Gauge(
|
||||
{ data_points =
|
||||
[{ attributes = [];
|
||||
start_time_unix_nano = 42;
|
||||
time_unix_nano = 45;
|
||||
value = Some(As_double(10.));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
};
|
||||
{ attributes = [];
|
||||
start_time_unix_nano = 52;
|
||||
time_unix_nano = 55;
|
||||
value = Some(As_double(20.));
|
||||
exemplars = [];
|
||||
flags = 0;(* absent *)
|
||||
}
|
||||
];
|
||||
}));
|
||||
}
|
||||
];
|
||||
schema_url = "";
|
||||
schema_url = "";(* absent *)
|
||||
}
|
||||
];
|
||||
schema_url = "";
|
||||
schema_url = "";(* absent *)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
open Opentelemetry
|
||||
|
||||
let res1 : Proto.Metrics.resource_metrics =
|
||||
Proto.Metrics.make_resource_metrics ~schema_url:""
|
||||
Proto.Metrics.make_resource_metrics
|
||||
~scope_metrics:
|
||||
[
|
||||
Proto.Metrics.make_scope_metrics ~schema_url:""
|
||||
Proto.Metrics.make_scope_metrics
|
||||
~metrics:
|
||||
[
|
||||
Metrics.sum ~name:"sum.foo"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue