Commit graph

748 commits

Author SHA1 Message Date
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
Simon Cruanes
53335468d9
feat client: add Exporter_add_batching 2026-01-20 00:15:16 -05:00
Simon Cruanes
bff2c4bcce
refactor consumer 2026-01-20 00:15:16 -05:00
Simon Cruanes
72851b8e34
custom queue in Bounded_queue_sync, remove bespoke stuff from Sync_queue 2026-01-20 00:15:16 -05:00
Simon Cruanes
2f5646ab4f
config fix 2026-01-20 00:15:16 -05:00
Simon Cruanes
6ce1ebf9c7
wip: exporter_queued, a queue + a consumer 2026-01-20 00:15:16 -05:00
Simon Cruanes
60d355ea23
carry service_name and attrs when building resources objects 2026-01-20 00:15:15 -05:00
Simon Cruanes
79b75cd79b
remove unused argument for Logger 2026-01-20 00:15:15 -05:00
Simon Cruanes
dbc4c0b133
doc 2026-01-20 00:15:15 -05:00
Simon Cruanes
30d6749815
warning 2026-01-20 00:15:15 -05:00
Simon Cruanes
53cb32308a
feat client: add bounded queue interface and sync-queue based implem 2026-01-20 00:15:15 -05:00
Simon Cruanes
d1a451550b
add client.Any_resource 2026-01-20 00:15:15 -05:00
Simon Cruanes
4fc76ae3e4
rename 2026-01-20 00:15:15 -05:00
Simon Cruanes
0323c9204f
sync_queue: more operations, including a batch push 2026-01-20 00:15:15 -05:00
Simon Cruanes
a98a1aeb3f
feat emitter: add flat_map 2026-01-20 00:15:15 -05:00
Simon Cruanes
8640db6a8c
doc 2026-01-20 00:15:15 -05:00
Simon Cruanes
4f218b31ef
mor efixes 2026-01-20 00:15:14 -05:00