Add synchronous span helper
SU
11d ago+106+106+012345678901234567890123456789-1-1-0123456789
Summary
- add a synchronous
withSyncSpanhelper alongsidewithSpan - export it from the package entrypoint
- cover synchronous callback execution, options, return values, and span completion
Verification
npm run typechecknpx vitest run --pool=threads --poolOptions.threads.singleThread=truenpm run build
Summary by cubic
Adds a withSyncSpan helper that wraps synchronous callbacks in spans, matching the existing async withSpan behavior. The helper is exported from the package entrypoint, records errors on thrown callbacks, and throws a TypeError if the callback returns a Promise to steer callers toward withSpan. Covered by tests for callback execution, options, return values, error recording, and span completion.