Major new features in this release:
New Features:
- Complete resource URI parameter extraction implementation
* Extract params from templates: "user://{id}" + "user://123" → %{"id" => "123"}
* Multiple parameter support: "user://{id}/posts/{post_id}"
* Proper regex escaping and pattern matching
* Full test coverage with 11 new tests
* Resolves long-standing TODO in codebase
- Optional PromEx plugin for Prometheus monitoring
* 10 production-ready metrics (counters + histograms)
* Monitors: requests, tools, resources, prompts, authentication
* Optimized histogram buckets per operation type
* Low cardinality design with string normalization
* PromQL query examples and alert templates
* Conditional compilation (zero impact if not used)
* 12 comprehensive tests
Test Coverage:
- 33 new tests added across the board
- Resource tests: 11 new (URI extraction, actual URIs, edge cases)
- Prompt tests: 4 new (message formatting, optional args)
- Tool tests: 6 new (enum validation, defaults, handlers)
- PromEx tests: 12 new (structure, metrics, config)
- Total: 229 tests, all passing (up from 196)
Documentation:
- Added comprehensive Prometheus Metrics section to README
- 190+ lines of PromEx plugin documentation
- PromQL query cookbook with 4 example queries
- Alert rule templates for production monitoring
- Complete metric reference with tags and descriptions
Bug Fixes:
- Fixed version consistency across all files
- Removed crash dump and package artifacts (5+ MB cleanup)
- Updated test badge to reflect actual count
Backward Compatibility:
- Fully backward compatible
- No breaking changes
- All existing functionality preserved
- Optional features don't affect existing users
Dependencies:
- Added prom_ex ~> 1.11 as optional dependency
- No impact unless explicitly installed by users
Migration:
No migration needed - drop-in replacement for 0.4.x versions.
Simply update your dependency version to ~> 0.5.0