Commit graph

844 commits

Author SHA1 Message Date
Simon Cruanes
b4c8803931
fix tests after renaming Http_config 2026-01-20 00:15:24 -05:00
Simon Cruanes
03c687b8b3
chore: update makefile to add doc targets 2026-01-20 00:15:24 -05:00
Simon Cruanes
09e4620603
rename Client_config to Http_config
more accurate, really.
2026-01-20 00:15:24 -05:00
Simon Cruanes
dfb0befab0
perf: little optim in opentelemetry_trace 2026-01-20 00:15:24 -05:00
Simon Cruanes
26bc862940
change default batch size for metrics 2026-01-20 00:15:24 -05:00
Simon Cruanes
9e1165918a
compat with older OCaml 2026-01-20 00:15:24 -05:00
Simon Cruanes
0d34f9de4d
feat trace: move to regular Otrace.span for extensions 2026-01-20 00:15:23 -05:00
Simon Cruanes
fe8316d1e8
add picos backend to ambient-context 2026-01-20 00:15:23 -05:00
Simon Cruanes
30175db1ed
feat trace: add set_span_status 2026-01-20 00:15:23 -05:00
Simon Cruanes
a2a7a6cf1e
re-export in dune 2026-01-20 00:15:23 -05:00
Simon Cruanes
18226a63a4
add Span.dummy 2026-01-20 00:15:23 -05:00
Simon Cruanes
30baf3491c
use an interval limiter for the metrics_callbacks 2026-01-20 00:15:23 -05:00
Simon Cruanes
b55598685f
add after_shutdown to ocurl-lwt client 2026-01-20 00:15:23 -05:00
Simon Cruanes
a6bf8171bb
better semantic conventions for self tracing; bounded_queue.high_watermark 2026-01-20 00:15:23 -05:00
Simon Cruanes
ed69b89bf1
more self tracing 2026-01-20 00:15:23 -05:00
Simon Cruanes
212ff39d0b
doc 2026-01-20 00:15:23 -05:00
Simon Cruanes
4e0d59d3f4
add basic test file for ocurl-lwt 2026-01-20 00:15:22 -05:00
Simon Cruanes
e3c4b6fa3a
rename self-tracing metrics 2026-01-20 00:15:22 -05:00
Simon Cruanes
650f4c554f
fix warnings 2026-01-20 00:15:22 -05:00
Simon Cruanes
41e650d461
perf batch: try to improve hotpath
in particular, no need to look at the clock when checking if the batch
is full
2026-01-20 00:15:22 -05:00
Simon Cruanes
370c2a78d0
move Util_mutex to client 2026-01-20 00:15:22 -05:00
Simon Cruanes
a0738e59c2
fix warning 2026-01-20 00:15:22 -05:00
Simon Cruanes
dd29cddb21
detail 2026-01-20 00:15:22 -05:00
Simon Cruanes
fda87007a8
generic consumer: sanity check on queue size 2026-01-20 00:15:22 -05:00
Simon Cruanes
4a61ab44d9
metrics: do not add a default start_time_unix_nano 2026-01-20 00:15:22 -05:00
Simon Cruanes
3eba3df59d
fix emit1: count alloc spans properly; self tracing 2026-01-20 00:15:22 -05:00
Simon Cruanes
bfde7700e8
ocurl: add an ?after_shutdown callback 2026-01-20 00:15:21 -05:00
Simon Cruanes
239d9d5aec
feat exporter: add self_metrics 2026-01-20 00:15:21 -05:00
Simon Cruanes
2d8939ab0a
fix batch: make sure high_watermark>=batch, also put a max on batch size 2026-01-20 00:15:21 -05:00
Simon Cruanes
6c832df3a6
test binary 2026-01-20 00:15:21 -05:00
Simon Cruanes
0986c2aade
emit1: no syscall for sleep=0 2026-01-20 00:15:21 -05:00
Simon Cruanes
03f5741629
emit1: more options 2026-01-20 00:15:21 -05:00
Simon Cruanes
631f7cd01a
refactor, remove debug print 2026-01-20 00:15:21 -05:00
Simon Cruanes
374a67c97a
fix bounded queue: try_pop should drain a closed queue 2026-01-20 00:15:21 -05:00
Simon Cruanes
0eb27174f0
fix batch: default high watermark was wrong 2026-01-20 00:15:21 -05:00
Simon Cruanes
173131ce84
warnings 2026-01-20 00:15:21 -05:00
Simon Cruanes
6151fe0769
basic emit1_stdout test exe 2026-01-20 00:15:20 -05:00
Simon Cruanes
83ba6d2e11
chore: remove dep on saturn 2026-01-20 00:15:20 -05:00
Simon Cruanes
b044203b79
update HTTP clients 2026-01-20 00:15:20 -05:00
Simon Cruanes
d7da4c4443
feat client: overhaul of bounded queue; generic_consumer 2026-01-20 00:15:20 -05:00
Simon Cruanes
6436f0e36d
utils in Any_signal_l 2026-01-20 00:15:20 -05:00
Simon Cruanes
e3c6c41a0d
wip: bugfixing 2026-01-20 00:15:20 -05:00
Simon Cruanes
87ccde2783
stray debug msg 2026-01-20 00:15:20 -05:00
Simon Cruanes
2a3295a9af
update emitter tests 2026-01-20 00:15:20 -05:00
Simon Cruanes
0bf561b586
update client libraries, remove stop:bool atomic in favor of switches 2026-01-20 00:15:20 -05:00
Simon Cruanes
15268270df
client: start heavily refactoring to use Aswitch, also fix bugs 2026-01-20 00:15:20 -05:00
Simon Cruanes
3026ad41ad
use Aswitch in main library 2026-01-20 00:15:19 -05:00
Simon Cruanes
18b653a896
add Any_signal_l; modify Exporter to use Aswitch 2026-01-20 00:15:19 -05:00
Simon Cruanes
ee91fa4a45
feat util: add Aswitch and Util_atomic
for shutdown processes, it's really preferable to use level-triggered
primitives rather than edge-triggered callbacks. Switch is fairly
robust. It's named Aswitch here, "A" means atomic and is also used to
avoid name collision with Eio.

Util_atomic provides a convenience CAS loop, with backoff.
2026-01-20 00:15:19 -05:00
Simon Cruanes
61f17fa6ce
better exporter/emitter combinators; better cleanup (now shutdown) 2026-01-20 00:15:19 -05:00