---
title: "Application Metrics caught my broken size estimator"
description: "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."
url: "https://swe.quest/articles/application-metrics-caught-my-broken-size-estimator-b4c941e581ff6e70"
canonical: "https://blog.sentry.io/metrics-caught-ai-size-estimate/"
source: "Sentry"
published: "2026-09-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["observability","video-media","ai-coding","frontend"]
---

# Application Metrics caught my broken size estimator

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-09-01, 14 min read, Case study. Original: [https://blog.sentry.io/metrics-caught-ai-size-estimate/](https://blog.sentry.io/metrics-caught-ai-size-estimate/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- video bitrate and encoding basics ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- application telemetry concepts

## Keywords

Sentry, Application Metrics, Cliparr, MediaBunny, WebCodecs, PWA

## Related posts

- [Level Up With Derived Columns: Understanding Screen Size (With Basic Arithmetic)](https://swe.quest/articles/level-up-with-derived-columns-understanding-screen-size-with-basic-arithmetic-32df35ce080844c4.md): Honeycomb · 2018-07-05 · Medium · 4 min read · Observability, Frontend
  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.
- [Steganography at scale: Embedding share URLs in Datadog widget screenshots](https://swe.quest/articles/steganography-at-scale-embedding-share-urls-in-datadog-widget-screenshots-c180eafbb38c64ee.md): Datadog Engineering · 2026-04-21 · Medium · 20 min read · Frontend, Caching, Observability, Algorithms
  Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID.
- [Measuring the back/forward cache with Application Metrics](https://swe.quest/articles/measuring-the-back-forward-cache-with-application-metrics-3b96d5be7b308071.md): Sentry · 2026-09-24 · Medium · 5 min read · Web performance, Browsers, Observability, JavaScript
  Sentry's new opt-in bfcacheMetricsIntegration (JavaScript SDK v11) turns the browser's back/forward cache decisions into application metrics, closing a blind spot where cache hits leave no page-load telemetry.
- [Reducing Android scope-sync overhead in Sentry Flutter](https://swe.quest/articles/reducing-android-scope-sync-overhead-in-sentry-flutter-318db2622363a7d1.md): Sentry · 2026-10-08 · Medium · 4 min read · Performance engineering, Mobile, Concurrency
  Sentry's Flutter SDK cut Android scope-update processing time by 27–30% by removing duplicate normalization and encoding JSON directly to UTF-8 bytes.
- [Shifting Metrics Right](https://swe.quest/articles/shifting-metrics-right-9cd4911993cdce0d.md): Honeycomb · 2026-03-17 · Medium · 6 min read · Observability
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
