Simon Cruanes
e3da59dd97
per signal provider, update to trace 0.12
2026-02-27 14:56:21 -05:00
Simon Cruanes
806545f2ba
format
2026-02-21 22:37:10 -05:00
Simon Cruanes
210b7991c9
rework tracer/meter/logger interfaces
...
- Meter is new, and makes more sense than
Metrics_callbacks/Metrics_emitter
- Instrument in core, with some basic counters, gauges, and histograms,
+ the possibility to do one's own
2026-02-20 12:31:15 -05:00
Simon Cruanes
07070e3d4a
emitter: add self_metrics, track batch n_dropped, sampler rate
2026-02-17 20:59:58 -05:00
Simon Cruanes
71bb7d1996
various fixes
2026-02-17 20:59:58 -05:00
Simon Cruanes
a44c50581b
Support http/json protocol, carry protocol to HTTP emitter
...
- Regenerate proto bindings with yojson support
- Add JSON encoding path in Resource_signal.Encode
- Pass protocol from config to generic_http_consumer
- Set Content-Type/Accept headers based on protocol
- Remove hardcoded protobuf headers from all HTTP client implementations
- Add yojson dependency
2026-02-15 15:35:15 -05:00
Simon Cruanes
ccd4c43a93
fix test
2026-02-12 21:27:05 -05:00
Simon Cruanes
103886ec83
remove obsolete test
2026-02-12 21:23:22 -05:00
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