Simon Cruanes
1ebd474423
fix: critical bugs found in code review
...
Bug #1 : Fix worker count logic in generic_consumer
- Was: min 2 (max 500 n_workers) - always created 2 workers
- Now: max 2 (min 500 n_workers) - properly clamps between 2-500
- Impact: Worker configuration was completely ignored
Bug #2 : Handle missing dot in __FUNCTION__ name
- Added exception handling for String.rindex in trace span creation
- Prevents crash when tracing top-level or non-module functions
- Uses option type for module_path when no dot is present
- Scoped try/catch to only parsing logic
2026-02-08 06:16:05 +00:00
Simon Cruanes
0c119c3eff
details
2026-01-20 00:15:31 -05:00
Simon Cruanes
0099bc5439
compat 4.08
2026-01-20 00:15:31 -05:00
Simon Cruanes
ce33809446
ocurl lwt test
2026-01-20 00:15:29 -05:00
Simon Cruanes
7b5b451b2c
finally redact these logs
2026-01-20 00:15:29 -05:00
Simon Cruanes
b1589ccf76
stupid fix
2026-01-20 00:15:28 -05:00
Simon Cruanes
979a3ab3c8
test: redact current ocaml version from signal-gatherer output
...
this should make expect tests more robust.
2026-01-20 00:15:28 -05:00
Simon Cruanes
5622d81ae7
test: change port for test_logs_e2e
...
otherwise sometimes it clashes with the ocurl client test
2026-01-20 00:15:28 -05:00
Simon Cruanes
d9362ae788
feat: add runtime/otel-specific name and version modifiable
...
this way we can mock them in tests, but we can also change the name
"ocaml-otel" to something else, e.g. if we have specific conventions.
2026-01-20 00:15:28 -05:00
Simon Cruanes
6ddfe1715a
more e2e tests, including cohttp_lwt
2026-01-20 00:15:27 -05:00
Simon Cruanes
d3559015df
emit1_cohttp: more options, more debug
2026-01-20 00:15:27 -05:00
Simon Cruanes
f8269ed1c8
the test library was wrong!!!
...
turns out, find_map is the wrong operation when resources object
actually contain more than one item.
2026-01-20 00:15:27 -05:00
Simon Cruanes
95e8c78ff8
merge any_signal/signal into resource_signal, dedup
...
we had duplication there! my bad.
2026-01-20 00:15:27 -05:00
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
Simon Cruanes
c9f5a27b22
test binaries: updates
2026-01-20 00:15:26 -05:00
Simon Cruanes
1853fa7585
fix some tests
2026-01-20 00:15:26 -05:00
Simon Cruanes
bef4bd88b2
use Clock.ptime_clock where it makes sense
2026-01-20 00:15:25 -05:00
Simon Cruanes
e2c4a4e680
tracer/logger/metrics_emitter now pair emitter and clock
...
- clock is needed because timestamps need to be provided now
- explicit types are good anyway
- have at least one helper to emit the signal with optional
tracer/logger/metrics_emitter
- easier logger with `log` and `logf`
2026-01-20 00:15:25 -05:00
Simon Cruanes
061d2adc68
more dune files
2026-01-20 00:15:25 -05:00
Simon Cruanes
57a915e880
chore: update dune files after implicit_trans_deps=false
2026-01-20 00:15:25 -05:00
Simon Cruanes
b4c8803931
fix tests after renaming Http_config
2026-01-20 00:15:24 -05:00
Simon Cruanes
b55598685f
add after_shutdown to ocurl-lwt client
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
dd29cddb21
detail
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
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
6151fe0769
basic emit1_stdout test exe
2026-01-20 00:15:20 -05:00
Simon Cruanes
2a3295a9af
update emitter tests
2026-01-20 00:15:20 -05:00
Simon Cruanes
386879ba73
wip: fix tests
2026-01-20 00:15:19 -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
da6ac17049
wip: fix tests
2026-01-20 00:15:18 -05:00
Simon Cruanes
4b91971b51
more test output
2025-12-01 20:32:05 -05:00
Simon Cruanes
7839ba97e6
test
2025-12-01 20:32:05 -05:00
Simon Cruanes
d2478f1f82
update test output
2025-12-01 20:32:05 -05:00
Simon Cruanes
5dcf26b142
update generated tests
2025-12-01 20:32:04 -05:00
Simon Cruanes
49ca5bee2b
test
2025-12-01 20:32:04 -05:00
Simon Cruanes
5ef84a46c4
update test output
2025-12-01 20:32:04 -05:00
Simon Cruanes
81b6a81b0e
update core test
2025-12-01 20:32:04 -05:00
Simon Cruanes
6f75e90ee2
fix test
2025-12-01 20:32:03 -05:00
Simon Cruanes
c27cb13d4b
fix test
2025-12-01 20:32:03 -05:00
Simon Cruanes
f000c11406
update the emit test so it records how many bytes were emitted
2025-12-01 20:32:03 -05:00
Simon Cruanes
2a2baeb7cd
update test core
2025-12-01 20:29:54 -05:00
Simon Cruanes
4066cad663
test: improve t_size
2025-12-01 20:29:54 -05:00
Simon Cruanes
6e8877f177
test: reference test for encoding size
2025-12-01 20:29:53 -05:00
Simon Cruanes
a3b4852b89
Merge pull request #111 from tatchi/tatchi/ocurl-lwt
...
add opentelemetry-client-ocurl-lwt
2025-12-01 17:33:54 -05:00
Corentin Leruth
42e41675b5
fmt
2025-11-08 12:43:21 +01:00