feat(router): entity cache OTEL/Prometheus metrics (4/6)#2956
Conversation
Extracted from jensneuse/entity-caching-v2 (PR #2777) — metrics layer, stacked on the router PR. - router/pkg/metric/entity_cache_metrics: cache hit/miss/latency instruments recorded from the per-request cache analytics snapshot - otel attributes for cache level/source/name/entity type (shared constants so recording sites can't drift) - entity_caching_stats opt-in config keys for both Prometheus and OTLP (yaml + env, schema, defaults), opt-in per PR #2777 review #21 - graph server wiring: metric setup/shutdown, handler snapshot recording; cache analytics collection enables only when metrics are configured Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Router-nonroot image scan failed❌ Security vulnerabilities found in image: Please check the security vulnerabilities found in the PR. If you believe this is a false positive, please add the vulnerability to the |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## milinda/entity-caching-2-router #2956 +/- ##
===================================================================
- Coverage 57.70% 57.31% -0.39%
===================================================================
Files 245 246 +1
Lines 27734 27922 +188
===================================================================
Hits 16003 16003
- Misses 10150 10336 +186
- Partials 1581 1583 +2
🚀 New features to boost your workflow:
|
Part 4 of 6 — split out from #2777. Stacked on #2945.
What's included
entity_caching_statsopt-in config keys for Prometheus and OTLP (yaml + env vars, schema, defaults) — opt-in per feat(router): entity caching with L1/L2, shadow mode, and analytics #2777 review fix: use empty url to use the same url as the playground #21The tree at this PR's tip is byte-identical to the pre-split router branch — the split is purely for reviewability.
🤖 Generated with Claude Code