Commit graph

714 commits

Author SHA1 Message Date
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
Simon Cruanes
25afa2085c
feat batch: proper closing of wrap_emitter; default batch=100 2026-01-20 00:15:19 -05:00
Simon Cruanes
eeae5bf41c
perf batch: proper backoff strategy 2026-01-20 00:15:19 -05:00
Simon Cruanes
f55775a55c
feat: opentelemetry.domain shim 2026-01-20 00:15:19 -05:00
Simon Cruanes
abe022dbc0
feat batch: get rid of Mutex
this should result in lower overhead for single threaded situations such
as lwt or eio.
2026-01-20 00:15:19 -05:00
Simon Cruanes
3a52b1642f
fix warnings 2026-01-20 00:15:19 -05:00
Simon Cruanes
386879ba73
wip: fix tests 2026-01-20 00:15:19 -05:00
Simon Cruanes
9f5506c1ee
refactor 2026-01-20 00:15:18 -05:00
Simon Cruanes
5daef6873b
client config: improve printer 2026-01-20 00:15:18 -05:00
Simon Cruanes
b429336740
export more from opentelemetry_lwt 2026-01-20 00:15:18 -05:00
Simon Cruanes
6e3f7e5dc2
client eio: fixes 2026-01-20 00:15:18 -05:00
Simon Cruanes
d49346c82c
fix test_implicit_scope_sync 2026-01-20 00:15:18 -05:00
Simon Cruanes
27a59d96b3
fix dune files 2026-01-20 00:15:18 -05:00
Simon Cruanes
2e3120fc49
wip: fix tests 2026-01-20 00:15:18 -05:00
Simon Cruanes
c24dbebbf3
fix metrics_callbacks' API to make it easier 2026-01-20 00:15:18 -05:00
Simon Cruanes
ee40e445d1
fix notifier_sync 2026-01-20 00:15:18 -05:00
Simon Cruanes
da6ac17049
wip: fix tests 2026-01-20 00:15:18 -05:00
Simon Cruanes
1ef992c264
update opam files 2026-01-20 00:15:17 -05:00
Simon Cruanes
8de53d997b
refactor eio client 2026-01-20 00:15:17 -05:00
Simon Cruanes
6eeb0b9b08
todo 2026-01-20 00:15:17 -05:00
Simon Cruanes
e0ff144248
move Util_thread.MCond to Notifier_sync 2026-01-20 00:15:17 -05:00
Simon Cruanes
cd4eb06ca6
improve notifier_lwt 2026-01-20 00:15:17 -05:00
Simon Cruanes
f1ee6141a5
refactor ocurl, ocurl_lwt, cohttp_lwt clients to use generic consumer 2026-01-20 00:15:17 -05:00
Simon Cruanes
f1437a842f
feat client: generic consumer, notifier, etc. 2026-01-20 00:15:17 -05:00
Simon Cruanes
1a0ba5fc9e
use backoff in ocurl clients 2026-01-20 00:15:17 -05:00
Simon Cruanes
64c7125838
feat: for exponential backoff 2026-01-20 00:15:17 -05:00
Simon Cruanes
f519f2f49f
detail 2026-01-20 00:15:17 -05:00
Simon Cruanes
77321b542d
port opentelemetry_client_ocurl_lwt to the consumer framework 2026-01-20 00:15:16 -05:00
Simon Cruanes
db423c1b79
feat client-ocurl: port to just being a consumer
the rest is reusable components from opentelemetry-client
2026-01-20 00:15:16 -05:00
Simon Cruanes
05608340e5
client: lwt helpers, error helpers, thread utils, lwt notifier 2026-01-20 00:15:16 -05:00
Simon Cruanes
703755e775
client config: add http_concurrency_level option 2026-01-20 00:15:16 -05:00