Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Honeycomb 4 min read How-to mediumAdept

Level Up With Derived Columns: Understanding Screen Size (With Basic Arithmetic)

Honeycomb's derived columns can compute values at query time instead of sending redundant fields from instrumentation, for example multiplying window height and width into a pixel area with MUL. Dividing window area by screen area with DIV gives a screen_used ratio. Heatmaps of that ratio show most users already fill nearly all of their screen, with almost nothing above 0.95, which suggests browser chrome takes about 5% and argues against enlarging the UI. Other uses include normalizing seconds to milliseconds and SUMming page-load phase timings, which keeps instrumentation DRY.

Assumes: event-based instrumentationbrowser window APIs

Related posts

  • Application Metrics caught my broken size estimator

    Sentry mediumAdept

    Instrumenting Cliparr Convert, an in-browser video converter built on MediaBunny/WebCodecs, with Sentry Application Metrics exposed an AI-written size estimator that scaled source size by resolution and produced files up to 83% larger than predicted. Replacing it with a plain bitrate × duration formula brought most transcodes within about 5%. Recording the actual/estimated size ratio as a distribution tagged by estimator basis, format and quality also showed that copy mode over-estimates by about 16% and GIFs by about 9%. Counters cover the conversion and PWA install funnels, and metrics are preferred over traces or logs because they are unsampled and explicitly mark a KPI.

  • How we built the Datadog heatmap to visualize distributions over time at arbitrary scale

    Datadog Engineering mediumAdept

    Datadog's heatmap visualizes DDSketch-backed distribution metrics over time, revealing multimodal behavior (such as pulsing benchmark traffic or health-check modes) that percentile lines hide. The frontend receives a constant-size payload of float32 bin counts with shared, explicitly stored bucket boundaries. Time buckets must align to the data's reporting interval to avoid aliasing. Because counts often follow power-law distributions, the color scale is a heuristic blend of linear and histogram-equalized (percentile) interpolation, so both a dominant narrow mode and faint secondary modes stay visible. Rendering switches to per-pixel canvas ImageData instead of per-bin fillRect above roughly 4 raw pixels per bin, and a coarser, size-relative grid drives mouse interactions and tooltips.

  • Shifting Metrics Right

    Honeycomb mediumAdept

    Instead of pre-aggregating metrics inside applications, generate them as late as responsibly possible in the telemetry pipeline, either in the OpenTelemetry Collector or in the backend from traces and logs. The argument separates measurements (questions you want answered) from metrics (a pre-aggregated storage type). It claims the accuracy loss from sampling is negligible: one customer's sampled, trace-derived metrics were within 0.001% of their pre-aggregated data at a fraction of the cost. In-app aggregation buffers data for 10 to 60 seconds and can silently lose datapoints on a crash. A signaltometrics connector config shows how to derive HTTP semantic-convention exponential histograms from spans using AdjustedCount to account for sampling.

  • Faster root cause for slow traces with ClickStack Event Deltas

    ClickHouse mediumAdept

    ClickStack's Event Deltas compare a user-selected region of slow spans on a duration-over-time heatmap against the remaining inlier spans, issuing two queries and sampling both sets to surface attribute values disproportionately present in the outliers. In the OpenTelemetry demo this pinpoints Visa card type as correlated with slow payment spans. It works best on a single service, with a clean separation between fast and slow spans and enough samples in both groups. A recent update allows custom y-axis expressions, such as casting db.response_time_ms to UInt64, and aggregate color-intensity metrics, which isolated slow getPackageRanking queries in ClickPy.

  • What's new in ClickStack - March 2026

    ClickHouse mediumAdept

    ClickStack's March 2026 update reworks Event Deltas for root-cause analysis. Attribute distributions now show without a selection, attributes are ranked by proportional rather than raw-count deltas so unequal group sizes don't skew results, and heatmap sampling uses ORDER BY cityHash64(SpanId) instead of rand() so it is repeatable. Raw SQL charts now cover all visualisation types, with Grafana-style macros ($__timeFilter, $__timeInterval, $__filters, $__sourceTable) that inherit dashboard time ranges and filters and survive import/export. Sample-aware aggregations driven by a per-span sampleRateExpression rewrite count, avg, sum and percentiles into weighted forms such as quantileTDigestWeighted. The release also adds AI Notebooks in private preview, dashboard listing pages and a template gallery.

The quest for software engineering knowledge.

Look:
Layout: