ocaml-opentelemetry/tests/client_e2e/test_ocurl_client_e2e.ml
Simon Cruanes 5596552379
wip: fix the e2e tests
not clear exactly why there is a discrepancy currently whenever -j is
higher than 1
2026-01-20 00:15:27 -05:00

47 lines
1 KiB
OCaml

module Client = Opentelemetry_client
module Proto = Opentelemetry.Proto
open Clients_e2e_lib
(* NOTE: This port must be different from that used by other integration tests,
to prevent socket binding clashes. *)
let port = 4359
let url = Printf.sprintf "http://localhost:%d" port
let () =
Clients_e2e_lib.run_tests ~port
[
( "emit1",
{
url;
jobs = 1;
procs = 1;
n_outer = 1;
iterations = 1;
batch_traces = 2;
batch_metrics = 2;
batch_logs = 2;
} );
( "emit1",
{
url;
jobs = 3;
procs = 1;
n_outer = 1;
iterations = 1;
batch_traces = 400;
batch_metrics = 3;
batch_logs = 400;
} );
( "emit1",
{
url;
jobs = 3;
procs = 1;
n_outer = 5;
iterations = 1;
batch_traces = 400;
batch_metrics = 3;
batch_logs = 400;
} );
]