ocaml-opentelemetry/src/trace
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
..
common_.ml refactor trace: adapt to newer trace 0.99 2026-01-20 00:15:31 -05:00
dune refactor trace: adapt to newer trace 0.99 2026-01-20 00:15:31 -05:00
opentelemetry_trace.ml fix: critical bugs found in code review 2026-02-08 06:16:05 +00:00
opentelemetry_trace.mli opentelemetry.trace: expose sum and hist metrics 2026-01-21 22:15:23 -05:00