update core test

This commit is contained in:
Simon Cruanes 2025-10-30 22:22:02 -04:00
parent 6f75e90ee2
commit 81b6a81b0e
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 97 additions and 93 deletions

View file

@ -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 =
Some(
Sum(
{ data_points =
[{ attributes = [];
start_time_unix_nano = 42;
time_unix_nano = 45;
value = As_int(10);
value = Some(As_int(10));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
};
{ attributes = [];
start_time_unix_nano = 52;
time_unix_nano = 55;
value = As_int(20);
value = Some(As_int(20));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
}
];
aggregation_temporality =
Aggregation_temporality_cumulative;
is_monotonic = false;
});
is_monotonic = false;(* absent *)
}));
};
{ name = "gauge.bar";
description = "";
unit_ = "";
description = "";(* absent *)
unit_ = "";(* absent *)
data =
Some(
Gauge(
{ data_points =
[{ attributes = [];
start_time_unix_nano = 42;
time_unix_nano = 45;
value = As_double(10.);
value = Some(As_double(10.));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
};
{ attributes = [];
start_time_unix_nano = 52;
time_unix_nano = 55;
value = As_double(20.);
value = Some(As_double(20.));
exemplars = [];
flags = 0;
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 =
Some(
Sum(
{ data_points =
[{ attributes = [];
start_time_unix_nano = 42;
time_unix_nano = 45;
value = As_int(10);
value = Some(As_int(10));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
};
{ attributes = [];
start_time_unix_nano = 52;
time_unix_nano = 55;
value = As_int(20);
value = Some(As_int(20));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
}
];
aggregation_temporality =
Aggregation_temporality_cumulative;
is_monotonic = false;
});
is_monotonic = false;(* absent *)
}));
};
{ name = "gauge.bar";
description = "";
unit_ = "";
description = "";(* absent *)
unit_ = "";(* absent *)
data =
Some(
Gauge(
{ data_points =
[{ attributes = [];
start_time_unix_nano = 42;
time_unix_nano = 45;
value = As_double(10.);
value = Some(As_double(10.));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
};
{ attributes = [];
start_time_unix_nano = 52;
time_unix_nano = 55;
value = As_double(20.);
value = Some(As_double(20.));
exemplars = [];
flags = 0;
flags = 0;(* absent *)
}
];
});
}));
}
];
schema_url = "";
schema_url = "";(* absent *)
}
];
schema_url = "";
schema_url = "";(* absent *)
}

View file

@ -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"