histogram: A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side. A histogram metric sorts measurements into buckets, such as requests that took under 100 milliseconds, under 300, under a second, and so on. From those buckets, a monitoring system can calculate percentiles like p95 and p99.
Averages hide problems. If most requests take 50 milliseconds but one in twenty takes four seconds, the average still looks fine. The p95 shows the slow experience real users have.
What should you keep in mind with histogram?
Choose bucket boundaries around the values that matter, such as your target response time. Too few buckets make percentiles inaccurate; too many increase storage. In Prometheus, histogram_quantile(0.95, rate(http_duration_seconds_bucket[5m])) gives the 95th percentile. It is the right way to measure latency for dashboards and alerts.
Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for PHP applications. Supports plain PHP, Laravel, and Symfony.
Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.
Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting. Use when establishing reliability targets, implementing SRE practices, or measuring service performance.