Commit graph

54 commits

Author SHA1 Message Date
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
c29ac75a82
opentelemetry.trace: expose sum and hist metrics 2026-01-21 22:15:23 -05:00
Simon Cruanes
4183254546
update trace, fix opentelemetry.trace 2026-01-21 22:00:08 -05:00
Simon Cruanes
0c119c3eff
details 2026-01-20 00:15:31 -05:00
Simon Cruanes
26e70ed1af
refactor trace: adapt to newer trace 0.99
no more global state 🥳
2026-01-20 00:15:31 -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
ec584b4829
update otel trace 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
a954deb46d
refactor opentelemetry.trace to cleanly separate trace spans from OTEL spans
- trace spans: counter based, local, meant to be handles
- OTEL spans: 8B random blobs, meant to be used in a distributed context
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
0d34f9de4d
feat trace: move to regular Otrace.span for extensions 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
5804cd299b
feat trace: make it compile again, no TLS, no magic strings, pass exporter 2026-01-20 00:15:14 -05:00
Simon Cruanes
0671d767d9
wip: trace 2026-01-20 00:15:12 -05:00
Simon Cruanes
b91139509b
WIP trace (hiiii) 2026-01-20 00:15:12 -05:00
Simon Cruanes
2170c16e7f
wip: trace 2026-01-20 00:15:11 -05:00
Simon Cruanes
f349c31368
update opentelemetry_trace just a bit 2026-01-20 00:15:10 -05:00
Simon Cruanes
a35ea4c646
fixes 2025-12-01 20:32:03 -05:00
Simon Cruanes
51af3a4105
format 2025-05-05 14:41:20 -04:00
Simon Cruanes
9b5f3cd0c3
feat: adapt to trace 0.10 2025-04-17 10:04:16 -04:00
Simon Cruanes
21de8b1f4b
forgot to update tags 2025-03-19 09:06:57 -04:00
Simon Cruanes
3f41c7e450 feat otel.trace: extension points for links, record_exn, kind 2025-01-14 09:32:11 -05:00
Simon Cruanes
fdee7fe2dd
fix otel.trace: set scope for explicit spans 2024-10-25 10:44:32 -04:00
Corentin Leruth
6a1f1eb06b move span status to item_list 2024-10-18 11:22:43 +02:00
Simon Cruanes
041d05eb9f fix otel.trace: record exception in with_span
close #71
2024-10-17 11:06:34 -04:00
Corentin Leruth
ac1a27eb89 reduce memory usage of Scope.t 2024-10-10 21:22:16 +02:00
Corentin Leruth
41f1f43470 add Scope.make 2024-10-07 16:37:01 +02:00
Corentin Leruth
b3747cfc8e add links to scope 2024-10-07 15:07:05 +02:00
Simon Cruanes
420ad5484e
feat otel.trace: use "otel.error" to influence a span status 2024-09-30 14:14:41 -04:00
Simon Cruanes
461811a2cb
feat trace: set status of a span based on exception.message 2024-09-30 12:40:17 -04:00
Simon Cruanes
60a0b843e6
feat: update and fix opentelemetry.trace 2024-09-30 12:34:16 -04:00
ajbt200128
242d304639 Add events to spans created 2024-09-20 08:24:11 -04:00
Simon Cruanes
7d50a0bb53
require trace 0.7 2024-03-21 17:30:45 -04:00
Simon Cruanes
14b9f440d1 make otel-trace a bit more lightweight 2024-03-07 11:43:12 -05:00
Simon Cruanes
6ff9dc2480
hide internals from doc 2024-02-29 15:34:29 -05:00
Simon Cruanes
97daf5b402
compat with trace 0.6 2024-02-09 14:45:50 -05:00
Elliott Cable
6362bc55ef trace-collector: Use Trace_core instead of Trace for OCaml v5 2023-10-02 17:59:28 +00:00
Elliott Cable
76c18c55c2 trace-collector: Pass user-data to OTel metrics 2023-09-20 15:14:10 +00:00
Elliott Cable
1809075095 trace-collector: Support for floats, etc from trace 2023-09-20 02:30:53 +00:00
Elliott Cable
057a27abe9 (- fix) Use new TLS-module naming from ac.0.1.0 2023-09-20 02:13:15 +00:00
Elliott Cable
f9ea704399 docs: Add a note about well-known-id stability 2023-08-30 02:30:14 +00:00
Elliott Cable
9ecd73cb26 trace-collector: Add static names for well-known strings 2023-08-30 02:28:34 +00:00
Elliott Cable
a890876946 Document otrace.spankind identifier 2023-08-30 02:20:38 +00:00
Elliott Cable
925c962945 trace-collector: Documentation 2023-08-30 01:50:04 +00:00
Elliott Cable
2b3e3d733c trace-collector: Expose Internal module 2023-08-30 01:21:30 +00:00
Elliott Cable
1822c1acaa trace-collector: Support manual spans 2023-08-29 00:11:48 +00:00
Elliott Cable
de35c80799 trace-collector: Match new Trace API 2023-08-03 20:29:35 +00:00
Elliott Cable
9e65566d88 trace-collector: Use OTel semconv for __FUNCTION__ etc 2023-08-03 20:16:34 +00:00
Elliott Cable
1a1c360f4c store: Rename 'surrounding' scope to 'ambient' 2023-08-02 00:19:24 +00:00
Elliott Cable
a64565f104 store: Extract thread_local, abstract for lwt/eio 2023-08-01 21:03:58 +00:00