fix: Fix metric name sanitization, optimize transient queries, add domain binding (v0.5.1)
All checks were successful
Create Release Package / test (push) Successful in 43s
Create Release Package / build-release (push) Successful in 49s

- Add sanitize_metric_name() to preserve colons/uppercase in Prometheus names
- Combine 3 transient COUNT queries into single aggregated query
- Deduplicate inline HPOS check using existing is_hpos_enabled() method
- Add license domain binding for authorized deployment domains

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 17:20:09 +01:00
parent 9a94b4a7a5
commit 52fd6da1d1
5 changed files with 88 additions and 25 deletions

View File

@@ -3,7 +3,7 @@
* Plugin Name: WP Prometheus
* Plugin URI: https://src.bundespruefstelle.ch/magdev/wp-prometheus
* Description: Prometheus metrics endpoint for WordPress with extensible hooks for custom metrics.
* Version: 0.5.0
* Version: 0.5.1
* Requires at least: 6.4
* Requires PHP: 8.3
* Author: Marco Graetsch
@@ -199,7 +199,7 @@ wp_prometheus_early_metrics_check();
*
* @var string
*/
define( 'WP_PROMETHEUS_VERSION', '0.5.0' );
define( 'WP_PROMETHEUS_VERSION', '0.5.1' );
/**
* Plugin file path.