Skip to content

docs(adapters): fix stale CLAUDE.md details in kdb, otlp, prometheus#405

Open
0-jake-0 wants to merge 1 commit into
mainfrom
claude/adapter-compliance-doc-drift
Open

docs(adapters): fix stale CLAUDE.md details in kdb, otlp, prometheus#405
0-jake-0 wants to merge 1 commit into
mainfrom
claude/adapter-compliance-doc-drift

Conversation

@0-jake-0

@0-jake-0 0-jake-0 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Part 4 of 4 from the adapter compliance review — low-severity doc drift where CLAUDE.md comments describe behavior the code no longer matches.

  • kdbkdb_read_cached takes a cache_config: CacheConfig (folder + LRU size cap), not a cache_dir: impl Into<PathBuf>, and the cache does evict (LRU by max_size_bytes) rather than "persist until manually deleted — no TTL, no eviction". Updated the API description and the example snippet (now passes CacheConfig::new(...)). The mod.rs docs and example READMEs already described this correctly — only the adapter CLAUDE.md was stale.

  • otlp — the integration-test collector image is pinned to 0.149.0 (integration_tests.rs:26, mod.rs:9), not the 0.116.0 the Gotchas section claimed.

  • prometheus — the per-metric slot is Arc<ArcSwapOption<String>> (exporter.rs), not Arc<ArcSwap<String>>; noted the None never-ticked sentinel that's skipped on scrape.

Docs only — no code or behavior change. Verified no other occurrences of the stale strings remain in each adapter directory.

https://claude.ai/code/session_01JLqvwSW8V4xPpvxV1vwXuX


Generated by Claude Code

Doc drift caught in the adapter compliance review — comments describing
behavior the code no longer matches:

- kdb: kdb_read_cached takes a `cache_config: CacheConfig` (folder + LRU size
  cap), not a `cache_dir: impl Into<PathBuf>`, and the cache *does* evict
  (LRU by max_size_bytes) rather than "persist until manually deleted — no
  TTL, no eviction". Update the description and the example snippet.

- otlp: the integration-test collector image is pinned to 0.149.0, not the
  0.116.0 the Gotchas section claimed.

- prometheus: the per-metric slot is `Arc<ArcSwapOption<String>>`, not
  `Arc<ArcSwap<String>>` — note the None never-ticked sentinel.

Docs only; no code or behavior change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants