mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05: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;
|
res1: { resource = None;
|
||||||
scope_metrics =
|
scope_metrics =
|
||||||
[{ scope = None;
|
[{ scope = None;
|
||||||
metrics =
|
metrics =
|
||||||
[{ name = "sum.foo";
|
[{ name = "sum.foo";
|
||||||
description = "";
|
description = "";(* absent *)
|
||||||
unit_ = "";
|
unit_ = "";(* absent *)
|
||||||
data =
|
data =
|
||||||
Sum(
|
Some(
|
||||||
{ data_points =
|
Sum(
|
||||||
[{ attributes = [];
|
{ data_points =
|
||||||
start_time_unix_nano = 42;
|
[{ attributes = [];
|
||||||
time_unix_nano = 45;
|
start_time_unix_nano = 42;
|
||||||
value = As_int(10);
|
time_unix_nano = 45;
|
||||||
exemplars = [];
|
value = Some(As_int(10));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
};
|
flags = 0;(* absent *)
|
||||||
{ attributes = [];
|
};
|
||||||
start_time_unix_nano = 52;
|
{ attributes = [];
|
||||||
time_unix_nano = 55;
|
start_time_unix_nano = 52;
|
||||||
value = As_int(20);
|
time_unix_nano = 55;
|
||||||
exemplars = [];
|
value = Some(As_int(20));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
}
|
flags = 0;(* absent *)
|
||||||
];
|
}
|
||||||
aggregation_temporality =
|
];
|
||||||
Aggregation_temporality_cumulative;
|
aggregation_temporality =
|
||||||
is_monotonic = false;
|
Aggregation_temporality_cumulative;
|
||||||
});
|
is_monotonic = false;(* absent *)
|
||||||
|
}));
|
||||||
};
|
};
|
||||||
{ name = "gauge.bar";
|
{ name = "gauge.bar";
|
||||||
description = "";
|
description = "";(* absent *)
|
||||||
unit_ = "";
|
unit_ = "";(* absent *)
|
||||||
data =
|
data =
|
||||||
Gauge(
|
Some(
|
||||||
{ data_points =
|
Gauge(
|
||||||
[{ attributes = [];
|
{ data_points =
|
||||||
start_time_unix_nano = 42;
|
[{ attributes = [];
|
||||||
time_unix_nano = 45;
|
start_time_unix_nano = 42;
|
||||||
value = As_double(10.);
|
time_unix_nano = 45;
|
||||||
exemplars = [];
|
value = Some(As_double(10.));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
};
|
flags = 0;(* absent *)
|
||||||
{ attributes = [];
|
};
|
||||||
start_time_unix_nano = 52;
|
{ attributes = [];
|
||||||
time_unix_nano = 55;
|
start_time_unix_nano = 52;
|
||||||
value = As_double(20.);
|
time_unix_nano = 55;
|
||||||
exemplars = [];
|
value = Some(As_double(20.));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
}
|
flags = 0;(* absent *)
|
||||||
];
|
}
|
||||||
});
|
];
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
schema_url = "";
|
schema_url = "";(* absent *)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
schema_url = "";
|
schema_url = "";(* absent *)
|
||||||
}
|
}
|
||||||
res1: { resource = None;
|
res1: { resource = None;
|
||||||
scope_metrics =
|
scope_metrics =
|
||||||
[{ scope = None;
|
[{ scope = None;
|
||||||
metrics =
|
metrics =
|
||||||
[{ name = "sum.foo";
|
[{ name = "sum.foo";
|
||||||
description = "";
|
description = "";(* absent *)
|
||||||
unit_ = "";
|
unit_ = "";(* absent *)
|
||||||
data =
|
data =
|
||||||
Sum(
|
Some(
|
||||||
{ data_points =
|
Sum(
|
||||||
[{ attributes = [];
|
{ data_points =
|
||||||
start_time_unix_nano = 42;
|
[{ attributes = [];
|
||||||
time_unix_nano = 45;
|
start_time_unix_nano = 42;
|
||||||
value = As_int(10);
|
time_unix_nano = 45;
|
||||||
exemplars = [];
|
value = Some(As_int(10));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
};
|
flags = 0;(* absent *)
|
||||||
{ attributes = [];
|
};
|
||||||
start_time_unix_nano = 52;
|
{ attributes = [];
|
||||||
time_unix_nano = 55;
|
start_time_unix_nano = 52;
|
||||||
value = As_int(20);
|
time_unix_nano = 55;
|
||||||
exemplars = [];
|
value = Some(As_int(20));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
}
|
flags = 0;(* absent *)
|
||||||
];
|
}
|
||||||
aggregation_temporality =
|
];
|
||||||
Aggregation_temporality_cumulative;
|
aggregation_temporality =
|
||||||
is_monotonic = false;
|
Aggregation_temporality_cumulative;
|
||||||
});
|
is_monotonic = false;(* absent *)
|
||||||
|
}));
|
||||||
};
|
};
|
||||||
{ name = "gauge.bar";
|
{ name = "gauge.bar";
|
||||||
description = "";
|
description = "";(* absent *)
|
||||||
unit_ = "";
|
unit_ = "";(* absent *)
|
||||||
data =
|
data =
|
||||||
Gauge(
|
Some(
|
||||||
{ data_points =
|
Gauge(
|
||||||
[{ attributes = [];
|
{ data_points =
|
||||||
start_time_unix_nano = 42;
|
[{ attributes = [];
|
||||||
time_unix_nano = 45;
|
start_time_unix_nano = 42;
|
||||||
value = As_double(10.);
|
time_unix_nano = 45;
|
||||||
exemplars = [];
|
value = Some(As_double(10.));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
};
|
flags = 0;(* absent *)
|
||||||
{ attributes = [];
|
};
|
||||||
start_time_unix_nano = 52;
|
{ attributes = [];
|
||||||
time_unix_nano = 55;
|
start_time_unix_nano = 52;
|
||||||
value = As_double(20.);
|
time_unix_nano = 55;
|
||||||
exemplars = [];
|
value = Some(As_double(20.));
|
||||||
flags = 0;
|
exemplars = [];
|
||||||
}
|
flags = 0;(* absent *)
|
||||||
];
|
}
|
||||||
});
|
];
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
schema_url = "";
|
schema_url = "";(* absent *)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
schema_url = "";
|
schema_url = "";(* absent *)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
open Opentelemetry
|
open Opentelemetry
|
||||||
|
|
||||||
let res1 : Proto.Metrics.resource_metrics =
|
let res1 : Proto.Metrics.resource_metrics =
|
||||||
Proto.Metrics.make_resource_metrics ~schema_url:""
|
Proto.Metrics.make_resource_metrics
|
||||||
~scope_metrics:
|
~scope_metrics:
|
||||||
[
|
[
|
||||||
Proto.Metrics.make_scope_metrics ~schema_url:""
|
Proto.Metrics.make_scope_metrics
|
||||||
~metrics:
|
~metrics:
|
||||||
[
|
[
|
||||||
Metrics.sum ~name:"sum.foo"
|
Metrics.sum ~name:"sum.foo"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue