ocaml-opentelemetry/tests/implicit_scope/sync/dune
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

9 lines
176 B
Text

(tests
(names test_implicit_scope_sync)
(package opentelemetry-client-cohttp-lwt)
(libraries
threads
alcotest
opentelemetry
unix
opentelemetry-client-cohttp-lwt))