Loading…

Sentry
Application monitoring platform for identifying, debugging, and resolving software errors and performance issues.
- 61 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
AWS Lambda tracing with the Python SDK
Version 3.0 of the Sentry Python SDK improves trace-connectedness for AWS Lambda functions by linking synchronous Invoke API calls to the initiating client trace. Before 3.0, traces were only connected for HTTP-triggered invocations where trace headers arrived in the event. The SDK picks up trace metadata from the custom client context passed to a RequestResponse Lambda invocation via boto3, with Boto3Integration handling this automatically; for non-Python callers, sentry-trace and baggage can be manually added under the custom field in the client context. Trace propagation also works across SQS queues and SNS topics by passing sentry-trace and baggage as message attributes, which links the producer’s trace to the consumer’s trace. Additionally, Amazon Bedrock Converse and ConverseStream calls are traced with rich GenAI spans that include model inputs, model outputs, and token usage among other information.
How one quadratic webhook handler pinned our autoscaler at its ceiling
Our Control RPC deployment normally runs 32 pods but scaled to 256 for hours, an 8x increase against 2x more traffic. The KEDA autoscaler’s P95 busyness target caused infinite scaling because adding pods does not reduce the busiest pod’s metric, analogous to hiring lemonade-stand helpers when any helper looks busy. Raising the target by 15 percent and switching to P75 helped only slightly; the pod count stayed near ceiling during peaks. The root cause was three bugs in the GitLab integration: a grouping error, a race condition, and an N-squared lookup loop that turned each webhook into millions of internal RPC calls across the silo boundary. After patching, the average pod count dropped from 150 to 42, a 72 percent reduction, but the autoscaler still spirals when the P75 busyness metric is restored.
More ways to debug Expo apps with the React Native SDK
The Sentry React Native SDK now includes a first-class, auto-registered Expo Router integration that replaces manual opt-in wiring, automatically reading the internal ref and retrying when init runs before the Root Layout mounts. It traces screen-focus transactions and wraps imperative navigation with Sentry.wrapExpoRouter, correlating deep links via navigation.trigger=‘deeplink’, sanitized URL, and dispatch delay, while gating user-identifying route attributes behind sendDefaultPii. Route errors caught by Expo Router’s ErrorBoundary can be captured manually with Sentry.wrapExpoRouterErrorBoundary or automatically at build time using the Babel plugin’s autoWrapExpoRouterErrorBoundary option, with deduplication on re-renders. New performance instrumentation includes Sentry.reportFullyDisplayed() to measure Time to Full Display beyond initial paint, timing spans for Expo Updates’ check and download phases, and native-fetch request tracking for Expo SDK 56+ to restore network monitoring. The SDK also provides a dedicated source map upload package and warns at Metro startup if a prebuilt native project is missing Sentry configuration.
Keeping it Bref: Sentry now supports PHP on AWS Lambda
PHP applications on AWS Lambda lose visibility when requests time out or responses exceed the 6 MB limit, because the Sentry SDK is cut off before it can report. Bref, the open-source project that runs PHP on AWS Lambda, now has an official Sentry integration called sentry/sentry-bref. The integration catches timeouts by hooking into the Bref runtime after PHP-FPM is stopped, and it reports responses too large from the same point. It also creates a transaction per invocation for non-HTTP events like SQS messages and adds cold start spans (lambda.cold-start and bref.startup) to traces. AWS SDK calls can be traced opt-in per client, and every event links to the corresponding CloudWatch log for that invocation.
Sentry’s Native SDK gets its own crash backend (and more)
Sentry is preparing the Native SDK for C and C++ for a 1.0 release after seven years of development. Version 1.0 replaces Google’s Crashpad with Sentry’s own ‘Native’ crash backend as the default on desktop platforms, using an out-of-process crash handler that speaks Sentry’s own events and delivery infrastructure. The new backend brings out-of-process crash handling to Xbox and Android, sending crash reports at crash time rather than on the next application launch. The SDK also includes performance improvements such as copy-on-write and read/write locks, making log capture from 32 threads more than 20 times faster. The 1.0 release commits to stable features after a review that reduced experimental and deprecated APIs.
Naming is hard, semantics are hard(er): Inside Sentry Conventions
Sentry’s ~100 SDKs historically sent divergent attribute names and semantics, causing users to miss data when querying across SDK versions. To solve this, Sentry created Sentry Conventions, a superset of OpenTelemetry Semantic Conventions that standardizes attribute names, types, deprecation rules, data scrubbing policies, span operations, and metric specifications. The conventions are published as NPM and PyPI packages and Rust code, and surfaced via a searchable website. SDKs use the packages to set attribute names and span ops, Relay uses them for data scrubbing and inferring span names/descriptions, and the backend uses them to coalesce deprecated and current attributes so queries return results regardless of which version an SDK sent. Over the past year, Sentry grew its conventions from roughly 300 to more than 900 attributes by backfilling existing SDK attributes and aligning on single versions.
Sentry's .NET SDK 7.0 is ready for .NET 11
Sentry’s .NET SDK 7.0 fully supports .NET 11 and introduces breaking changes that consolidate SDK initialization to prevent duplicate errors. Logging integrations no longer start the SDK; instead, developers initialize Sentry in one place with SentrySdk.Init or UseSentry(). New packages add UseSentry() for generic host apps and Sentry.Quartz for monitoring Quartz.NET jobs with cron check-ins. The release drops .NET 9 support for Android, iOS, Mac Catalyst, and MAUI Windows targets, requiring .NET 10 or later for those platforms. Requests ending in 301, 305–399, or 401–404 are no longer traced by default to reduce noise in performance data.
We have a Slopware Factory
The author describes Junior, an open-source internal robotic Slack-enabled intern that functions as a software slopware factory. Junior has more commits than any other contributor at the company. The author gives Junior a vague task to delete a Kanban board experiment via Slack, and Junior uses memory and tools to infer context, create a pull request, and post it. The author briefly reviews and approves the PR, Junior monitors CI and merges, then reports back. The total cost was $1.32 and five minutes of the author’s time. The author concludes that the state of the art is not self-improving or fully automated, but rather helps humans be more efficient at their jobs.
Monitor your CI performance using Sentry
CI pipelines like GitHub Actions can become engineering bottlenecks as build and verification times grow. Standard GitHub insights show total run times but lack per-job detail, making it hard to identify slow steps or regressions. Sentry’s distributed tracing treats a CI run like an API request, representing jobs as spans and workflows as traces. Using this approach, the Sentry team reduced a .NET job from about 1 hour 23 minutes to 24 minutes, a 71% improvement, by implementing caching and test parallelization. Custom dashboards then track p50 and p90 distributions over time, confirming a 64% overall reduction in workflow run duration.
MCP or CLI? Yes.
Sentry ships a unified experience that bridges CLI and MCP, arguing both can coexist rather than one replacing the other. The CLI handles filesystem tasks like grepping raw event logs from session replays, which MCP cannot do efficiently without server-side pre-aggregation. MCP provides native tool discovery and steering that the CLI lacks, allowing agents to discover behavior without explicit instructions. The implementation shares authentication by launching the MCP server in stdio mode with a shim that passes CLI credentials through a different token header to bypass OAuth constraints. This approach works around current MCP limitations, including inconsistent support for deferred tool calling, instructions metadata, and events across different harnesses.
How a broken release name overloaded our symbolication database
Sentry’s symbolication database had grown uncontrollably because a few releases with broken names—like the literal string VERCEL_GIT_COMMIT_SHA—accumulated tens of millions of URL index rows. A single unbounded URL lookup against the worst release took 7.4 minutes uncached and always timed out, then was retried twice, multiplying load. The fix capped a single URL lookup at scanning 1,000,000 rows, so lookups on huge releases stop early instead of running until killed and retried. CPU usage on the busiest database host dropped from 76% to 19%, and Symbolicator timeouts fell from 3,250 per hour to 80. Additional changes included splitting a heavy join, stopping date rewrites on every index row, and turning off Postgres JIT compilation.
Finding performance wins in our own traces with a coding agent
An engineer used a coding agent connected to Sentry MCP to inspect Sentry’s own traces and find backend performance problems. The agent sorted spans by execution frequency and duration, then returned candidate fixes with a file and line, estimated weekly volume, and an example trace. Django query spans included SQL as their description, while query-source attributes supplied file and line and the user_agent attribute exposed a sentry-cli set-commits workload paging through roughly 16k repositories every 40 seconds. For SQL changes, the agent ran EXPLAIN ANALYZE before and after on a read-only database mirror and compared results. Fixes included reusing a loaded project to remove an estimated 143M weekly SELECTs, rewriting a GroupHistory lookup to probe each status separately, and eager-loading Sentry app relations; the GroupHistory query fell from 935ms to 0.4ms with a warm cache.
Android profiling now uses Perfetto via ProfilingManager
Starting with Sentry Android SDK 8.51.0, continuous profiling on Android 15 and newer uses Perfetto through Android’s system ProfilingManager API, while devices below Android 15 keep the legacy Debug.startMethodTracing profiler. Existing continuous-profiling users need no configuration change; upgrading moves eligible devices to the new profiler automatically. Moving profiling outside the app process avoids crashes tied to the legacy runtime tracer, reduces CPU and memory overhead, and produces profiles less influenced by the profiler itself. A sample profile shows Gson parsing a large JSON asset for more than a second on the main thread, exposing a missing withContext(Dispatchers.IO) call. Android rate-limits profiling requests, so even a profileSessionSampleRate of 1.0 does not guarantee every session is profiled, and enableLegacyProfiling defaults to true but can be set false to avoid the legacy tracer entirely.
Measuring soft navigation web vitals
Chrome now reports web vitals for soft navigations, and Sentry’s JavaScript SDK v11 captures Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and Interaction to Next Paint (INP) for each one, enabled by default. Soft navigations are user-initiated navigations in single-page applications that change the URL and produce a visible paint, as defined by Chrome heuristics that may still evolve. Previously, web vitals only measured page loads, missing the majority of user interactions where users land on one page and navigate within the app. With soft navigations, every page users visit gets its own LCP, CLS, and INP, reported from the interaction trigger to the new route’s content. The web vitals dashboard now includes a “Measured on” filter to distinguish page loads, soft navigations, bfcache restores, and prerenders.
Five things you can do with Sentry’s Agent Tracing
Sentry’s Agent Tracing captures prompts, tool calls, and outputs in a single trace, enabling debugging of silent failures, slow steps, and context loss in multi-agent workflows. The post details five recipes: exporting production conversations into eval datasets via a CLI command that records the first user message as input and the last agent reply as output. Another recipe automates error triage by having Claude’s scheduled tasks pull stats via the MCP server and file tickets in Linear for broken tools, stuck loops, or costly runs. Additional recipes cover tracking per-call costs with the Vercel AI SDK, building dashboards and alerts for spend monitoring, and sending OpenTelemetry spans to Sentry as an extra destination without replacing existing pipelines.
How a beagle-shaped AI agent ships code to madewithvuejs.com
The project showcase madewithvuejs.com is run by two people and an AI agent named Milly, shaped like a beagle for fun. Milly performs daily content scouting for new Vue.js projects, checks Linear for assigned issues, and monitors Sentry for production bugs. She is connected to GitHub for code changes, runs test suites before deploying, and uses Sentry’s MCP for read-only access to production issues. In a real scenario, Milly fixed two bugs from a form update: one involving truncated HTML output and another where database column length was shorter than validation, catching it before the team noticed. Safeguards include process templates, hard limits on write access, and human final approval, while the low-risk content site allows a long leash for autonomy.
Should you use a log or a metric?
The post distinguishes logs and metrics by the kind of question each answers. Logs capture state at decision points for later reconstruction during debugging, while metrics represent questions chosen in advance and tracked over time via dashboards and alerts. The same event can be recorded as both a log and a metric, but metrics are a commitment to a number your team watches, making them harder to rename or drop. Shared scope attributes like user ID and signup method apply automatically to logs and metrics within a request, keeping correlated data consistent. The author advises reaching for a log when debugging something and for a metric when you want a number you will track over time, even when nothing is wrong.
We just gave a million dollars to Open Source maintainers
Sentry announced it increased its annual budget for open source maintainer support from $750,000 to $1,000,000. The company distributed $495,000 through thanks.dev to hundreds of dependency maintainers and $100,000 via ecosyste.ms Funds to globally critical packages across multiple ecosystems. To address phantom dependencies that standard scans miss, Sentry partnered with the Software Stewardship Lab to identify and pay those maintainers. Sentry also contributed over $300,000 to foundations, including $60,000 to the Python Software Foundation, $45,000 to the PHP Foundation, $40,000 to Ruby Central, $35,000 to Packagist, $30,000 to the Open Source Initiative, $10,000 to NumFOCUS, and $5,000 to Alpine Linux. The Syntax team spent $100,000 sponsoring 22 projects such as FFmpeg, Caddy, Three.js, XState, and TanStack, and Sentry founded the Open Source Pledge, whose 37 member companies have collectively paid over $7.4 million.
The Sentry Android SDK is now 20-30% faster!
The Sentry Android SDK initialization time dropped 20-30% between versions 8.43.0 and 8.54.0, measured on a Pixel 3 with locked clocks using macrobenchmark with 4 interleaved rounds of 10 runs each. Memory allocation and leaks were fixed, and background CPU time fell up to 10%. Over 40 changes drove these gains, including resolving manifest data at build time via the Gradle plugin, replacing java.net.URI with a custom DSN parser 6000x faster, and reusing thread executor pools to cut heap by 3MB. With 4.5 billion app starts per day and 50% cold starts, the 25% cold start reduction saves an average 10ms per start. The estimated daily savings amount to 6,250 hours of CPU time, equivalent to 2.3 MWh per year.
Sentry's Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates
Sentry released Flutter SDK 10.0, making streaming traces the default so spans reach Sentry as they finish, using Sentry.startSpan for custom work. Unhandled Flutter errors no longer mark the session as crashed, improving crash-free rate accuracy by keeping the session running until a real crash occurs. App startup on Android and iOS now has its own trace with breakdowns such as root-widget attachment and first-frame rasterization, and can be extended with SentryFlutter.extendAppStart. The release simplifies logs and metrics setup by removing separate enable flags, expands Dio network error capture to failures without HTTP responses, and respects Flutter’s SensitiveContent widgets in Replay and screenshots. Upgrading requires Dart 3.12, Flutter 3.44, Android API 26, and iOS 15, with native SDK installation via Swift Package Manager on iOS and macOS.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.