Skip to content

docs: OTLP recipes, search snippet fix, JSDoc, repo root cleanup - #98

Merged
webcoderspeed merged 9 commits into
mainfrom
docs/cleanup-and-jsdoc
Oct 30, 2026
Merged

webcoderspeed merged 9 commits into
mainfrom
docs/cleanup-and-jsdoc

Conversation

@webcoderspeed

Copy link
Copy Markdown
Contributor

Summary

Docs and cleanup: OTLP recipes, a corrected README search snippet, JSDoc, a repo-root cleanup, and the leftovers from #86.

Closes #24, closes #25, closes #26, closes #36. Refs #86.

Changes

CodeQL alerts to dismiss after merge

Test plan

  • Build, typecheck, lint, format check and the full jest suite pass.
  • npm pack --dry-run looks right.
  • The OTLP transport was checked against a local HTTP receiver.

… add OTLP recipes

Adds OtlpLogTransport, toOtelSeverity and OtlpLogTransportConfig to the
logixia/transports entry, and docs/otlp-recipes.md with Grafana Loki,
Grafana Cloud, Axiom, Better Stack and local Collector configs, with the
URLs and headers taken from vendor docs (linked per section). Linked from
the README OTLP section.

Closes #24
…r API

Uses logixia/search, maxIndexSize, indexLogs, the (query, filters, options)
search signature, naturalLanguageSearch and correlateByTraceId. The snippet
is also examples/search-readme.ts; it was run with ts-node and against dist.

Closes #25
Comment-only change: class overview with example, logging methods, timers,
level/context/field management, transport levels, child, flush, healthCheck,
close and createLogger (including how custom levels become methods).

Closes #26
Removed (nothing referenced them in package.json, workflows, configs, docs
site or README links):
- IMPLEMENTATION_SUMMARY.md: one-off search implementation note, only
  referenced by the SEARCH_* docs it described
- git-commands.sh: personal staging script naming files that do not exist
- test/analyze.test.ts: copy of src/cli/__tests__/analyze.test.ts that never
  runs (jest roots is src)

Moved into docs/ with internal links fixed: SEARCH_DOCUMENTATION.md,
SEARCH_FEATURE.md, SEARCH_QUICK_REFERENCE.md, CUSTOMIZATION.md.

Kept: test/fixtures/shutdown-app.ts (used by shutdown.process.test.ts) and
todo/, todos/, research/ (left for the maintainer to decide).

Closes #36
uuid is no longer imported anywhere in src, tests, examples or benchmarks
(@types/uuid was already gone).

Refs #86
…interceptors

The WebSocket and Kafka trace interceptors declared config as a constructor
parameter property and then reassigned it, so the parameter write was dead
(CodeQL js/useless-assignment-to-property). Declare it as a field instead;
behaviour is unchanged.

Refs #86
@webcoderspeed webcoderspeed added the documentation Improvements or additions to documentation label Oct 30, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • package-lock.json

setLevel() wrote the cached threshold directly, so a later cache rebuild
(enableField, setNamespaceLevels, patchNamespaceLevels) recomputed it from
the ENV or namespace level and silently reverted the override while
getLevel() still reported the new level. The override is now stored and
resolveEffectiveLevel() honours it first, ahead of LOGIXIA_LEVEL_<NS>,
namespaceLevels and LOGIXIA_LEVEL. Adds a regression test.

Also corrects the JSDoc added earlier: createLogger example uses levels that
actually log, and logLevel, getLevel, setLevel and close describe the real
behaviour (close points to the gracefulShutdown option).
…do entry

- docs/index.html: replace the non-existent LogSearcher snippet with the
  SearchManager API from logixia/search
- src/search.ts: module JSDoc uses indexLogs and the (query, filters,
  options) search signature
- package.json: add dev:search-readme for examples/search-readme.ts
- todo/03-testing.md: remove the deleted test/analyze.test.ts row
@webcoderspeed
webcoderspeed merged commit f932b98 into main Oct 30, 2026
14 checks passed
@webcoderspeed
webcoderspeed deleted the docs/cleanup-and-jsdoc branch October 30, 2026 07:42
@github-actions

Copy link
Copy Markdown

🎉 This issue has been resolved in version 2.0.1.
Install it: npm install logixia@2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation released@

Projects

None yet

1 participant