mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-08 12:52:12 +02:00
Replace unsafe chained-split parsing of metric labels in the
cache performance monitoring section with a reusable static
helper method .
The old code:
cache_type = metric_name.split('cache_type=')[1].split(',')[0].split('}')[0]
risked IndexError if the guard at line 477 was removed or
refactored. The new method safely returns None when the label
is not found, and correctly extracts the value up to the next
or delimiter.
Fixes #873
|
||
|---|---|---|
| .. | ||
| trustgraph | ||
| pyproject.toml | ||
| README.md | ||