Skip to content

Add memory-limit/usage-percentage read-write leaf example - #20

Merged
noha merged 1 commit into
mainfrom
add-read-write-leaf-leitbeispiel
Jul 22, 2026
Merged

Add memory-limit/usage-percentage read-write leaf example#20
noha merged 1 commit into
mainfrom
add-read-write-leaf-leitbeispiel

Conversation

@noha

@noha noha commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Demonstrates the roadmap's guiding example for the Accessor/Metric unification (PR #19): a configured memory limit (write direction, Canopy -> component, via the #accessor pragma) and a live "currently used" value (read direction, component -> Canopy, via #metric) coexist on the same object, built in a single pragma-reflection pass. A derived usage percentage combining both is exported through CanopyPrometheusVisitor exactly like any other metric.

Demonstrates the roadmap's guiding example for the Accessor/Metric
unification (PR #19): a configured memory limit (write direction, Canopy
-> component, via the #accessor pragma) and a live "currently used"
value (read direction, component -> Canopy, via #metric) coexist on the
same object, built in a single pragma-reflection pass. A derived usage
percentage combining both is exported through CanopyPrometheusVisitor
exactly like any other metric.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@noha
noha merged commit 5fe7bc7 into main Jul 22, 2026
4 checks passed
@noha
noha deleted the add-read-write-leaf-leitbeispiel branch July 22, 2026 21:11
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.

1 participant