<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sentry Blog</title><description>Product, Engineering, and Marketing updates from the developers of Sentry.</description><link>https://blog.sentry.io/</link><language>en-us</language><item><title>We have a Slopware Factory</title><link>https://blog.sentry.io/slopware-factory/</link><guid isPermaLink="true">https://blog.sentry.io/slopware-factory/</guid><description>What a state of the art software factory looks like this week: Junior, our Slack intern, turns a one-line ask into a merged PR for $1.32.</description><pubDate>Thu, 12 Nov 2026 16:30:00 GMT</pubDate><content:encoded>&lt;p&gt;I write a lot about &lt;a href=&quot;https://junior.sentry.dev&quot;&gt;Junior&lt;/a&gt; - our (open-source) internal robotic Slack-enabled intern. I will also tell you that it&amp;#39;s as much of a &lt;del&gt;Software&lt;/del&gt; Slopware Factory as anything is. Its name is on more commits than any other single contributor at the company. It&amp;#39;s definitionally a state of the art software factory, but I bet it doesn&amp;#39;t behave like you think.&lt;/p&gt;
&lt;h2&gt;What even is a Software Factory?&lt;/h2&gt;
&lt;p&gt;It depends on who you&amp;#39;re talking to, and if the conversation is today, last week, or next week. I can tell you what it means today - what it means to have a state of the art &lt;em&gt;factory&lt;/em&gt;. I find it easiest to reason about a real-world workflow.&lt;/p&gt;
&lt;p&gt;My world revolves around Slack&lt;/p&gt;
&lt;p&gt;Most of my conversations with Junior are pretty simplistic like the above (which is a real conversation from a few hours ago). I give it a pretty straightforward task, without much detail, and I expect it to fill in the remainder. Sometimes it does it well, sometimes it produces utter garbage. It&amp;#39;s kind of odd given it&amp;#39;s a factory, you&amp;#39;d expect the production lines to have some consistency, but they do not.&lt;/p&gt;
&lt;p&gt;In this case the ask is pretty straightforward. I have an experiment, in Junior, for a kanban board visual of work. It turned out to be junk, so I&amp;#39;m deleting it. You&amp;#39;ll note I gave it no context - no repository, no details on where it&amp;#39;s at or what it encompasses. Its job is to figure it out. It&amp;#39;s my &lt;em&gt;intern&lt;/em&gt;. I give it an assignment, and I expect it to come back to me if there was something it couldn&amp;#39;t resolve on its own.&lt;/p&gt;
&lt;p&gt;A lot of times it will figure this out via memory, and if that fails, it will do it through a variety of tools at its disposal. I frankly don&amp;#39;t care how it fills in the blanks, as long as it does it efficiently and correctly (although efficiency here leaves a lot to be desired). In this case, it searched some past conversations to fill in the context, as we can see in the web UI for the transcript:&lt;/p&gt;
&lt;p&gt;We landed this feature a few days back, it figures that out, and it realizes I simply want the experiment removed from the codebase. So it does the work, and comes back to Slack with a Pull Request ready to burn my eyes with:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/getsentry/junior/pull/3200&quot;&gt;The Pull Request&lt;/a&gt; in this case is good. It&amp;#39;s got a simple clear description, the code changes look correct (or at least they have convinced me as much - I obviously don&amp;#39;t know as I didn&amp;#39;t write the code).&lt;/p&gt;
&lt;p&gt;I give it a quick glance on the code changes - seems to reflect the PR description. Low risk, I don&amp;#39;t spend a lot of brain power on it. I&amp;#39;m sure it fucked something up I&amp;#39;ll figure out later, but in this case it probably just failed to find every last reference to the Kanban experiment. Maybe I&amp;#39;ll be pleasantly surprised, either way, Schrödinger&amp;#39;s Cat. I click Approve, satisfying my requirements for this service of &lt;em&gt;self-review or peer-review&lt;/em&gt; (which is minimally allowed at Sentry). Might as well let it auto merge while I&amp;#39;m here - CI will probably flush out any bugs. I&amp;#39;m sure the agent didn&amp;#39;t delete any of my regression tests. It would never do that.&lt;/p&gt;
&lt;p&gt;It proceeds to decide I need to be updated in Slack, so it updates me, and a few minutes later it merges it.&lt;/p&gt;
&lt;p&gt;If there were any failures in the CI, I was not made aware of them, as Junior automatically determined if it should address them, as well as any PR feedback I might have left - of which, I left none, because I barely looked at the code.&lt;/p&gt;
&lt;p&gt;After a combined total of $1.32, and five minutes of my time, the Kanban board is gone.&lt;/p&gt;
&lt;p&gt;That is a software factory - at least as of this week. It enabled me to take an intention, whether I had clarity or not, and act on it with minimal effort. Its main benefit was taking away some of the tedium of doing this. I didn&amp;#39;t open Claude Code, I didn&amp;#39;t have to instruct it to monitor CI, I didn&amp;#39;t have to &lt;em&gt;think&lt;/em&gt;. In this case that was fine, but they&amp;#39;re not all like this, and this is the state of the art (at least for a company with real-world customers and liabilities).&lt;/p&gt;
&lt;p&gt;If you made it this far, you&amp;#39;re probably wondering why you found no insights. Why were there no crazy next generation automations? Why was the system not building itself?! Because that is all a myth. Our system has memory - that doesn&amp;#39;t make it self-improving. Our system can act on your requests - that doesn&amp;#39;t make it automated. Our system is here to help you be more efficient at your job, to help you take an idea and execute on it. That is the state of the art.&lt;/p&gt;
&lt;p&gt;It will not replace us, it will simply allow us to be more productive.&lt;/p&gt;
</content:encoded></item><item><title>MCP or CLI? Yes.</title><link>https://blog.sentry.io/mcp-or-cli/</link><guid isPermaLink="true">https://blog.sentry.io/mcp-or-cli/</guid><description>Sentry now bridges its CLI and MCP server: shared auth, CLI-only capabilities like a filesystem, and native MCP steering. Here&apos;s why you want both.</description><pubDate>Tue, 10 Nov 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Let&amp;#39;s stop debating it and just lean in: you can have both.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;curl https://cli.sentry.dev/install -fsS | bash

sentry auth login

claude mcp add sentry -- sentry mcp
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Sentry is now shipping a unified experience that bridges the gap, and we think it&amp;#39;s the right solution &lt;em&gt;right now&lt;/em&gt; for agents with access to sandboxes.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re probably immediately asking why? Probably because you think CLI is superior (it&amp;#39;s not btw).&lt;/p&gt;
&lt;p&gt;There are a few key reasons which I&amp;#39;ll dive into, but in a nutshell:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Shared authentication and controlling the flow are valuable in some scenarios (but it has limitations!)&lt;/li&gt;
&lt;li&gt;The CLI can do things MCP can&amp;#39;t, and MCP is still the superior agentic tooling.&lt;/li&gt;
&lt;li&gt;MCP implementations still widely differ, and I don&amp;#39;t see its capabilities being able to fully replace CLI.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I&amp;#39;ll try to cover a bit in depth on each, with our thinking behind it, and how the implementation works under the hood.&lt;/p&gt;
&lt;h2&gt;Shared authentication&lt;/h2&gt;
&lt;p&gt;This one&amp;#39;s mostly straightforward, and it&amp;#39;s arguably the main value we&amp;#39;re bringing with this bridge.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sentry mcp
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Behind the scenes this is effectively just launching the MCP server in stdio mode. The primary difference is it adds a shim to share the credentials used by CLI. In our case we already did this behind the scenes, but it was implicit, whereas now it&amp;#39;s explicit.&lt;/p&gt;
&lt;p&gt;This means that you can easily authenticate via the standard CLI methods (generally a device code flow) and it&amp;#39;ll pass that through.&lt;/p&gt;
&lt;p&gt;Behind the scenes the way we do this, because it needs to bypass CIMD/DCR, is we have a different token header. Sentry is set up so that the MCP server is an entirely different service that proxies our OAuth provider (layers on its own functionality, adds CIMD/DCR). That means if you send a bearer token to it, it&amp;#39;s going to assume it&amp;#39;s following those constraints. Instead, we allow you to specify an alternative token type which completely bypasses the auth (&lt;code&gt;Sentry-Bearer&lt;/code&gt; vs &lt;code&gt;Bearer&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Pretty straightforward, but the biggest advantage here is that any of the historical authentication bugs in MCP are no longer present, because we control the authentication flow.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It&amp;#39;s not the perfect solution.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;One of the great advantages MCP brings is consolidated authentication, which means you can do things like layer in &lt;a href=&quot;https://modelcontextprotocol.io/extensions/auth/enterprise-managed-authorization&quot;&gt;organization-wide authentication&lt;/a&gt;. It also generally makes it so upstream clients can implement native handling of tokens (think storage), as well as the authentication flows. In practice a lot of those flows are still pretty sloppy, but without that consolidation you end up with what we&amp;#39;ve done here: one-offs.&lt;/p&gt;
&lt;p&gt;For something like Sentry that might be ok - you use it daily, it&amp;#39;s probably one of the more high-engagement developer tools in that lifecycle - but I don&amp;#39;t think this is the long-term solution to the problem.&lt;/p&gt;
&lt;h2&gt;Differing capabilities&lt;/h2&gt;
&lt;p&gt;Under the hood our CLI and MCP server share a lot, but they also offer different raw capabilities and one cannot replace the other. I&amp;#39;ll give you two examples.&lt;/p&gt;
&lt;p&gt;First, the CLI has a filesystem. That is extremely powerful in some domains like ours. For example, say you want to ask some questions about session replays (which are a large number of events that happen in a sequence). We could expose some search endpoints on the server, but you&amp;#39;re not going to be able to inject reasoning into them. What would be better is if you had access to the raw event log, some context so the agent knows how to address them, and then could token-efficiently fetch the data as you need it. Grabbing chunks of events at a time, grepping through them, paginating.&lt;/p&gt;
&lt;p&gt;That cannot be done with MCP, unless you (very inefficiently) were to try to implement those same behaviors on the server. It&amp;#39;s just not worth it, which is why everyone leans on pre-aggregation, search APIs, etc. The future is more sandboxes, less limited APIs.&lt;/p&gt;
&lt;p&gt;On the other hand, the agent does not even know the CLI exists by default. The advantage of the MCP is it&amp;#39;s native. It has native steering, native tool call capabilities. The agent discovers behavior without you telling it to, without you telling it how. It discovers how to use the behavior natively. To make the CLI work you need to tell it that it exists, it then needs to look up how to use the CLI, what commands are available. Just like our authentication limitations, it&amp;#39;s the same here. You&amp;#39;re trading off a known quantity behavior for a one-off custom behavior every time.&lt;/p&gt;
&lt;p&gt;One of the interesting things I think you can do is combine both capabilities. We know when we launch the MCP server from the CLI, which means the MCP server can change its behavior. It can inject steering to make it known how to use the CLI. For example, maybe there&amp;#39;s a tool call that is &lt;code&gt;get_session_replay&lt;/code&gt;. The response of that tool call can now tell you to use the CLI to fetch additional details and how to do it efficiently.&lt;/p&gt;
&lt;p&gt;We haven&amp;#39;t implemented this transport-specific steering yet, but it&amp;#39;s definitely top of mind for us as we work to maximize the effectiveness of the headless tooling.&lt;/p&gt;
&lt;h2&gt;MCP inconsistencies&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve implemented any aspect of MCP, you&amp;#39;ve likely experienced both the sheer complexity and breadth of the spec, as well as the fact that even the major harnesses implement things quite differently. One of the most important and still common differences is tool search. A lot of major harnesses now do deferred tool calling - that is they don&amp;#39;t load all of the tools up front. That&amp;#39;s important to know because that means you can optimize differently - you can load a lot more tools, you might change steering patterns. But wait, what about search? How does each harness implement search? What about the clients who don&amp;#39;t implement deferred tool calling and search?&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the most in-your-face inconsistency, and it&amp;#39;s slowly improving, but a large majority of the MCP spec is effectively unadopted. Some of it&amp;#39;s now deprecated, some of it certainly will be deprecated in the future, but it leaves you in a pickle if you want to consider any behavior beyond tool calling itself.&lt;/p&gt;
&lt;p&gt;One extremely relevant example is the &lt;code&gt;instructions&lt;/code&gt; metadata. This is a newer addition (afaik) which allows you to give some baseline steering to the model for your MCP server. This is &lt;strong&gt;unbelievably important&lt;/strong&gt;, but it&amp;#39;s not uniformly supported across even frontier harnesses.&lt;/p&gt;
&lt;p&gt;Another recent example is MCP Events. These seem like a great idea, but they&amp;#39;re largely not usable today. Either they&amp;#39;re not implemented or they&amp;#39;re implemented in such a domain-specific way that it&amp;#39;s hard for you - the author of an MCP server - to rely on them for any customer-facing behavior.&lt;/p&gt;
&lt;p&gt;MCP ultimately has this complex identity crisis which I believe triggers a lot of this: the frontier harnesses expect you to use MCP to integrate into their ecosystem (to build on top of their harness) in a very specific way, and that specific way might not be how users want it to behave (organically) or how vendors want it to integrate. A great piece of research here if you&amp;#39;re not familiar: look into how Claude Desktop works, or how T3 Code works. They&amp;#39;re effectively, largely, just MCP servers and they&amp;#39;re building on top of a frontier harness.&lt;/p&gt;
&lt;h2&gt;Time will tell&lt;/h2&gt;
&lt;p&gt;This is a new experiment for us, but like all past experiments it&amp;#39;s built to work around &lt;em&gt;the limitations of today&lt;/em&gt;. Those limitations often disappear or change within months, which means you&amp;#39;re going to always be adapting. That&amp;#39;s the requirement of doing business in the agentic era.&lt;/p&gt;
&lt;p&gt;If you do end up trying out the new flow, we&amp;#39;d love to hear your feedback. We&amp;#39;re working on shifting onboarding to suggest a CLI-based approach (vs a plugin-based approach) right now, as we think this is the least compromise and most user-friendly experience we can deliver.&lt;/p&gt;
</content:encoded></item><item><title>Monitor your CI performance using Sentry</title><link>https://blog.sentry.io/monitor-ci-performance-sentry/</link><guid isPermaLink="true">https://blog.sentry.io/monitor-ci-performance-sentry/</guid><description>We turned GitHub Actions workflows into Sentry traces to find slow CI steps and cut run time. Here&apos;s how to set it up for your own workflows.</description><pubDate>Tue, 10 Nov 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We use GitHub workflows to make sure our products match our expected quality standards, and by using &lt;a href=&quot;https://docs.sentry.io/concepts/key-terms/tracing/#whats-tracing&quot;&gt;Sentry Tracing&lt;/a&gt; we improved CI run time by 71%. Here&amp;#39;s how you can too:&lt;/p&gt;
&lt;h2&gt;Your workflows are slowing you down&lt;/h2&gt;
&lt;p&gt;Writing code and delivering new features is now faster than ever, especially when agents do the work. On the other hand, the build and verification processes become the new bottlenecks of engineering.&lt;/p&gt;
&lt;p&gt;While the exact setup varies for each developer and project, a standard setup is automated testing in Continuous Integration (CI) pipelines, such as GitHub Actions. With the demand for quality assurance increasing, and feedback cycles taking longer because of slow or failed CI checks, the speed of delivering features slows down.&lt;/p&gt;
&lt;p&gt;So you start to investigate what exactly is slowing you down.&lt;/p&gt;
&lt;p&gt;GitHub provides insights into how long your jobs and workflows take in total, but it only surfaces combined run information at any given time, or a sum of all your run minutes. While this is helpful, it does not tell the full story when e.g. the same job takes 9 minutes on one run and 15 minutes on another. Besides that, you also have to actively monitor your run times to make sure they are stable (no flaky tests), and do not increase constantly until all your efforts are wasted.&lt;/p&gt;
&lt;p&gt;So (if you have the bandwidth) you start to compare multiple runs, structure the data, extract trends manually, and see yourself become a data scientist instead of just delivering the features you initially wanted to.&lt;/p&gt;
&lt;p&gt;Sentry&amp;#39;s distributed tracing can do that work for us: it treats a CI run like any other API request.&lt;/p&gt;
&lt;h2&gt;Investigating CI using Sentry Tracing&lt;/h2&gt;
&lt;p&gt;Each workflow consists of multiple jobs, with each job being a series of sequential steps, each with a different time duration. Using the model behind tracing, these steps can be represented as spans, with full workflows being shown as entire traces, leveraging many features of Sentry such as &lt;a href=&quot;https://docs.sentry.io/product/explore/&quot;&gt;Explore&lt;/a&gt; and &lt;a href=&quot;https://docs.sentry.io/product/dashboards/custom-dashboards/&quot;&gt;custom dashboards&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The following screenshot is an example trace of the &lt;code&gt;.NET (macos)&lt;/code&gt; job in the build workflow of the &lt;a href=&quot;https://github.com/getsentry/sentry-dotnet&quot;&gt;Sentry .NET SDK&lt;/a&gt;. By opening it up in the trace explorer we can see that the step &lt;code&gt;Build&lt;/code&gt; is the longest contributor with ~44 min of the overall ~1 h 23 min.&lt;/p&gt;
&lt;p&gt;While the actual efforts that can improve workflow duration depend on your type of project and setup, in our case we were able to implement general improvement strategies such as proper caching strategies across runs and parallelizing tests.&lt;/p&gt;
&lt;p&gt;Bringing it all together we can now open up another trace of the same workflow and see that the &lt;code&gt;Build&lt;/code&gt; span is now down to only ~8 minutes, with an overall time of only ~24 min.&lt;/p&gt;
&lt;p&gt;That makes this job about 3.4x faster, a 71% cut in duration.&lt;/p&gt;
&lt;h2&gt;Gaining visibility using custom dashboards&lt;/h2&gt;
&lt;p&gt;Using a &lt;a href=&quot;https://docs.sentry.io/product/dashboards/custom-dashboards/&quot;&gt;custom dashboard&lt;/a&gt; we can now use the collected individual traces and compare the data across multiple jobs, allowing us to easily see p50 and p90 distributions over time, making sure we are not comparing outliers.&lt;/p&gt;
&lt;p&gt;This shows us that efforts can really pay off as we are now able to say that we reduced the time of workflow runs by about 64%, allowing us to focus time on the right places.&lt;/p&gt;
&lt;p&gt;Together with the new &lt;a href=&quot;https://cli.sentry.dev/&quot;&gt;Sentry CLI&lt;/a&gt; we can go another step further and even access the raw data and use it to generate graphs making the gains even more accessible. Bringing it all together we can clearly see the downwards trend as expected:&lt;/p&gt;
&lt;h2&gt;The best part: you can use it too!&lt;/h2&gt;
&lt;p&gt;Collecting traces for GitHub Actions workflows is almost effortless. To get started all you need to do is follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a new project in Sentry, e.g. &lt;code&gt;ci-telemetry&lt;/code&gt; or &lt;code&gt;github-actions-ci-data&lt;/code&gt;. No worries about picking a platform or alerts for now, as it doesn&amp;#39;t matter for this use case.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, create a private repository named &lt;code&gt;.sentry&lt;/code&gt; in the GitHub organization or user account that owns the repositories you want to monitor. Each owner needs its own &lt;code&gt;.sentry&lt;/code&gt; repository.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the new repository commit a file called &lt;code&gt;sentry_config.ini&lt;/code&gt; and configure the DSN to the project you created earlier:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ini&quot;&gt;[sentry-github-actions-app]
dsn = https://&amp;lt;key&amp;gt;@&amp;lt;org&amp;gt;.ingest.sentry.io/&amp;lt;project&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, &lt;a href=&quot;https://github.com/apps/sentry-github-app-alpha&quot;&gt;install our GitHub App&lt;/a&gt; and make sure it can access &lt;code&gt;.sentry&lt;/code&gt; and all the workflows you want to monitor in Sentry. Note: our GitHub App can&amp;#39;t read your code. It asks for read access to Actions, repository metadata and the single &lt;code&gt;sentry_config.ini&lt;/code&gt; file. When a workflow job completes, the app looks up the run&amp;#39;s branch, commit and commit author (whose name and email become the event&amp;#39;s user), reads your DSN from &lt;code&gt;.sentry&lt;/code&gt;, and sends the job to your Sentry project. Feel free to check out the code in the &lt;a href=&quot;https://github.com/getsentry/sentry-github-actions-app/&quot;&gt;sentry-github-actions-app repository&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;#39;s it! One project, one repo, one commit and one app installation and you will start to receive GitHub workflow jobs as Sentry traces*.&lt;/p&gt;
&lt;p&gt;* Keep in mind that the ingested traces count toward your span quota (or your transaction quota on older plans).&lt;/p&gt;
&lt;h2&gt;Next steps for us at Sentry&lt;/h2&gt;
&lt;p&gt;The GitHub app to collect GitHub Actions workflow telemetry in Sentry should be considered &lt;strong&gt;experimental&lt;/strong&gt;, but now it&amp;#39;s your time to shine!&lt;/p&gt;
&lt;p&gt;Try it out and let us know what works for you, what can be improved, and what you want to see next. The easiest way to make your voice heard is upvoting and commenting on &lt;a href=&quot;https://github.com/getsentry/sentry-github-actions-app/issues&quot;&gt;issues in the sentry-github-actions-app repo&lt;/a&gt; on GitHub.&lt;/p&gt;
</content:encoded></item><item><title>How a broken release name overloaded our symbolication database</title><link>https://blog.sentry.io/broken-release-database-load/</link><guid isPermaLink="true">https://blog.sentry.io/broken-release-database-load/</guid><description>An unexpanded env var filled one release with 44M URL index rows. Capping lookups cut database CPU from 76% to 19% and symbolication timeouts by 98%.</description><pubDate>Mon, 09 Nov 2026 09:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; A few releases with broken names had piled up tens of millions of rows, and one unbounded lookup kept trying to scan all of them. Capping how much work a single lookup can do cut database CPU from 76% to 19% and symbolication timeouts by 98%. Bigger hardware hadn&amp;#39;t managed either.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;How Sentry finds your source maps&lt;/h2&gt;
&lt;p&gt;When a JavaScript error reaches Sentry, the stack trace points at minified code. Sentry finds the source map that was uploaded for that build to be able to show you the original file and line.&lt;/p&gt;
&lt;p&gt;Source maps are uploaded in artifact bundles. There are two ways to find the right one:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;By debug ID. Modern build tooling stamps each file with a unique ID, so the lookup is exact.&lt;/li&gt;
&lt;li&gt;By release and URL. Older setups match on the release name plus the file&amp;#39;s URL. We keep a URL index to make that fast, one row for every file in every bundle.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/getsentry/symbolicator&quot;&gt;Symbolicator&lt;/a&gt;, our open-source symbolication service, does the lookup when it processes an event. Bundles that are still in use get their &amp;quot;last used&amp;quot; date renewed, and bundles nobody has used for about 90 days are cleaned up.&lt;/p&gt;
&lt;p&gt;All of this lives in a Postgres 14 database dedicated to files. The URL index is by far its biggest table.&lt;/p&gt;
&lt;h2&gt;The problematic database&lt;/h2&gt;
&lt;p&gt;This database has been a problem for a while. Load and storage kept growing, and every once in a while someone got paged about it. In early October it caused an incident where symbolication latency spiked for customers in our US region, the latest in a long line of problems with this database.&lt;/p&gt;
&lt;p&gt;We&amp;#39;d already tried the usual database fixes: bigger instances and more indexes. But load and storage kept growing anyway, and the extra indexes made storage worse, since every index is more data to write, keep, and clean up. That&amp;#39;s why I decided to go straight to the source and look at how Sentry itself stores and queries this data.&lt;/p&gt;
&lt;h2&gt;Investigating the issues&lt;/h2&gt;
&lt;p&gt;I&amp;#39;m not an expert in these systems, so I paired with Claude to investigate. It read the code, suggested queries and kept track of what we&amp;#39;d learned, while I ran everything myself against read replicas. I then reviewed the findings with engineers who were more familiar with these systems. I started with a simple prompt: help me investigate the layout of the artifact bundles in this database and find the releases with the most artifacts. A few hours of back-and-forth later, things were starting to make more sense.&lt;/p&gt;
&lt;p&gt;A few things made that work well:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;One query at a time.&lt;/strong&gt; The model proposed a single query, I ran it and pasted the result back, and the next step depended on what came back. That was slower than asking for a plan up front, but every step was grounded in real data rather than guesses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep a running record.&lt;/strong&gt; A dedicated doc with timelines, findings, and dead ends gave colleagues (and agents) somewhere to track the progress.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Guardrails stay with the human.&lt;/strong&gt; No direct database access for the model. Heavy reads ran against our read replicas.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ask for sources.&lt;/strong&gt; Every timestamp and number had to point back to a graph, a query result or a pull request. That caught several mistakes before they spread.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We had found some suspicious releases causing an outsized share of the load. The worst of them, which a teammate had already found and blocked from lookups after it kept showing up in our query-killer logs, was named, literally, &lt;code&gt;VERCEL_GIT_COMMIT_SHA&lt;/code&gt;. I was having a hard time building a mental model of how things were fitting together, so I asked Claude to build some visualization to help me out.&lt;/p&gt;
&lt;p&gt;Somewhere in a customer&amp;#39;s build config, an environment variable was referenced but never expanded. So instead of each deploy getting its own release named after its commit, every build landed in the same release, forever. Even worse, the bundled files used generated names, so URL lookups could never match them anyway.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This isn&amp;#39;t a bug in Vercel or in our Vercel integration. The string comes from the project&amp;#39;s own build configuration. It can happen with any CI provider&amp;#39;s variables. We saw the same pattern with release names like &lt;code&gt;undefined&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;More than 200 organizations had a release with this exact name. The worst one had:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;13,595 bundles (2,039 active)&lt;/li&gt;
&lt;li&gt;3,226 files per bundle&lt;/li&gt;
&lt;li&gt;44 million URL index rows with all generated file names&lt;/li&gt;
&lt;li&gt;13 GB of disk for that index alone&lt;/li&gt;
&lt;li&gt;More than 6,000 rows rewritten every time a bundle was renewed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A single URL lookup against that release took 7.4 minutes uncached and 53 seconds with everything already in memory. We normally cancel queries that run longer than 30 seconds and had lowered that to 10 seconds during the incident, so this query could never finish. Then Symbolicator would retry it two more times.&lt;/p&gt;
&lt;p&gt;After enough digging, we&amp;#39;d also turned up a pile of smaller issues, like odd queries and unused indexes. At that point I went from investigating to fixing.&lt;/p&gt;
&lt;h2&gt;Fixing the issues&lt;/h2&gt;
&lt;p&gt;These are the changes that mattered most, in order of impact.&lt;/p&gt;
&lt;h3&gt;A row budget for URL lookups (October 14)&lt;/h3&gt;
&lt;p&gt;We capped a single URL lookup at scanning 1,000,000 URL index rows. Lookups on huge releases now stop early instead of running until they&amp;#39;re killed and retried. The miss gets cached, avoiding doing the work again.&lt;/p&gt;
&lt;p&gt;Since the fix about 0.5% of URL lookups hit the cap. Those few lookups were driving roughly three-quarters of the CPU on our primary database hosts. Once the budget went live, CPU usage dropped from 76% to 19% on our busiest host. Symbolicator timeouts to Sentry went from constantly happening to sporadic.&lt;/p&gt;
&lt;h3&gt;Splitting the debug ID lookup (October 8)&lt;/h3&gt;
&lt;p&gt;One of our joins across the bundle, project, release, and debug ID tables got much heavier after the query plan shifted. We replaced it with three single-table queries that start from the debug ID. That prevents the planner from picking a bad plan.&lt;/p&gt;
&lt;h3&gt;Keeping dates on the bundle row only (October 9)&lt;/h3&gt;
&lt;p&gt;Re-uploading an existing bundle used to rewrite the date on every one of its debug ID and URL index rows. Running that update was slow enough that the query timeout could cancel it. The whole upload then failed along with it. Now only the bundle row&amp;#39;s date changes, and if that update gets cancelled, the upload still goes through.&lt;/p&gt;
&lt;p&gt;Before the fix, uploads hit this error about 32,000 times in 18 days. Since then, none. The tables now collect 110 to 210 million fewer dead rows a day.&lt;/p&gt;
&lt;h3&gt;Stop indexing generated file names (October 8–9)&lt;/h3&gt;
&lt;p&gt;Files named after their own debug ID can never match a URL lookup, but we were writing them into the URL index anyway. They made up about a third of all its rows, so we stopped writing them. URL index inserts dropped by about 35% in both regions, roughly 170 million fewer rows a day in the US alone.&lt;/p&gt;
&lt;h3&gt;Turning off Postgres JIT (October 7)&lt;/h3&gt;
&lt;p&gt;Postgres can compile expensive queries to machine code right before running them. That&amp;#39;s called just-in-time (JIT) compilation. It does this by default for any query with an estimated cost above 100,000. For one of our legacy release file lookups, compiling took longer than it saved every single time.&lt;/p&gt;
&lt;p&gt;JIT is now off permanently in our database configuration: latency per call fell from 14.5 ms to 0.12 ms, and busy database sessions from about 7.5 to 0.06.&lt;/p&gt;
&lt;h2&gt;Results&lt;/h2&gt;
&lt;p&gt;Weekday-morning load on our busiest database host fell from 104 active sessions to 24 (−77%), while serving 10% more queries. Symbolicator lookups that timed out per hour fell from 3,250 to 80 (−98%).&lt;/p&gt;
&lt;h2&gt;Lessons&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Customer data can have an outsized effect on system load.&lt;/strong&gt; Our tables were designed around releases with a reasonable number of builds. A few releases with broken names built up a huge amount of data. We had an unbounded query that tried to scan all of it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Don&amp;#39;t retry things that can never succeed.&lt;/strong&gt; Postgres would happily run these queries, our timeout would happily kill them, and Symbolicator would happily retry them, multiplying the load.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Limits are good.&lt;/strong&gt; Bounding the work per request fixed what extra capacity couldn&amp;#39;t. The releases that hit the cap were already failing on timeouts, so they don&amp;#39;t lose anything.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Check your own release names&lt;/h2&gt;
&lt;p&gt;If you deploy a continuous integration (CI) system that sets your release from an environment variable, it&amp;#39;s worth a quick look.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open Releases in Sentry and look at the names (or just ask your agent to do it with the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;If you see a release named after a variable (like &lt;code&gt;VERCEL_GIT_COMMIT_SHA&lt;/code&gt;), or &lt;code&gt;undefined&lt;/code&gt;, your build is passing the variable&amp;#39;s name or an empty value instead of the commit.&lt;/li&gt;
&lt;li&gt;Make sure the variable is set and expanded in your build before it&amp;#39;s passed to Sentry. Your source maps will match more often, and our database will thank you.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We&amp;#39;ve also fixed this on our side. Starting in &lt;a href=&quot;https://github.com/getsentry/sentry-javascript/releases/tag/11.9.0&quot;&gt;11.9.0&lt;/a&gt;, the Sentry JavaScript SDK &lt;a href=&quot;https://github.com/getsentry/sentry-javascript/pull/25244&quot;&gt;ignores a commit variable whose value is its own name&lt;/a&gt;, so upgrading helps too.&lt;/p&gt;
</content:encoded></item><item><title>Finding performance wins in our own traces with a coding agent</title><link>https://blog.sentry.io/performance-wins-traces-coding-agent/</link><guid isPermaLink="true">https://blog.sentry.io/performance-wins-traces-coding-agent/</guid><description>How we used a coding agent and the Sentry MCP to find backend performance wins in Sentry&apos;s own traces and remove hundreds of millions of queries a week.</description><pubDate>Tue, 03 Nov 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For the last few weeks I&amp;#39;ve used a coding agent to find and fix backend performance issues in Sentry, starting from the traces Sentry sends to itself.&lt;/p&gt;
&lt;p&gt;Most of the fixes only changed a line or two. But together, they removed hundreds of millions of queries a week, and some expensive lookups became hundreds or thousands of times faster (more details on that below).&lt;/p&gt;
&lt;h2&gt;Pointing the agent at our traces&lt;/h2&gt;
&lt;p&gt;I connected my agent (in this case Claude with Opus 5.5) to the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP&lt;/a&gt;, pointed it at our own Sentry org and project, and asked it to find hot code path issues similar to a small performance PR I had drafted:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;use the sentry mcp to look for more similar quick wins around hot path issues things&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;With the latest few model releases, I&amp;#39;ve found that you don&amp;#39;t have to be as specific with how you structure prompts, or make sure that you&amp;#39;re controlling context for the agent (for example sharing specific example spans). You can start with something as general as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Find all the critical paths in my application. Use the sentry MCP to find their traces and find ways to optimize them.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Based on my initial prompt, the agent sorted spans by how often they ran and how long they took. For each candidate it gave me a file and line, an estimated weekly volume, and a link to an example trace. When the list got thin, I&amp;#39;d point it somewhere new. My prompts were short and mostly questions like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;look for database heavy issues&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;is this change risky in any way?&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;did you validate the new query using EXPLAIN like we did earlier&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;rpc might also be interesting&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;i think there&amp;#39;s a pr from someone that might already fix this&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;lets not touch that area&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then I&amp;#39;d pick an issue and have it investigate further before changing anything. It read the code and the git history and told me what might break. If the fix held up, it opened a draft PR.&lt;/p&gt;
&lt;p&gt;Sentry is a large codebase, and there are areas I don&amp;#39;t know well enough to change confidently. I&amp;#39;d steer the agent away from those, check for work already in progress, and keep looking for something smaller. Making sure the agent has the ability to validate changes in the read-only database rather than guessing leads to much better results.&lt;/p&gt;
&lt;h2&gt;Django SDK instrumentation as a starting point&lt;/h2&gt;
&lt;p&gt;A lot of the Sentry codebase is in Django, and the &lt;a href=&quot;https://docs.sentry.io/platforms/python/integrations/django/&quot;&gt;Sentry Django SDK&lt;/a&gt;&amp;#39;s automatic instrumentation gave us a good starting point:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Django query spans include the SQL as their description. Our traces also include cache calls, cross-silo RPCs, tasks, and API routes. Grouping spans by description gave the agent a way to turn trace data into a ranked list of expensive work.&lt;/li&gt;
&lt;li&gt;When query-source attributes were available on a database span, they gave the agent the file and line that ran the query.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;user_agent&lt;/code&gt; attribute showed that one busy endpoint was mostly &lt;code&gt;sentry-cli set-commits --auto&lt;/code&gt; paging through an org&amp;#39;s repositories on every build. One org had ~16k repositories and was doing this roughly every 40 seconds. That led to a CLI change to avoid the pagination and a server-side index to make the queries cheaper for existing CLI versions.&lt;/li&gt;
&lt;li&gt;Every PR links an example trace showing the extra query or call, so that it&amp;#39;s a bit easier for a reviewer to understand. In one trace, a webhook ran the same 140ms query twice.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The result from removing a query was easy to see in a trace. To find out how much it mattered, I also checked request latency and database load in Sentry.&lt;/p&gt;
&lt;h2&gt;Checking query changes&lt;/h2&gt;
&lt;p&gt;For SQL changes, the agent ran &lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt; before and after on a read-only database mirror and compared the results. The clearest query cleanup was GroupHistory lookup (GroupHistory records each status change on an issue). The query asked for the newest row across several statuses, meaning Postgres read and sorted every matching row:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sql&quot;&gt;-- before
SELECT * FROM sentry_grouphistory
WHERE group_id = %s AND status IN (1, 2, 11, 12, 13)
ORDER BY date_added DESC LIMIT 1

-- after: one probe per status, take the max in Python
(SELECT date_added FROM sentry_grouphistory
 WHERE group_id = %s AND status = 1
 ORDER BY date_added DESC LIMIT 1)
UNION ALL ...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For the busiest group on the mirror this went from 935ms to 0.4ms with a warm cache.&lt;/p&gt;
&lt;h2&gt;Results&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/pull/127329&quot;&gt;Check that the property exists on the event before running the query during event ingestion&lt;/a&gt;.&lt;/strong&gt; That UPDATE was running ~10k/s on the attachments database in our US region and is now basically gone. Commits on that database fell ~17%, and &lt;code&gt;link_event_to_user_report&lt;/code&gt; averaged ~6ms → ~2.5ms.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/pull/127494&quot;&gt;Reuse the already loaded project and skip unnecessary lookups in two hot paths&lt;/a&gt;.&lt;/strong&gt; Reusing the project removed an estimated ~143M extra SELECTs a week. Together, the two occurrence-ingestion fixes brought &lt;code&gt;save_issue_occurrence&lt;/code&gt; p50 from ~35ms to ~30ms and p95 from ~95ms to ~61ms versus the same hours the previous day (&lt;a href=&quot;https://github.com/getsentry/sentry/pull/127495&quot;&gt;detector lookup fix&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/pull/127496&quot;&gt;Rearrange the GroupHistory query to use the existing index more efficiently when updating issue status&lt;/a&gt;.&lt;/strong&gt; That query accounted for ~8% of disk reads on the primary database in our EU (Germany) region and ~3% in our US region, and its disk reads fell to nearly zero. Status changes in the occurrence consumer were ~30% faster in the US region and ~13% faster in the EU region versus the same time the previous day.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/pull/127720&quot;&gt;Eager-load the application and token for Sentry app requests to skip round trips later&lt;/a&gt;.&lt;/strong&gt; The two extra selects went from ~1.9% of query volume on the control database to ~0.16%. That works out to roughly 29M fewer queries a day. The fix joins the related objects into two queries we&amp;#39;re already making.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/pull/128052&quot;&gt;Add a missing table index for repository pagination&lt;/a&gt;.&lt;/strong&gt; The paginated query alone accounted for ~1.6% of query execution time on the primary database in our US region before rollout. Average database execution fell ~69% (30ms → 9.2ms), with ~52% fewer cached block accesses per query. Requests weren&amp;#39;t consistently faster, but they did less database work.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/pull/127504&quot;&gt;Call &lt;code&gt;bulk_set&lt;/code&gt; once instead of setting the cache once per issue in results, to reduce round trips&lt;/a&gt;.&lt;/strong&gt; Writing the unhandled flag used to take one cache round trip per issue, about 51ms in the measured example. Batching those writes took one round trip and about 1.2ms.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/getsentry/sentry/commit/8192c803fed441281ae46f7495d2919ee07bb07a&quot;&gt;Work around poor Postgres planner performance for a query in detectors&lt;/a&gt;.&lt;/strong&gt; On the database mirror, a query for a small detector fell from 180ms to 0.2ms with a warm cache.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Query volumes and daily savings are estimates based on sampled spans and observed traffic. I compared database work per request or query so changes in traffic wouldn&amp;#39;t be misrepresented as performance improvements.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Trying it on your own app&lt;/h2&gt;
&lt;p&gt;To get started:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you don&amp;#39;t already use Sentry, &lt;a href=&quot;https://sentry.io/signup/&quot;&gt;sign up for Sentry&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Give your coding agent access to the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Prompt your agent to find performance issues in your app. You can start generally and work down to specific areas like:&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;Find transactions where the same query, with different parameters, runs more than 10 times in a single trace (N+1).&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;Find &lt;code&gt;SELECT *&lt;/code&gt; or wide queries on hot paths where only a few columns are used.&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;Find slow queries with &lt;code&gt;ORDER BY ... LIMIT&lt;/code&gt;, &lt;code&gt;OFFSET&lt;/code&gt; pagination, or &lt;code&gt;LIKE &amp;#39;%...&amp;#39;&lt;/code&gt; that likely aren&amp;#39;t using an index.&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Pick an issue and have it investigate further before changing anything. Have it read the code and the git history and assess what might break. Then open a PR.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also use natural language queries in the Sentry UI&amp;#39;s Explore tabs for Logs, Traces, and Metrics to ask things like &amp;quot;Which database queries had the highest P95 duration over the last 7 days?&amp;quot;&lt;/p&gt;
</content:encoded></item><item><title>Android profiling now uses Perfetto via ProfilingManager</title><link>https://blog.sentry.io/android-profilingmanager-perfetto/</link><guid isPermaLink="true">https://blog.sentry.io/android-profilingmanager-perfetto/</guid><description>Sentry Android SDK 8.51.0 profiles Android 15+ devices with Perfetto via ProfilingManager: fewer tracer crashes, lower overhead, better profiles</description><pubDate>Mon, 02 Nov 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Starting with Sentry Android SDK &lt;code&gt;8.51.0&lt;/code&gt;, profiling on Android 15+ devices is powered by Perfetto, through Android&amp;#39;s system &lt;code&gt;ProfilingManager&lt;/code&gt; API. That means fewer legacy tracer crashes, lower CPU and memory overhead, and more representative profiles.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to change any configuration: if you already use continuous profiling, devices on Android 15 and newer pick up the new profiler as soon as you upgrade.&lt;/p&gt;
&lt;h2&gt;From method tracing to ProfilingManager&lt;/h2&gt;
&lt;p&gt;Until now, the Sentry Android SDK profiled apps with Android&amp;#39;s &lt;code&gt;Debug.startMethodTracing&lt;/code&gt; APIs, which sample threads using the Android runtime&amp;#39;s built-in tracer. That profiler, now called &lt;a href=&quot;https://docs.sentry.io/platforms/android/profiling/legacy/&quot;&gt;Legacy Profiling&lt;/a&gt;, runs inside your app&amp;#39;s process.&lt;/p&gt;
&lt;p&gt;With &lt;code&gt;8.51.0&lt;/code&gt;, on Android 15+ (API 35+) we replaced it with &lt;code&gt;ProfilingManager&lt;/code&gt;, which can record Perfetto-based stack samples. Devices below Android 15 keep using the legacy profiler, so you don&amp;#39;t lose coverage on older devices.&lt;/p&gt;
&lt;h2&gt;Benefits of profiling outside your app&amp;#39;s process&lt;/h2&gt;
&lt;p&gt;Moving profiling out of your app&amp;#39;s process has three advantages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No more legacy tracer crashes.&lt;/strong&gt; The Android runtime&amp;#39;s tracer used by the &lt;code&gt;Debug.startMethodTracing()&lt;/code&gt; APIs can crash an app when other code in the process creates native threads, attaches them to the runtime, and exits without detaching them. Sentry doesn&amp;#39;t cause that bug, but using the tracer for profiling can make it surface more often (&lt;a href=&quot;https://github.com/getsentry/sentry-java/issues/2604&quot;&gt;sentry-java#2604&lt;/a&gt;). Perfetto profiling doesn&amp;#39;t use that tracer.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lower CPU and memory overhead.&lt;/strong&gt; Most of the profiling work, including most memory allocations, happens in a system process instead of yours. We don&amp;#39;t have hard numbers to share, but the overhead is lower than with the legacy profiler.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;More representative profiles.&lt;/strong&gt; Because the profiler isn&amp;#39;t competing with your code inside the same process, it has less influence on the code it measures.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Need to go deeper than the flame chart? Download the raw Perfetto trace straight from the profile in Sentry and open it in &lt;a href=&quot;https://ui.perfetto.dev/&quot;&gt;ui.perfetto.dev&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Profiling in action&lt;/h2&gt;
&lt;p&gt;In any larger codebase, it&amp;#39;s hard to reason about which code runs where. Profiling gives you a different perspective: you see exactly what code ran, on which thread, and for how long. That makes unwanted behavior easy to spot.&lt;/p&gt;
&lt;p&gt;A classic example is a missing &lt;code&gt;withContext(Dispatchers.IO)&lt;/code&gt;. In the profile below, when examining the main thread (1) a user input is dispatched (2) and triggers a ViewModel. The ViewModel calls into a repository, and the repository parses a large JSON asset using the Gson library (3).&lt;/p&gt;
&lt;p&gt;The UI, ViewModel, and repository layers each look correct on their own, but none of them moves the work off the main thread. The profile makes that obvious: Gson spends more than a second parsing a JSON blob on the main thread, causing UI freezes. The fix could be one line in the ViewModel:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-kotlin&quot;&gt;suspend fun loadUsers(): List = withContext(Dispatchers.IO) {
  repository.loadUsers()
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Device support and rate limits&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;ProfilingManager&lt;/code&gt; is only available on Android 15 and newer. Based on the latest numbers, this is about 41% of active Android devices (&lt;a href=&quot;https://apilevels.com/&quot;&gt;apilevels.com&lt;/a&gt;). Older devices fall back to the legacy profiler, unless you turn it off (more on that below).&lt;/p&gt;
&lt;p&gt;The system also decides when to profile. Android &lt;a href=&quot;https://developer.android.com/reference/android/os/ProfilingManager&quot;&gt;rate limits profiling requests&lt;/a&gt; and doesn&amp;#39;t guarantee that it will fill them. In practice, this means that even with &lt;code&gt;profileSessionSampleRate&lt;/code&gt; set to &lt;code&gt;1.0&lt;/code&gt;, not every session gets a profile. If you want to test locally without the limit, you can turn it off on your device:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;adb shell device_config put profiling_testing rate_limiter.disabled true
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Getting started&lt;/h2&gt;
&lt;p&gt;First, upgrade to the latest Sentry Android SDK. If you already use continuous profiling, that&amp;#39;s it: Android 15+ devices switch to Perfetto automatically.&lt;/p&gt;
&lt;p&gt;We also added a new option, &lt;code&gt;enableLegacyProfiling&lt;/code&gt;. It defaults to &lt;code&gt;true&lt;/code&gt;, so older devices keep using the legacy profiler. If you want to avoid the legacy tracer completely, we recommend setting it to &lt;code&gt;false&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-kotlin&quot;&gt;SentryAndroid.init(this) { options -&amp;gt;
  // ...
  // Only profile on Android 15+ with Perfetto
  options.isEnableLegacyProfiling = false
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Check out the &lt;a href=&quot;https://docs.sentry.io/platforms/android/profiling/&quot;&gt;Android profiling docs&lt;/a&gt; to learn more.&lt;/p&gt;
</content:encoded></item><item><title>Measuring soft navigation web vitals</title><link>https://blog.sentry.io/measuring-soft-navigation-web-vitals/</link><guid isPermaLink="true">https://blog.sentry.io/measuring-soft-navigation-web-vitals/</guid><description>The Sentry JavaScript SDK v11 reports LCP, CLS, and INP for soft navigations. Here&apos;s what that reveals about your SPA, with interactive demos.</description><pubDate>Thu, 29 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Chrome now reports web vitals for soft navigations, and &lt;a href=&quot;https://github.com/getsentry/sentry-javascript/releases/tag/11.0.0&quot;&gt;JavaScript SDKs v11&lt;/a&gt; capture Largest Contentful Paint (&lt;a href=&quot;https://webvitals.com/lcp&quot;&gt;LCP&lt;/a&gt;), Cumulative Layout Shift (&lt;a href=&quot;https://webvitals.com/cls&quot;&gt;CLS&lt;/a&gt;), and Interaction to Next Paint (&lt;a href=&quot;https://webvitals.com/inp&quot;&gt;INP&lt;/a&gt;) for each one. It&amp;#39;s on by default.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If we were to reduce web performance into a single term, it would be &amp;quot;web vitals&amp;quot;. Web vitals are a universal signal that every developer can measure, and more importantly, optimize for. They describe many facets of the user experience when it comes to performance, but they were limited to specific types of navigations.&lt;/p&gt;
&lt;p&gt;Capturing web vitals for your apps has been largely about users landing on your site from somewhere else. We measured that experience and you optimized for it. But most users land on one page and then click through ten more, and the pages behind the login are where they spend their day. That larger part of the user journey remained unmeasured, and so you couldn&amp;#39;t optimize for it.&lt;/p&gt;
&lt;p&gt;So we turned on soft navigation web vitals for our app for 30 days, and we&amp;#39;ll share what we found along the way.&lt;/p&gt;
&lt;h2&gt;What is a soft navigation&lt;/h2&gt;
&lt;p&gt;Users can navigate your website in different ways. This is an incomplete list, but from a user&amp;#39;s perspective it covers the most common ones:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hard navigations: Opens a link to a page in your website, or reloads the page. Usually handled by the browser. Think multi-page applications.&lt;/li&gt;
&lt;li&gt;Back/forward navigations: Moves the user back or forward through the browser&amp;#39;s history. Also handled by the browser, which decides whether the page can be restored from the &lt;a href=&quot;https://blog.sentry.io/bfcache-metrics/&quot;&gt;bfcache&lt;/a&gt; or has to be loaded again, effectively falling back to a hard navigation.&lt;/li&gt;
&lt;li&gt;Soft navigations: Your JS app handles the navigation through the History or Navigation API. Think single-page applications (SPAs).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Soft navigations have become more common since SPAs arrived and websites started to behave more like apps. Even with server-side rendering (SSR), many websites start off with a hard navigation, and then switch to soft navigations as they effectively become SPAs after the initial load.&lt;/p&gt;
&lt;p&gt;A page load and a soft navigation both change the URL. The difference is what happens behind it:&lt;/p&gt;
&lt;p&gt;One of the difficulties in measuring soft navigations is first defining what a soft navigation is. For example, should every change to the URL count as an independent soft navigation?&lt;/p&gt;
&lt;p&gt;At the moment, &lt;a href=&quot;https://developer.chrome.com/docs/web-platform/soft-navigations#what_is_a_soft_navigation&quot;&gt;Chrome&lt;/a&gt; defines a soft navigation as one that meets these criteria:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The navigation is initiated by a user action.&lt;/li&gt;
&lt;li&gt;The navigation results in a visible URL change to the user.&lt;/li&gt;
&lt;li&gt;The interaction results in a visible paint.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These heuristics are not final, and Chrome may change them as it collects more feedback. From the browser&amp;#39;s point of view, a soft navigation does not always match a history state change. And because each browser will implement its own heuristics, they may differ from browser to browser. Either way, you want to know what users experienced in the browser they actually use.&lt;/p&gt;
&lt;h2&gt;Measuring rather than assuming&lt;/h2&gt;
&lt;p&gt;Until recently, the usual assumption was simple: &amp;quot;If my hard navigation is fast, my soft navigations should be faster.&amp;quot; So we checked. Across millions of soft navigations in our app, soft navigations loaded faster than page loads on every route we looked at, and almost all of them were rated good.&lt;/p&gt;
&lt;p&gt;Still, faster or slower was never the interesting question, and comparing the two isn&amp;#39;t fair anyway. A page load&amp;#39;s clock starts with a request for the document. A soft navigation&amp;#39;s clock starts at the user&amp;#39;s interaction, with no document request, your JS already parsed, and your app already running. What you want to know is how fast your soft navigations are, on which routes, and whether they stay that way. Until now, you couldn&amp;#39;t answer any of that.&lt;/p&gt;
&lt;h2&gt;What you couldn&amp;#39;t see before&lt;/h2&gt;
&lt;h3&gt;Durations that match what users see&lt;/h3&gt;
&lt;p&gt;If you&amp;#39;ve been using the duration of &lt;code&gt;navigation&lt;/code&gt; spans as a stand-in for &amp;quot;how long did this route take&amp;quot;, you&amp;#39;ve been measuring something slightly different.&lt;/p&gt;
&lt;p&gt;A server request or a fetch call has a clear end. It&amp;#39;s when the response arrives, and the span&amp;#39;s duration is exactly how long it took. A client-side navigation doesn&amp;#39;t have a clear end. We know when it starts, but there&amp;#39;s no signal that tells you that the navigation is done, and that makes sense if you think about it. Did it end when your framework rendered the route? When all its fetch requests settled? When there was no activity left? What counts as activity then? Does &amp;quot;rendered&amp;quot; include fetching the data?&lt;/p&gt;
&lt;p&gt;There&amp;#39;s no right answer, so our &lt;code&gt;navigation&lt;/code&gt; span picks one: it ends once your app goes idle, that is, when no new spans have started for a while. That&amp;#39;s fine for what it is. It tells you when the activity settled, just not when the user could see the new route. The route can be fully ready and interactive at any point during the span&amp;#39;s duration.&lt;/p&gt;
&lt;p&gt;Page loads have the same gap. In our app, the main content shows up at 2.85s at p75, about four seconds before the &lt;code&gt;pageload&lt;/code&gt; span ends at 6.77s.&lt;/p&gt;
&lt;p&gt;These are the same questions page loads had, and web vitals were the answer to them. Instead of an end that&amp;#39;s defined the same way for every app, they measure what the user experienced.&lt;/p&gt;
&lt;p&gt;Soft navigation LCP, for example, is measured from the interaction that triggered the navigation to the moment the new route&amp;#39;s main content painted. From then on, the user can see the page and may start interacting with it. Whether it responds when they do is what INP measures.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s someone opening an issue. The page shows the issue first, then loads its activity and related issues underneath.&lt;/p&gt;
&lt;p&gt;The issue was on screen well before the &lt;code&gt;navigation&lt;/code&gt; span ended. You can see the same thing in a real trace, where the LCP marker sits right where the request for the issue ends, more than two seconds before the span does.&lt;/p&gt;
&lt;p&gt;You can now track these user-facing numbers per route.&lt;/p&gt;
&lt;h3&gt;Cleaner page loads&lt;/h3&gt;
&lt;p&gt;By definition, CLS and INP cover the whole time a page is open. Most tools follow that definition, so in an SPA a layout shift on a route the user clicked into five minutes later still counts against the page they landed on. With soft navigations, the page load&amp;#39;s vitals are finalized at the first soft navigation, and everything after that belongs to the route it happened on.&lt;/p&gt;
&lt;h3&gt;Pages nobody lands on&lt;/h3&gt;
&lt;p&gt;In an SPA, plenty of pages almost never get a page load. Think of a settings page, the second step of a checkout, or a details page that users only ever reach by clicking through a list. Page load vitals only measure where users land, so those pages had little to no web vitals data, no matter how much traffic they got.&lt;/p&gt;
&lt;p&gt;Here are a few users landing on an application and navigating within it, and how the two versions of our SDK report web vitals for them.&lt;/p&gt;
&lt;p&gt;In our app, some pages are reached almost only by a click, and others ten times more often by a click than by loading them directly. Page load vitals only ever saw a small slice of those visits. With soft navigations, every page users actually visit gets measured, not just the ones they enter from.&lt;/p&gt;
&lt;h2&gt;How it works with Sentry&lt;/h2&gt;
&lt;p&gt;To recap how web vitals are reported today, Sentry attaches web vital measurements as spans onto the &lt;code&gt;pageload&lt;/code&gt; spans you&amp;#39;ve been getting. That is still the case for hard navigations.&lt;/p&gt;
&lt;p&gt;For soft navigations, the Sentry SDK attaches web vital measurements as spans onto the &lt;code&gt;navigation&lt;/code&gt; spans you&amp;#39;ve been getting in your SPA tracing setup, so you&amp;#39;ll see them in the &lt;a href=&quot;https://docs.sentry.io/concepts/key-terms/tracing/trace-view/&quot;&gt;trace view&lt;/a&gt; along with the markers for each vital.&lt;/p&gt;
&lt;p&gt;Each soft navigation gets its own LCP, CLS, and INP. Time to First Byte (&lt;a href=&quot;https://webvitals.com/ttfb&quot;&gt;TTFB&lt;/a&gt;), First Paint (FP), and First Contentful Paint (&lt;a href=&quot;https://webvitals.com/fcp&quot;&gt;FCP&lt;/a&gt;) are only reported for page loads.&lt;/p&gt;
&lt;h3&gt;Setting it up&lt;/h3&gt;
&lt;p&gt;There&amp;#39;s nothing to set up. If you&amp;#39;re on v11 with &lt;code&gt;browserTracingIntegration&lt;/code&gt;, soft navigation vitals are on by default:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;Sentry.init({
  dsn: &amp;quot;YOUR_DSN_HERE&amp;quot;,
  tracesSampleRate: 1.0,
  integrations: [Sentry.browserTracingIntegration()],
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;They rely on span streaming, which is also the default in v11, because a soft navigation&amp;#39;s vitals are finalized long after its &lt;code&gt;navigation&lt;/code&gt; span has ended. If you&amp;#39;d rather keep a single set of vitals for the whole page lifetime, add &lt;code&gt;Sentry.webVitalsIntegration({ softNavigations: false })&lt;/code&gt; to &lt;code&gt;integrations&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Keep in mind that the browser decides what counts as a soft navigation on its own, independently of your router, so not every route change gets web vitals. Sentry joins the two through the interaction that triggered them. In our app, about three in four route changes in Chrome qualify.&lt;/p&gt;
&lt;p&gt;Also, only Chromium 151 and later report soft navigations for now, so these numbers describe that slice of your users.&lt;/p&gt;
&lt;h3&gt;In the dashboard&lt;/h3&gt;
&lt;p&gt;v11 also adds two new kinds of web vitals: soft navigations and bfcache restores. The latter is different from the &lt;a href=&quot;https://blog.sentry.io/bfcache-metrics/&quot;&gt;bfcache metrics&lt;/a&gt; we wrote about recently. Those tell you whether the back button was instant, while these are the web vitals of the navigation itself.&lt;/p&gt;
&lt;p&gt;Every reported web vital now carries a &lt;code&gt;browser.navigation.type&lt;/code&gt; attribute, and the &lt;a href=&quot;https://docs.sentry.io/product/dashboards/sentry-dashboards/frontend/web-vitals/&quot;&gt;web vitals dashboard&lt;/a&gt; has a new &amp;quot;Measured on&amp;quot; filter to go with it. You can pick page loads, soft navigations, bfcache restores, and prerenders, in any combination. Page loads also include spans sent before the SDK started tagging the navigation type, so your older data stays where it was.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need that filter, because soft navigation scores are mixed into the scores you&amp;#39;ve been seeing. Soft navigations skip the document request, so they&amp;#39;re usually faster, and your overall numbers will most likely improve once you upgrade. In our app, p75 LCP is 2.48s across all navigations and 1.17s for soft navigations alone. Your app didn&amp;#39;t suddenly get faster. The mix of navigations changed.&lt;/p&gt;
&lt;p&gt;When you pick soft navigations, the dashboard tells you they aren&amp;#39;t comparable to page loads and hides the good/poor thresholds, because those were derived from page load data.&lt;/p&gt;
&lt;p&gt;One thing to note if you duplicated the web vitals dashboard in the past: your copy won&amp;#39;t get the &amp;quot;Measured on&amp;quot; filter. You can either duplicate it again to pick it up, or filter on the attribute yourself.&lt;/p&gt;
&lt;p&gt;The same goes for any other dashboards or alerts you&amp;#39;ve built on web vitals. Soft navigations are &lt;code&gt;soft-navigation&lt;/code&gt; and bfcache restores are &lt;code&gt;back-forward-cache&lt;/code&gt;. Page loads don&amp;#39;t have a single value of their own: they keep the type the browser reports, like &lt;code&gt;navigate&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, or &lt;code&gt;back-forward&lt;/code&gt;. So to keep an existing alert about page loads, exclude &lt;code&gt;soft-navigation&lt;/code&gt; and &lt;code&gt;back-forward-cache&lt;/code&gt; rather than including specific values. That way, older spans without the attribute are still counted.&lt;/p&gt;
&lt;h2&gt;Reading soft navigation scores&lt;/h2&gt;
&lt;p&gt;When a route stands out, open one of its worst-scoring soft navigations. The trace view for that navigation span carries the web vital spans and their markers, the same way a pageload trace does, so you can read everything that happened between the interaction and the LCP marker.&lt;/p&gt;
&lt;p&gt;What you see there is a bit different from a page load. There&amp;#39;s no document request, so there&amp;#39;s no TTFB, and everything between the click and LCP happens in the browser: running the router, loading the route&amp;#39;s code, fetching its data, and rendering it. A slow API can hurt both kinds of navigation, but it shows up in a different place. On an SSR page load it&amp;#39;s buried in TTFB, while on a soft navigation it&amp;#39;s a fetch span sitting right between the click and the LCP marker.&lt;/p&gt;
&lt;p&gt;A few patterns worth looking for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If fetch spans dominate the time before LCP, start the request earlier. Use a route loader, or prefetch when the user hovers over the link.&lt;/li&gt;
&lt;li&gt;If downloading the route&amp;#39;s chunk dominates, preload it, or reconsider whether that route needs to be split out at all.&lt;/li&gt;
&lt;li&gt;If CLS on a route is high, check your loading placeholders. Content replacing a skeleton of the wrong size is a common culprit.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Measuring the whole journey&lt;/h2&gt;
&lt;p&gt;Most of a session happens after the page users landed on. In our app, about 62% of page views are soft navigations. Now your web vitals cover that part too, and every page users visit gets its own LCP, CLS, and INP, reported by the browser itself.&lt;/p&gt;
&lt;p&gt;The browser side is still moving, and so is ours. Soft navigations are Chromium-only for now, and the heuristics for what counts as one may still change. We followed the origin trials closely to get here, and how we surface these numbers will keep evolving as the platform settles.&lt;/p&gt;
&lt;p&gt;To try it, &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/&quot;&gt;upgrade to v11 of the Sentry JavaScript SDK&lt;/a&gt;, then pick &amp;quot;Soft navigations&amp;quot; in the web vitals dashboard&amp;#39;s &amp;quot;Measured on&amp;quot; filter. The pages you&amp;#39;ve never had numbers for are a good place to start.&lt;/p&gt;
</content:encoded></item><item><title>Five things you can do with Sentry’s Agent Tracing</title><link>https://blog.sentry.io/agent-tracing-use-cases/</link><guid isPermaLink="true">https://blog.sentry.io/agent-tracing-use-cases/</guid><description>Five Sentry Agent Tracing recipes: turn agent conversations into evals, automate triage, track LLM costs, alert on spend, and send OTel spans to Sentry.</description><pubDate>Wed, 28 Oct 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;AI-powered apps are hard to debug without observability. From one run to another, AI produces different results, goes down different paths, and you’re none the wiser as to why it’s happening. &lt;a href=&quot;https://sentry.io/product/tracing/ai-agent/&quot;&gt;Agent Tracing&lt;/a&gt; bridges the gap between prompt, tool calls and final output, all within the context of your app. If things break (it always does at some point, &lt;a href=&quot;https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/&quot;&gt;we know from experience&lt;/a&gt;), you get everything in one complete trace. Model calls, tool executions, and handoffs, alongside everything else your app handles.&lt;/p&gt;
&lt;p&gt;You can debug silent tool failures, find the slow step in a multi-step workflow, fix multi-agent handoffs where vital context goes missing and the AI starts hallucinating. In this post, we’re going to walk through some of our Agent Tracing recipes from the &lt;a href=&quot;https://sentry.io/cookbook/&quot;&gt;Sentry Cookbook&lt;/a&gt;. We’ll show different use cases that you can set up yourself with your agent.&lt;/p&gt;
&lt;h2&gt;Turn production AI agent conversations into eval datasets&lt;/h2&gt;
&lt;p&gt;An eval is a test for an AI agent. You give it an input, look at what it said, and score the answer. Some teams write these by hand (or even generate synthetic evals), so let’s automate this process with real conversations from your production data already recorded in Sentry. This recipe pulls these conversations and feeds them to an eval tool of your choice that scores them for you.&lt;/p&gt;
&lt;p&gt;The recipe exports conversations with one Sentry CLI command, which then become test records. The first user message is the input, the last agent reply is the output, and cost, tokens, and tool errors come along as metadata. You load the records into Braintrust, or into Langfuse, promptfoo, or Arize Phoenix if you prefer, then score them with code checks where you can and an AI agent judge where you can’t.&lt;/p&gt;
&lt;p&gt;Copy the prompt below to have your coding agent guide you through setting it up for your stack, or &lt;a href=&quot;https://sentry.io/cookbook/agent-conversations-to-evals/&quot;&gt;follow the full eval dataset recipe&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; conversations.json&lt;/p&gt;
&lt;h1&gt;Read one conversation turn by turn: model, tokens, and tool calls per turn&lt;/h1&gt;
&lt;p&gt;sentry agent-conversation view YOUR_ORG/CONVERSATION_ID --json
```&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://cli.sentry.dev/commands/agent-conversation/&quot;&gt;Sentry CLI agent-conversation command reference&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 5: Map conversations to eval records&lt;/h3&gt;
&lt;p&gt;Map each row to one record. `input` is `firstInput`, `output` is `lastOutput`, and the other fields become metadata your scorers can use: agent, tokens, cost, tool calls, tool errors, and a link back to the conversation in Sentry.&lt;/p&gt;
&lt;p&gt;Drop rows where `firstInput` or `lastOutput` is `null`. Those conversations come from routes where input or output recording is off. Also drop your own noise, like seeded demo data and smoke tests, before it gets into the dataset. Then sort by `totalTokens` so the heaviest conversations come first. That is where agents thrash, and those conversations make the most useful eval cases.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;scripts/export-conversations.ts&lt;/strong&gt;
```typescript&lt;/p&gt;
&lt;p&gt;type Conversation = {
  conversationId: string;
  title: string | null;
  firstInput: string | null;
  lastOutput: string | null;
  flow: string[]; // agent names
  llmCalls: number;
  toolCalls: number;
  toolErrors: number;
  toolNames: string[];
  totalTokens: number;
  totalCost: number;
  webUrl: string;
};&lt;/p&gt;
&lt;p&gt;const { data } = JSON.parse(readFileSync(&amp;#39;conversations.json&amp;#39;, &amp;#39;utf8&amp;#39;)) as {
  data: Conversation[];
};&lt;/p&gt;
&lt;p&gt;// Replace with your own convention for test and seeded conversations
const isTestTraffic = (id: string) =&amp;gt; id.startsWith(&amp;#39;test-&amp;#39;);&lt;/p&gt;
&lt;p&gt;const records = data
  .filter((c) =&amp;gt; c.firstInput &amp;amp;&amp;amp; c.lastOutput &amp;amp;&amp;amp; !isTestTraffic(c.conversationId))
  .sort((a, b) =&amp;gt; b.totalTokens - a.totalTokens)
  .map((c) =&amp;gt; ({
    id: c.conversationId,
    input: c.firstInput,
    output: c.lastOutput,
    metadata: {
      title: c.title,
      agents: c.flow,
      llm_calls: c.llmCalls,
      tool_calls: c.toolCalls,
      tool_errors: c.toolErrors,
      tools: c.toolNames,
      total_tokens: c.totalTokens,
      cost_usd: c.totalCost,
      sentry_url: c.webUrl,
    },
  }));
```&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://cli.sentry.dev/commands/agent-conversation/&quot;&gt;Conversation JSON fields&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 6: Load the conversations into Braintrust&lt;/h3&gt;
&lt;p&gt;Push each record into a Braintrust dataset. Setting `id` to the conversation ID makes inserts upserts, so re-running the export syncs new conversations instead of duplicating old ones. Keep the production answer in metadata. Your first experiment should score what the agent &lt;em&gt;actually said&lt;/em&gt; in production, not a re-generation.&lt;/p&gt;
&lt;p&gt;You can also log each conversation as a trace in Braintrust&amp;#39;s logs so its clustering and topic features work on your production traffic.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;scripts/export-conversations.ts&lt;/strong&gt;
```typescript&lt;/p&gt;
&lt;p&gt;const dataset = initDataset({
  project: &amp;#39;my-project&amp;#39;,
  dataset: &amp;#39;prod-conversations&amp;#39;,
});&lt;/p&gt;
&lt;p&gt;for (const record of records) {
  dataset.insert({
    id: record.id, // upsert key: re-runs overwrite, never duplicate
    input: record.input,
    metadata: { ...record.metadata, production_output: record.output },
  });
}&lt;/p&gt;
&lt;p&gt;await dataset.flush();
```&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://www.braintrust.dev/docs/sdks/typescript/api-reference&quot;&gt;Braintrust TypeScript SDK reference&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 7: Score real answers with scorers and a judge&lt;/h3&gt;
&lt;p&gt;Now run an experiment. The task is a passthrough that returns the production output, so you&amp;#39;re scoring reality. Write deterministic scorers for anything you can verify with code. If your agent cites entities from your database, groundedness is a lookup, not a judgment call. Telemetry metadata gives you free scorers too: token efficiency and tool success rate come straight from the export.&lt;/p&gt;
&lt;p&gt;Save the LLM-as-judge for the one dimension code can&amp;#39;t reach (was the answer actually helpful?), and calibrate it periodically against human labels. When you&amp;#39;re ready to compare models or prompts, swap the passthrough task for a live call to your agent and run the same dataset through it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;evals/grounding.eval.ts&lt;/strong&gt;
```typescript&lt;/p&gt;
&lt;p&gt;// Tune to the token count of a normal conversation for your agent
const TOKEN_BUDGET = 15_000;&lt;/p&gt;
&lt;p&gt;// Fields written by the export script
type ConversationMetadata = {
  production_output: string;
  total_tokens: number;
  tool_calls: number;
  tool_errors: number;
};&lt;/p&gt;
&lt;p&gt;Eval&amp;lt;string, string, void, ConversationMetadata&amp;gt;(&amp;#39;my-project&amp;#39;, {
  data: initDataset({ project: &amp;#39;my-project&amp;#39;, dataset: &amp;#39;prod-conversations&amp;#39; }),
  // Passthrough: score what the agent actually said in production
  task: async (input, hooks) =&amp;gt; hooks.metadata.production_output,
  scores: [
    // Deterministic: every entity the answer cites must exist in your DB
    async ({ output, metadata }) =&amp;gt; ({
      name: &amp;#39;grounded&amp;#39;,
      score: await citationsExistInDb(output, metadata),
    }),
    // From telemetry: 1 within budget, then decays as tokens grow
    ({ metadata }) =&amp;gt; ({
      name: &amp;#39;efficiency&amp;#39;,
      score: Math.min(1, TOKEN_BUDGET / Math.max(1, metadata.total_tokens)),
    }),
    // From telemetry: share of tool calls that succeeded
    ({ metadata }) =&amp;gt; ({
      name: &amp;#39;tool_success&amp;#39;,
      score: metadata.tool_calls ? 1 - metadata.tool_errors / metadata.tool_calls : 1,
    }),
  ],
});
```&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://www.braintrust.dev/docs/sdks/typescript/quickstart&quot;&gt;Braintrust TypeScript SDK quickstart&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 8: Swap in the eval stack that fits you&lt;/h3&gt;
&lt;p&gt;Nothing above is Braintrust-specific except step 6. The pipeline has three separate stages: extract (`sentry agent-conversation list`), map (plain TypeScript), and load (your tool&amp;#39;s SDK). To change platforms, you rewrite one function. Good options:&lt;/p&gt;
&lt;p&gt;The fastest way to adapt it: give the spec to your coding agent. This prompt has everything this recipe covered, including the traps.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.braintrust.dev/&quot;&gt;Braintrust&lt;/a&gt;&lt;/strong&gt; (cloud): logs, datasets, and experiments with upserts via `dataset.insert({ id })`. This is what this recipe uses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://langfuse.com/docs/evaluation/experiments/datasets&quot;&gt;Langfuse&lt;/a&gt;&lt;/strong&gt; (open source, self-hostable): `langfuse.dataset.createItem()` per record, then `dataset.runExperiment()`.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.promptfoo.dev/docs/configuration/test-cases/&quot;&gt;promptfoo&lt;/a&gt;&lt;/strong&gt; (local-first CLI): write records to a JSON tests file and run `npx promptfoo eval`. Scorers are inline JavaScript assertions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://arize.com/docs/phoenix/get-started/get-started-datasets-and-experiments&quot;&gt;Arize Phoenix&lt;/a&gt;&lt;/strong&gt; (open source, runs locally): upload a DataFrame with `client.datasets.create_dataset()` and run experiments against it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Prompt for your coding agent&lt;/strong&gt;
```markdown
Export my production AI conversations from Sentry into  as an
eval dataset.&lt;/p&gt;
&lt;p&gt;Extract: run `sentry agent-conversation list &lt;org&gt; --period 30d --limit 1000
--json` (Sentry CLI 0.44 or later). Each item in `data` is one conversation
with conversationId, title, firstInput, lastOutput, flow, llmCalls,
toolCalls, toolErrors, toolNames, totalTokens, totalCost, and webUrl.
Sentry computes the totals per conversation. Do not fetch or sum raw spans.&lt;/p&gt;
&lt;p&gt;Map one record per conversation: id = conversationId, input = firstInput,
output = lastOutput, metadata = the other fields. Skip rows where firstInput
or lastOutput is null (recording was off). Filter out test and seeded
conversations by ID convention. Sort by totalTokens, descending. For
per-turn detail or the model of each turn, run
`sentry agent-conversation view &lt;org&gt;/&lt;id&gt; --json`.&lt;/p&gt;
&lt;p&gt;Load: upsert into  keyed on the conversation id so re-runs sync
instead of duplicating. Then write scorers: deterministic checks for anything
verifiable against my data (grounding is a lookup), and an LLM judge only
for genuinely subjective quality.
```&lt;/p&gt;
&lt;h2&gt;Tips&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Pro tips:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sort the export by total tokens descending. The heaviest conversations are where agents thrash, and they make the most revealing eval cases.&lt;/li&gt;
&lt;li&gt;Tag records from telemetry alone (`thrash`, `tool-error`, `repeated-tool-call`) so you can slice experiments by failure mode without hand-labeling anything.&lt;/li&gt;
&lt;li&gt;Promote a production answer to the dataset&amp;#39;s `expected` field only after it passes your deterministic checks. Verified-clean conversations become golden rows for regression testing.&lt;/li&gt;
&lt;li&gt;Scorers are code, and code goes blind silently. Keep a self-test that plants known hallucinations and asserts they get caught, so a scorer regression fails loudly instead of inflating your scores.&lt;/li&gt;
&lt;li&gt;Real and synthetic data aren&amp;#39;t either/or: production conversations cover what users actually do, synthetic cases cover what they haven&amp;#39;t done yet. Use both.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Watch out for:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Summing tokens or cost from raw spans yourself. `gen_ai.invoke_agent` spans aggregate their children, so a naive sum doubles every figure. The CLI totals are already correct per conversation, so use them as they are.&lt;/li&gt;
&lt;li&gt;Exporting with the defaults. `sentry agent-conversation list` returns 25 conversations from the last 7 days unless you set `--limit` and `--period`.&lt;/li&gt;
&lt;li&gt;Treating `lastOutput` as the final answer in every case. It is the last assistant message Sentry recorded, so a long or interrupted run can end on a step in the middle. Use `sentry agent-conversation view` to check the turns of a conversation before you score it.&lt;/li&gt;
&lt;li&gt;Running an older Sentry CLI. The `agent-conversation` command needs version 0.44 or later.&lt;/li&gt;
&lt;li&gt;Exporting your own noise. Seeded demo data and smoke-test conversations will poison the dataset unless you filter them out by ID convention.&lt;/li&gt;
&lt;li&gt;Using an LLM judge for things code can check. Asking a judge &amp;quot;is this grounded?&amp;quot; invites a hallucinated verdict when the answer is a database lookup away.&lt;/li&gt;
&lt;li&gt;Recording inputs and outputs on routes that handle sensitive data. They&amp;#39;re on by default, and you&amp;#39;re exporting these payloads to a third-party eval platform, so opt out on those routes or scrub PII before it leaves Sentry.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Frequently asked questions&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Q: Do I have to use Braintrust?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: No. Only the load stage is Braintrust-specific. The extract and map stages work with any target. Langfuse and Arize Phoenix are open source and self-hostable, and promptfoo runs entirely locally from a JSON file. Step 8 has the mapping for each.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: Should I use the MCP server or the CLI?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: Both work, and they read the same Sentry data. The MCP server is good for interactive exploration from a coding agent, but it truncates responses to save context. For bulk export with full inputs and outputs, use `sentry agent-conversation list --json`.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: What about user privacy and PII?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: In Sentry JavaScript SDK v11, prompts and outputs are recorded by default. Turn them off globally with `dataCollection: { genAI: { inputs: false, outputs: false } }` in `Sentry.init()`, or per integration with `recordInputs: false` and `recordOutputs: false`. Sentry also supports server-side data scrubbing before storage. Remember the export sends this data to your eval platform too, so apply the same scrubbing standards there, or self-host the eval tool.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: Does this replace synthetic eval datasets?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: No, it complements them. Synthetic datasets are guesses about user behavior; production conversations are the ground truth of it. Real traffic tells you what to fix today, synthetic cases protect flows real users haven&amp;#39;t exercised yet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: How many conversations do I need before this is useful?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: Fewer than you&amp;#39;d think. A few dozen real conversations sorted by token volume will surface your agent&amp;#39;s actual failure modes (thrashing, tool errors, hallucinated citations) faster than hundreds of synthetic cases.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: Can I compare different models with this?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: Yes, two ways. If your app already routes users to different models, get the model of each turn with `sentry agent-conversation view &lt;id&gt; --json`, add it to the record metadata, and group your experiment by it. To test a model your users haven&amp;#39;t touched, swap the passthrough task for a live call to your agent with the candidate model and run the same dataset.`}
/&amp;gt;&lt;/p&gt;
&lt;h2&gt;Automating AI agent error triage with Claude’s scheduled tasks&lt;/h2&gt;
&lt;p&gt;Triage means going through what broke and deciding what needs a fix. With AI agents that’s harder than usual since problems often don’t show up as errors. A tool call fails and the agent retries until it works, or hallucinates a plausible but incorrect answer. Reading every conversation yourself takes too long, so why not have an agent read them for you every morning?&lt;/p&gt;
&lt;p&gt;This recipe sets up a scheduled task in Claude that runs once a day and connects to Sentry through the MCP server. It pulls stats (collected with Agent Tracing) via the MCP for the last 24 hours of conversations, then picks a mix of failed and successful runs to read closely.&lt;/p&gt;
&lt;p&gt;When your scheduled task finds something new, like a broken tool, an agent stuck in a loop, or a run that costs a lot more than it should, it checks your tracker (Linear in this recipe) for an existing ticket and files one if there isn’t one yet. You don’t necessarily need a scheduled task for this either. A cron job or GitHub Action that runs a prompt on a schedule works the same way.&lt;/p&gt;
&lt;p&gt;Copy the prompt below to have your coding agent guide you through setting it up, so you can have relevant tickets filed before your day starts. You can also &lt;a href=&quot;https://sentry.io/cookbook/automate-ai-agent-triage-claude-routines/&quot;&gt;check out the full AI agent triage recipe&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; Agents](&lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/explore/agents/&quot;&gt;https://sentry.io/orgredirect/organizations/:orgslug/explore/agents/&lt;/a&gt;) in Sentry. You should see your agent&amp;#39;s conversations listed with duration, message counts, errors, cost, and tool calls.&lt;/p&gt;
&lt;p&gt;Each conversation shows user inputs, model outputs, tool calls, errors, latency, and cost. This is the data your Claude Routine will query.&lt;/p&gt;
&lt;h3&gt;Step 3: Configure the Sentry MCP connector in Claude&lt;/h3&gt;
&lt;p&gt;Your Claude Routine needs to authenticate with Sentry to query your agent&amp;#39;s traces. Set up the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP connector&lt;/a&gt; in Claude so the routine can call Sentry APIs directly.&lt;/p&gt;
&lt;p&gt;If you want the routine to file tickets automatically, enable the Linear MCP connector (or whichever project tracker you use). The routine will search for existing tickets before creating new ones to avoid duplicates.&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP server documentation&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 4: Create the Claude Routine with a triage prompt&lt;/h3&gt;
&lt;p&gt;Create a new Claude Routine and set it to run daily (mornings work well since the routine analyzes overnight activity). The prompt should tell Claude to use the Sentry MCP to pull aggregate stats, sample conversations with and without errors, and file tickets for new findings.&lt;/p&gt;
&lt;p&gt;Keep the prompt intentionally plain. The Sentry MCP handles the data retrieval. Let the LLM handle the judgment: deciding whether a pattern is new, whether an error is self-correcting, and whether a conversation&amp;#39;s conclusion actually follows from its reasoning.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Claude Routine prompt (template)&lt;/strong&gt;
```text
Use the Sentry MCP to look at the last 24hr of &lt;product&gt;
conversations and analyze the results. In particular look for errors
that might be happening during the &lt;product_stage&gt;, say if our tools
are broken. But also sample some success conversations as well to see
if they look correct with secondary inspection.&lt;/p&gt;
&lt;p&gt;If you come across new findings/errors, record them in a Linear ticket
for the &lt;linear_project&gt; project.
```&lt;/p&gt;
&lt;h3&gt;Step 5: Review and tune the routine&amp;#39;s output&lt;/h3&gt;
&lt;p&gt;After the first few runs, review what the routine flags. A good triage routine catches the following categories of problems.&lt;/p&gt;
&lt;p&gt;That last category, reasoning failures, is why sampling successful conversations matters. A conversation can complete without a single tool error and still reach the wrong conclusion. That only shows up when something checks the reasoning against the verdict.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Tool call failures&lt;/strong&gt;: tools returning errors, especially at higher-than-normal rates&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hallucinated inputs&lt;/strong&gt;: the agent guessing at parameters (like repo names or project slugs) instead of looking them up&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Latency anomalies&lt;/strong&gt;: conversations with unusually long hangs before an error, which may signal backend issues distinct from the agent&amp;#39;s own mistakes&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Agent loops&lt;/strong&gt;: conversations with far more tool calls than typical, suggesting the agent is thrashing&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost anomalies&lt;/strong&gt;: runs that are significantly more expensive than the baseline&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reasoning failures&lt;/strong&gt;: conversations that completed without tool errors but reached the wrong conclusion&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Sample triage output&lt;/strong&gt;
```text
Analyzed the last 24h of Seer conversations (~445-551 total,
~11k tool calls). No verdict-quality problems found. Spot-checked
several conversations and the agent&amp;#39;s reasoning was well-grounded,
correctly downgrading when it lacked repo access rather than
fabricating.&lt;/p&gt;
&lt;p&gt;Did find an efficiency issue worth tracking: ~21% of conversations
(83/400 sampled) hit at least one tool error, mostly self-corrected
retries. Root causes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Search Code sometimes gets fed malformed repo_name values
(e.g. appending a monorepo subpath onto the real slug, like
&amp;quot;foo/bar/applications/integrations&amp;quot; instead of &amp;quot;foo/bar&amp;quot;),
causing &amp;quot;repository not found&amp;quot; until it retries.&lt;/li&gt;
&lt;li&gt;sometimes gets a guessed-wrong project_slug (e.g.
  &amp;quot;mobile&amp;quot;) before self-correcting on retry with the right
  slug + time window.&lt;/li&gt;
&lt;li&gt;Two conversations showed 30-56s hangs before an opaque
&amp;quot;internal error&amp;quot;, a real backend latency signal, distinct
from the guessing pattern above, worth an engineering look.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Filed Linear ticket AIML-123 with full details, example
conversation links, and error-rate tables.
```&lt;/p&gt;
&lt;h2&gt;Tips&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Pro tips:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Keep the routine&amp;#39;s prompt short and focused on judgment. The Sentry MCP handles data retrieval, so the prompt only needs to describe what to look for and where to file findings.&lt;/li&gt;
&lt;li&gt;Have the routine search your project tracker for existing tickets before filing new ones. This prevents duplicates for known issues.&lt;/li&gt;
&lt;li&gt;Sample both errored and successful conversations. Reasoning failures only surface when you check whether the agent&amp;#39;s conclusion actually follows from its work.&lt;/li&gt;
&lt;li&gt;Sort sampled conversations by tool call count or token usage. The heaviest runs are where agents thrash and reveal the most about failure modes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Watch out for:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Only looking at conversations with tool errors. A conversation can complete cleanly and still reach the wrong conclusion.&lt;/li&gt;
&lt;li&gt;Hardcoding org-specific details in the routine prompt instead of using variables. This makes the routine harder to share or adapt.&lt;/li&gt;
&lt;li&gt;Writing overly detailed prompts that try to specify exact MCP queries. Let the LLM figure out how to query Sentry. Focus the prompt on what to look for, not how to look for it.&lt;/li&gt;
&lt;li&gt;Not searching for existing tickets before filing. The routine will create duplicates for issues that are already tracked.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Frequently asked questions&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Q: Does this only work with Claude Routines?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: No. The approach works with any scheduled LLM workflow. Claude Routines just handle the scheduling and MCP connectivity out of the box. You could build the same thing with a cron job that calls an LLM API, a GitHub Action, or any automation tool that can run a prompt on a schedule.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: What if my agent doesn&amp;#39;t use tool calls?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: Tool error triage is one part of this routine, but the conversation sampling and reasoning checks work regardless. If your agent is a pure chat model, focus the routine on sampling conversations and checking whether the responses are grounded and accurate.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: How many conversations can the routine process?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: The routine doesn&amp;#39;t read every conversation in full. It pulls aggregate stats first, then samples a subset for detailed inspection. In practice, routines process 400-800 conversations per run, with the Sentry MCP handling the heavy querying.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: How much does this cost in LLM tokens?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: The routine reads aggregate stats and sampled conversations, not every conversation in full. A typical daily run processes a few dozen sampled conversations. The token cost depends on your LLM pricing, but it&amp;#39;s comparable to a single longer chat session.`}
/&amp;gt;&lt;/p&gt;
&lt;h2&gt;Track Vercel AI SDK costs and LLM calls&lt;/h2&gt;
&lt;p&gt;Every LLM call your app makes will cost you money, and the bill usually shows up as one number at the end of the month. That doesn’t tell you much about which model, route, or conversation is behind it. Agent Tracing can track that cost per call and per conversation, and this recipe shows how with a Next.js (we support &lt;a href=&quot;https://docs.sentry.io/product/agents/getting-started/&quot;&gt;other libraries and languages&lt;/a&gt; too) app that uses the Vercel AI SDK.&lt;/p&gt;
&lt;p&gt;This recipe turns on tracing with the Sentry Next.js SDK, which also turns on Sentry’s Vercel AI integration by default. Give each AI SDK call a name and set a conversation ID, and all the turns of one chat then stay together.&lt;/p&gt;
&lt;p&gt;In Sentry, the &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/explore/agents&quot;&gt;Explore → Agents&lt;/a&gt; view shows estimated cost by model, agent runs, and tool calls over time, plus a list of every conversation with its individual cost and errors. Open a conversation to read it in its entirety, then follow it into the full trace to see whether it’s a slow tool call coming from your database, the network, or the AI provider that’s responsible for the issue.&lt;/p&gt;
&lt;p&gt;Copy the prompt below to have your coding agent guide you through tracking costs, or &lt;a href=&quot;https://sentry.io/cookbook/monitor-ai-agent-costs-nextjs/&quot;&gt;follow the full AI agent cost recipe&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Monitor AI agent spend with Sentry dashboards and alerts&lt;/h2&gt;
&lt;p&gt;An unintended cost and usage spike can go unnoticed for days until the bill ends up in your inbox. Keeping an eye on your agent costs is helpful, but you still have to remember to look. A shared dashboard and an alert that fires when spend jumps mean you hear about it almost instantly. &lt;a href=&quot;https://sentry.io/product/seer/autofix/&quot;&gt;Seer Autofix&lt;/a&gt; can act on these alerts, find the root cause, and draft a PR before you’ve even had time to check out the issue.&lt;/p&gt;
&lt;p&gt;This recipe runs a script that uses the &lt;a href=&quot;https://cli.sentry.dev/&quot;&gt;Sentry CLI&lt;/a&gt; to build an LLM Spend per User dashboard. It contains eight widgets covering cost, tokens, top spenders, and models. The script also sets up two hourly alerts on spend. One alert fires when spend crosses a limit set by you, and the other fires when spend moves outside its normal range. Both alerts can be tuned to your liking in &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/monitors/&quot;&gt;Monitors&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It works with any stack that sends standard &lt;code&gt;gen_ai&lt;/code&gt; span data to Sentry, so there’s no need for a specific framework or language. Sentry works out an estimate for the cost on its own from the token counts, so your app doesn’t have to send any dollar amounts.&lt;/p&gt;
&lt;p&gt;Copy the prompt below to have your coding agent guide you through setting up dashboards, or &lt;a href=&quot;https://sentry.io/cookbook/monitor-ai-agent-spend-with-dashboards-and-alerts/&quot;&gt;follow the full AI spend dashboard recipe&lt;/a&gt;.&lt;/p&gt;
 &lt;project-slug&gt;
\`\`\`

&lt;p&gt;Learn more: &lt;a href=&quot;https://github.com/getsentry/sentry-agent-tracing-examples/tree/main/dashboards&quot;&gt;Dashboard script source&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 4: Review the spend dashboard&lt;/h3&gt;
&lt;p&gt;Open the URL that the script prints, or select &lt;strong&gt;LLM Spend per User&lt;/strong&gt; in &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/dashboards/&quot;&gt;Dashboards&lt;/a&gt;. If the user or conversation widgets are empty, add `user.id`, `user.username`, or `gen_ai.conversation.id` to your model-call spans.&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://docs.sentry.io/product/dashboards/&quot;&gt;Sentry Dashboards&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Step 5: Tune the spend monitors&lt;/h3&gt;
&lt;p&gt;Open &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/monitors/&quot;&gt;Monitors&lt;/a&gt; and adjust `LLM spend rate high` and `LLM spend anomaly` for your traffic and budget. To route notifications during creation, set `WORKFLOW_ID` and, optionally, `OWNER=user:&lt;id&gt;` or `OWNER=team:&lt;id&gt;` before you run the script. &lt;a href=&quot;https://www.youtube.com/watch?v=2FKg1rJpZk4&amp;t=451s&quot;&gt;Watch the alert workflow in the demo video&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Learn more: &lt;a href=&quot;https://docs.sentry.io/product/monitors-and-alerts/&quot;&gt;Sentry Monitors and Alerts&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Tips&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Pro tips:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start with the included thresholds in a test project, then replace them with limits that match your model mix and traffic.&lt;/li&gt;
&lt;li&gt;Set `user.id` to a stable internal identifier and `user.username` to a useful display value. Do not use email addresses unless your data policy allows them.&lt;/li&gt;
&lt;li&gt;Use `TITLE` to give a second dashboard a distinct name when you need separate views for environments or teams.&lt;/li&gt;
&lt;li&gt;Add an alert workflow so a detector routes to the team that can reduce spend or stop a faulty agent.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Watch out for:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Removing the `gen_ai.operation.type:ai_client` filter from cost or token widgets. Parent agent spans can repeat the model-call values and double the totals.&lt;/li&gt;
&lt;li&gt;Assuming Sentry receives a dollar value from the SDK. Sentry derives `gen_ai.cost.total_tokens` from token counts and its model price list.&lt;/li&gt;
&lt;li&gt;Running the script again without deleting or renaming the existing dashboard and detectors. The duplicate-name guard stops the run on purpose.&lt;/li&gt;
&lt;li&gt;Treating the starting thresholds as production defaults. A suitable hourly limit depends on your traffic, models, and budget.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Frequently asked questions&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Q: Does the script work only with Flue or Eve?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: No. It works with any Sentry project that receives the standard GenAI span attributes used by the queries.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: Why does the cost field end with `total_tokens`?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: That is the current Sentry field name for derived model cost. Its value is in US dollars, not tokens.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: Why are the per-user widgets empty?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: Your model-call spans need `user.id`. The top-spenders and conversation tables also use `user.username` and `gen_ai.conversation.id`.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q: Can the alerts notify Slack or assign an owner?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A: Yes. Connect an existing alert workflow with `WORKFLOW_ID`, and set `OWNER` to a Sentry user or team when you create the detectors.`}
/&amp;gt;&lt;/p&gt;
&lt;h2&gt;Send Vercel AI SDK telemetry to Sentry via OpenTelemetry&lt;/h2&gt;
&lt;p&gt;If you already have OpenTelemetry set up with traces going to a different tool, moving all of that to a new setup just to get AI data into Sentry sounds like a lot of work. This recipe isn’t replacing anything you’ve already set up. It keeps your existing pipeline and uses your coding agent to add Sentry as an additional destination.&lt;/p&gt;
&lt;p&gt;Once Sentry starts receiving your OTel spans, LLM calls show up in the &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/explore/traces&quot;&gt;Trace Explorer&lt;/a&gt; and in &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/explore/agents&quot;&gt;Explore → Agents&lt;/a&gt;. These agent spans appear next to the rest of your app, database, and other spans from the same requests.&lt;/p&gt;
&lt;p&gt;This specific recipe uses Next.js with the &lt;code&gt;@vercel/otel&lt;/code&gt; SDK already set up, but the same setup works with other environments, like a standalone Node.js server, a worker, or a serverless function.&lt;/p&gt;
&lt;p&gt;Copy the prompt below to have your coding agent set up Sentry to receive OTel agent spans, or &lt;a href=&quot;https://sentry.io/cookbook/vercel-ai-sdk-otel-sentry/&quot;&gt;check out the full OpenTelemetry recipe&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Get started with Agent Tracing&lt;/h2&gt;
&lt;p&gt;All five of these recipes start from the same place, an agent sending traces to Sentry. Our &lt;a href=&quot;https://docs.sentry.io/product/agents/getting-started/&quot;&gt;Set up Agent Tracing docs&lt;/a&gt; get you through the very basics, while our recipes go a little deeper into specific use cases. The Sentry Cookbook has even more &lt;a href=&quot;https://sentry.io/cookbook/?feature=Agent+Tracing&quot;&gt;Agent Tracing recipes&lt;/a&gt; you can follow, including ones for monitoring your AI coding tools like Claude Code and OpenCode.&lt;/p&gt;
&lt;p&gt;If something breaks along the way, at least this time you’ll have the &lt;a href=&quot;https://sentry.io/solutions/ai-observability/&quot;&gt;AI observability&lt;/a&gt; needed to tell you (or your agent) where things went wrong. If you’re somehow brand new to Sentry and still read through this whole blog post, you can &lt;a href=&quot;https://sentry.io/signup/&quot;&gt;sign up for free&lt;/a&gt; today to get started with Agent Tracing. The Sentry MCP and CLI usage is included in every plan, so giving your agents debugging context is quicker than you think.&lt;/p&gt;
</content:encoded></item><item><title>How a beagle-shaped AI agent ships code to madewithvuejs.com</title><link>https://blog.sentry.io/beagle-ai-agent-workflows/</link><guid isPermaLink="true">https://blog.sentry.io/beagle-ai-agent-workflows/</guid><description>Meet Milly, the AI agent at madewithvuejs.com that scouts content, ships features, and fixes production bugs using GitHub, Linear, and the Sentry MCP.</description><pubDate>Tue, 27 Oct 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;This is a guest post from Armin Ulrich, a fullstack developer, and founder of &lt;a href=&quot;https://placid.app&quot;&gt;placid.app&lt;/a&gt;. He also created the &lt;a href=&quot;https://madewithnetwork.com/&quot;&gt;MadeWith* network&lt;/a&gt; where he shares his projects and allows other developers to share theirs.&lt;/em&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Two people and one beagle run the project showcase &lt;a href=&quot;https://madewithvuejs.com&quot;&gt;madewithvuejs.com&lt;/a&gt;. The beagle is actually an AI agent that we have added to our workflows, but we&amp;#39;re very fond of her by now. Milly is part of the team, scouting for content, building features and sniffing for bugs.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to walk you through her setup a little bit and share how she connects to our tools.&lt;/p&gt;
&lt;h2&gt;Meet Milly, a beagle-shaped AI agent&lt;/h2&gt;
&lt;p&gt;Milly started as an experiment with AI to automate the search for new content and has grown into a mix of developer, researcher and assistant. Her beagle identity has no deeper meaning than making interacting with her a bit more fun.&lt;/p&gt;
&lt;p&gt;She&amp;#39;s a cloud-hosted model inside a custom harness that lives on our own infrastructure. We try out different models regularly, so the harness is what actually makes her who she is.&lt;/p&gt;
&lt;h3&gt;What Milly does&lt;/h3&gt;
&lt;p&gt;A day in the life of this beagle is strictly scheduled:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Content scout:&lt;/strong&gt; In the morning, she starts her daily content run. She is looking for new and exciting projects made with Vue.js using our collection of sources and curation criteria. She then compares her finds with our database to avoid duplicates, and sends us her finished reports via Discord.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check for tasks:&lt;/strong&gt; At regular intervals, she checks our Linear board for issues that are assigned to her: small features, human bug reports, our comments and feedback on open issues. She is allowed to build things and even push them live.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bug sniff:&lt;/strong&gt; In the evening, she checks our Sentry dashboard for production issues, triages and fixes automatically (or decides she needs human assistance).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;How our agent is connected to our tools&lt;/h3&gt;
&lt;p&gt;Milly has access to multiple tools we use, just like any other team member.&lt;/p&gt;
&lt;p&gt;The most important one is, of course, our GitHub repo where she can create and merge branches, commit code changes and push. In our case, a push immediately triggers a deployment, so she can actually ship. For any change, Milly writes test cases and runs the full test suite before she deploys. She also verifies against the live site afterwards.&lt;/p&gt;
&lt;p&gt;In our issue tracker Linear, she is installed as an agent user that we can delegate tickets to and @mention directly. She links all of her related GitHub commits in the resources section of her tickets, so we can always retrace her actions.&lt;/p&gt;
&lt;p&gt;Milly is connected to our application monitoring service Sentry via their MCP. She has read-only access to all production issues including their context like traces and logs, and can resolve the issues in Sentry once she fixes them. Milly can also use Sentry&amp;#39;s own debugging agent Seer as an on-demand tool to analyze complex issues and use its hypotheses for her own workflow.&lt;/p&gt;
&lt;p&gt;The Discord connection is created via a Discord bot application. She posts her content scouts in a dedicated channel every day.&lt;/p&gt;
&lt;h3&gt;A real-life agentic workflow scenario&lt;/h3&gt;
&lt;p&gt;Last month, we reworked our project submission form. We had to ramp up the spam protection, and updated the form structure with some new sections and fields. The project started with a Linear issue including the brief, assigned to Milly.&lt;/p&gt;
&lt;p&gt;Milly grabbed the ticket, and first had some questions about the backend integration and backwards-compatibility with existing submissions. After a few checks and two feedback rounds for small styling issues, she deployed the new form.&lt;/p&gt;
&lt;p&gt;As it happens, two bugs crept in with that deployment. One was reported by us, and the other was found by monitoring production.&lt;/p&gt;
&lt;p&gt;We noticed the first one when going through submissions in our backend and found that some project descriptions seemed to be truncated. Milly was sent to investigate, and she found it to be a quite inconsequential bug: The output of the field was printed as an HTML column in the backend. When a submitter wrote something about Vue&amp;#39;s &lt;code&gt;&amp;lt;script setup&amp;gt;&lt;/code&gt; in their description or used any other unclosed tag, everything after it was swallowed. Nothing was lost: The full description was safe in the database, and Milly quickly fixed the output.&lt;/p&gt;
&lt;p&gt;The second bug was actually worse. The following week, Sentry reported a recurring &lt;code&gt;SQLSTATE[22001] Data too long&lt;/code&gt; error that Milly started working on. She found that the form validated some fields at max 2,024 characters, while the database columns were only 2,000 characters long. Anything between 2,000-2,024 characters in these fields would make the INSERT fail, without telling the submitter. We actually lost 8 submissions to this before Milly fixed it, but she did so before we even had time to look at the dashboard.&lt;/p&gt;
&lt;p&gt;Milly deliberately has a lot of autonomy and can independently work on features and bugs, which makes her so valuable for us. She isn&amp;#39;t always perfect, but with her tooling she can also catch and fix the things that break.&lt;/p&gt;
&lt;h2&gt;Milly&amp;#39;s leash length&lt;/h2&gt;
&lt;p&gt;We created some safeguards around Milly&amp;#39;s work.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Milly&amp;#39;s goal is to build and ship features and bugfixes:&lt;/strong&gt; If the brief is too big or too vague, she stops and asks us for clarification and decisions until she has everything she needs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Milly follows process templates:&lt;/strong&gt; For fixing a bug, for example, she creates a branch → reproduces the bug → writes a test and watches it fail against the broken code → writes a fix → runs the full test suite → merges to &lt;code&gt;main&lt;/code&gt; → pushes → verifies against the live site → writes up a report and hands the ticket to us for closing → resolves the matching Sentry issue if there is one. The &amp;quot;red-before-green&amp;quot; habit is especially valuable in this template: She writes the test so it fails before her own fix to correctly verify it later.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Some things, Milly never does without involving us first:&lt;/strong&gt; She does not write to production data, touch credentials or &lt;code&gt;.env&lt;/code&gt; variables, force-push or change the server config. Some of these are hard limits (her credentials don&amp;#39;t allow them), others are rules in her standing instructions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Milly doesn&amp;#39;t have the last word:&lt;/strong&gt; The agent is not allowed to close Linear tickets. This final check belongs to us, so we can keep an overview of what&amp;#39;s happening.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Madewithvuejs.com is a content-focused site. It is automatically backed up, there is no user data except submissions, everything is reversible, and bugs do not affect paying customers the way they would for a SaaS. If Milly breaks something, her blast radius is minimal. Considering that, we can give Milly a pretty long leash and just let her try new tasks and workflows.&lt;/p&gt;
&lt;h2&gt;From content scout to shipping code&lt;/h2&gt;
&lt;p&gt;Milly was initially built just to automate daily content scouts. Then we added one skill and tool after another. GitHub when we allowed her to actually build things, Linear when we wanted a structured way to assign work, Sentry so she could fix production errors on her own.&lt;/p&gt;
&lt;p&gt;We&amp;#39;re a small team, and we&amp;#39;ve gained a lot more capacity for shipping ideas. What makes this possible is simple infrastructure: A task schedule, workflow descriptions, a test suite, a list of things the agent never touches on her own, and the same tried and tested tools we already use for product work.&lt;/p&gt;
&lt;p&gt;The unglamorous setup work gives us the confidence to let Milly try new things. Put in that work and you might end up with a new loyal companion, too. Woof! 🐾&lt;/p&gt;
</content:encoded></item><item><title>Should you use a log or a metric?</title><link>https://blog.sentry.io/when-you-need-a-metric/</link><guid isPermaLink="true">https://blog.sentry.io/when-you-need-a-metric/</guid><description>If you already log it, you can probably just count the logs. Here&apos;s when a question deserves its own metric, shown with one signup handler.</description><pubDate>Thu, 22 Oct 2026 09:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Logs are for debugging, metrics are for analysis. Log what was true when something happened, so you can reconstruct it later. Make it a metric when there&amp;#39;s a number you&amp;#39;ll track over time, even when nothing is wrong.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Since Sentry added &lt;a href=&quot;https://blog.sentry.io/logs-generally-available/&quot;&gt;Logs&lt;/a&gt; and &lt;a href=&quot;https://blog.sentry.io/introducing-application-metrics/&quot;&gt;Application Metrics&lt;/a&gt;, there are now two ways to record that something happened in your app, and they can look pretty similar: &lt;code&gt;Sentry.logger.info(&amp;quot;user.signup&amp;quot;)&lt;/code&gt; versus &lt;code&gt;Sentry.metrics.count(&amp;quot;user.signup&amp;quot;)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Both store attributes, both include &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/logs/#shared-attributes&quot;&gt;shared context&lt;/a&gt; automatically, and both can be filtered, grouped, and counted. So when you&amp;#39;re instrumenting your code, which one do you reach for?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;ve read &lt;a href=&quot;https://blog.sentry.io/errors-traces-logs-metrics-when-to-reach-for-what/&quot;&gt;when to reach for errors, traces, logs, and metrics&lt;/a&gt;, you know we&amp;#39;ve covered this before. Logs and metrics are the two that trip people up most, and one signup flow is enough to show when to use which.&lt;/p&gt;
&lt;h2&gt;Logs, metrics, and traces, oh my!&lt;/h2&gt;
&lt;p&gt;Let&amp;#39;s say you&amp;#39;re writing a signup handler. Someone fills out the form and hits submit. What do you want to know about that event?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Who signed up?&lt;/li&gt;
&lt;li&gt;How did they sign up: which method, which plan?&lt;/li&gt;
&lt;li&gt;Did it work, and if not, why not?&lt;/li&gt;
&lt;li&gt;How long did it take, and where did the time go?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There&amp;#39;s one more question you&amp;#39;ll want to answer eventually, whether signups are going up or down, but that&amp;#39;s a different kind of question. You&amp;#39;ll come back to it.&lt;/p&gt;
&lt;p&gt;One of those four you get for free, just by having tracing enabled.&lt;/p&gt;
&lt;p&gt;This trace shows that a signup happened, how long it took, and where the time went. Almost half of this request is the email provider, and most of the rest is hashing the password. You didn&amp;#39;t have to add anything to your code to learn that.&lt;/p&gt;
&lt;p&gt;Traces also tie errors, logs, and metrics to the request they came from, so everything about a single signup shows up in one place.&lt;/p&gt;
&lt;p&gt;But &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/tracing/configure-sampling/&quot;&gt;traces are sampled&lt;/a&gt;. You don&amp;#39;t need every signup request to debug a slow one, just enough to see where the time goes, so most are dropped to cut noise and cost. Sentry &lt;a href=&quot;https://docs.sentry.io/concepts/key-terms/extrapolation/&quot;&gt;extrapolates&lt;/a&gt; from the ones it keeps, which gets you close, but not an exact count.&lt;/p&gt;
&lt;p&gt;Logs and metrics aren&amp;#39;t sampled. You can still filter them in the software development kit (SDK), but whatever you send is kept, so you can rely on them when it counts.&lt;/p&gt;
&lt;p&gt;The trace answered &lt;em&gt;how long&lt;/em&gt;. Who signed up, how, and whether it worked, you record yourself.&lt;/p&gt;
&lt;p&gt;A few attributes describe this signup and apply to everything you send about it. Rather than repeating them in every call, you can set them as &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/logs/#shared-attributes&quot;&gt;shared attributes&lt;/a&gt; on the scope (available since SDK v10.61.0) to apply them automatically.&lt;/p&gt;
&lt;p&gt;You know the signup method and the user&amp;#39;s plan as soon as the request comes in, so set them at the top of the handler. That way they&amp;#39;re included even if the signup fails:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.setAttributes({ &amp;quot;signup.method&amp;quot;: &amp;quot;email&amp;quot;, plan: &amp;quot;free&amp;quot; });
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once the user is created, &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/configuration/apis/#setUser&quot;&gt;add them&lt;/a&gt; too:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.setUser({ id: user.id });
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From then on, everything sent in that &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/enriching-events/scopes/&quot;&gt;scope&lt;/a&gt; carries &lt;code&gt;user.id&lt;/code&gt;: errors, logs, &lt;em&gt;and&lt;/em&gt; metrics.&lt;/p&gt;
&lt;h2&gt;Log it or count it&lt;/h2&gt;
&lt;p&gt;With that context set, the log and the metric only need to record what happened:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.logger.info(&amp;quot;user.signup&amp;quot;, { outcome: &amp;quot;completed&amp;quot; });

Sentry.metrics.count(&amp;quot;user.signup&amp;quot;, 1, {
  attributes: { outcome: &amp;quot;completed&amp;quot; },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The log has a severity, &lt;code&gt;info&lt;/code&gt; here, which is really just another attribute, and a message, which can be any string.&lt;/p&gt;
&lt;p&gt;The counter has a name, which plays the same role as the log&amp;#39;s message, and a number for how much to add.&lt;/p&gt;
&lt;p&gt;So why have both? They seemingly do the same job: either one gives you an exact count of signups.&lt;/p&gt;
&lt;p&gt;What separates them is the question you&amp;#39;re asking.&lt;/p&gt;
&lt;h2&gt;Questions a log answers&lt;/h2&gt;
&lt;h3&gt;What happened to this user?&lt;/h3&gt;
&lt;p&gt;A user emails support: &amp;quot;I signed up with my email address and never got a verification email.&amp;quot;&lt;/p&gt;
&lt;p&gt;You want their logs.
In the signup flow, the log already has their &lt;code&gt;user.id&lt;/code&gt;, signup method, and plan, all from the scope.&lt;/p&gt;
&lt;p&gt;But as written, the signup log says nothing about the verification email. Sending it is a separate event with its own outcome, so give it its own log:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.logger.info(&amp;quot;email.verification_sent&amp;quot;, {
  &amp;quot;email.provider&amp;quot;: provider.name,
  &amp;quot;email.status&amp;quot;: response.status, // accepted | rejected | deferred
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Both logs are tied to the same trace, so the signup&amp;#39;s trace shows them together. You can also start from the logs and filter on their &lt;code&gt;user.id&lt;/code&gt;. The email status you were looking for is right there, with a link to the trace.&lt;/p&gt;
&lt;p&gt;The trace could have told you all of this, but traces are sampled, so this user&amp;#39;s trace was probably dropped. Their logs weren&amp;#39;t.&lt;/p&gt;
&lt;h3&gt;Why are signups failing?&lt;/h3&gt;
&lt;p&gt;After this morning&amp;#39;s release, a few people tell you they can&amp;#39;t get past the signup form.&lt;/p&gt;
&lt;p&gt;Every signup attempt writes the same &lt;code&gt;user.signup&lt;/code&gt; log, once, whether it worked or not. A failed one gets &lt;code&gt;outcome: &amp;quot;failed&amp;quot;&lt;/code&gt;, a &lt;code&gt;warn&lt;/code&gt; level, and the reason. There&amp;#39;s no user yet, but &lt;code&gt;signup.method&lt;/code&gt; and &lt;code&gt;plan&lt;/code&gt; are already on the scope:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.logger.warn(&amp;quot;user.signup&amp;quot;, {
  outcome: &amp;quot;failed&amp;quot;,
  reason: &amp;quot;email_taken&amp;quot;, // email_taken | invalid_email | captcha_failed
  &amp;quot;client.user_agent&amp;quot;: userAgent,
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is a judgment call. Normally, I&amp;#39;d create a metric to count failed signups. &lt;em&gt;But&lt;/em&gt; if this log line is &lt;em&gt;always&lt;/em&gt; going to be there, you can count it instead.&lt;/p&gt;
&lt;p&gt;Group by &lt;code&gt;reason&lt;/code&gt;, chart it over time, and a spike in &lt;code&gt;captcha_failed&lt;/code&gt; after a release shows up just as clearly as it would on a counter.&lt;/p&gt;
&lt;p&gt;So should failed signups be a metric too? That depends less on the count and more on what you&amp;#39;re going to build on it.&lt;/p&gt;
&lt;h2&gt;What a metric is for&lt;/h2&gt;
&lt;p&gt;Both of those questions start with something going wrong, or at least looking off.&lt;/p&gt;
&lt;p&gt;A log is insurance. You write it at a decision point in your code so that later, when someone asks what happened, you (or your agent) can reconstruct it. Most logs are never read, and that&amp;#39;s fine. For what&amp;#39;s worth writing at those decision points, and what to leave out, Ben Coe&amp;#39;s &lt;a href=&quot;https://blog.sentry.io/logging-best-practices/&quot;&gt;When and what should I be logging?&lt;/a&gt; is a good guide.&lt;/p&gt;
&lt;p&gt;That also makes logs easy to change. Plenty are temporary, added to watch a new feature or an edge case and removed a release later. Messages get reworded in code review, and whole levels get dropped to cut costs. None of that matters while you&amp;#39;re debugging. It matters a lot if a dashboard is counting them. If someone decides &lt;code&gt;info&lt;/code&gt; logs aren&amp;#39;t worth sending in production, every chart built on them flatlines.&lt;/p&gt;
&lt;p&gt;A metric is a question you decide to ask in advance. You go and look at the answer on purpose, even when nothing is wrong. Naming one is a commitment: dashboards and alerts get built on it, nobody renames it on a whim, and filtering your logs doesn&amp;#39;t touch it.&lt;/p&gt;
&lt;p&gt;So for failed signups: if the failure rate is a number your team watches, count it too, with the same &lt;code&gt;user.signup&lt;/code&gt; counter and &lt;code&gt;outcome: &amp;quot;failed&amp;quot;&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Questions worth a metric&lt;/h2&gt;
&lt;h3&gt;Are signups going up?&lt;/h3&gt;
&lt;p&gt;This is the question you set aside earlier. It&amp;#39;s about the trend across all signups.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s what the &lt;code&gt;user.signup&lt;/code&gt; counter is for. It picks up the same scope attributes as the log, so you can break it down by &lt;code&gt;plan&lt;/code&gt; or &lt;code&gt;signup.method&lt;/code&gt; with no extra work. Group by &lt;code&gt;signup.method&lt;/code&gt; and you can see how people sign up, and whether a dip hits everyone or just one method:&lt;/p&gt;
&lt;p&gt;If that dip lines up with a release, pull up the failed-signup logs from that window.&lt;/p&gt;
&lt;h3&gt;Where do new signups drop off?&lt;/h3&gt;
&lt;p&gt;A signup is the start of a funnel, not the end of one. Say you have a key performance indicator (KPI) for how many people get from an email signup to their first project:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;user.signup → email.verified → project.created
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each step is a counter, emitted wherever it happens. Those places might be different services, and the steps might be days apart, so the signup&amp;#39;s scope is long gone by the time someone clicks the verification link. Pass the attributes you want to group by again at each step:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.metrics.count(&amp;quot;email.verified&amp;quot;, 1, {
  attributes: { &amp;quot;signup.method&amp;quot;: user.signupMethod, plan: user.plan },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Chart the three counters side by side and you can see the whole funnel, one step at a time:&lt;/p&gt;
&lt;p&gt;Group each step by &lt;code&gt;plan&lt;/code&gt; and you might find that people signing up for a paid plan verify almost every time while free signups don&amp;#39;t. That&amp;#39;s not a bug. Nothing errored, nothing was slow, and no log would ever have been written about someone who simply never came back. It&amp;#39;s a product question, and it&amp;#39;s one you have to decide to ask.&lt;/p&gt;
&lt;p&gt;Group by release instead and it becomes an engineering question again: did a change to the signup form hurt the verification step?&lt;/p&gt;
&lt;p&gt;A metric won&amp;#39;t follow one person through those steps, build cohorts, or tell you about retention. That&amp;#39;s what product analytics tools are for. But for &amp;quot;is this step getting worse?&amp;quot;, having the funnel next to your releases, errors, and traces makes it a cheap question to ask.&lt;/p&gt;
&lt;h3&gt;Is the email queue backing up?&lt;/h3&gt;
&lt;p&gt;So far every metric here is a &lt;a href=&quot;https://docs.sentry.io/product/metrics/#counters&quot;&gt;counter&lt;/a&gt;: something happened, add one. Sentry has &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/metrics/#metric-types&quot;&gt;two other metric types&lt;/a&gt;, and each one answers a different shape of question.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;https://docs.sentry.io/product/metrics/#gauges&quot;&gt;gauge&lt;/a&gt; records what a value is right now, like queue depth or open connections. You&amp;#39;re sampling a level, not counting events, so adding the samples up wouldn&amp;#39;t mean anything. What you care about is how high it got, or where it sat on average. Emit it on a timer, or each time your email worker checks its queue:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.metrics.gauge(&amp;quot;email.queue_depth&amp;quot;, queue.size(), {
  attributes: { &amp;quot;email.provider&amp;quot;: &amp;quot;acme-mail&amp;quot; },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If verification emails start getting deferred, a climbing queue tells you before the next &amp;quot;I never got my verification email&amp;quot; ticket does.&lt;/p&gt;
&lt;h3&gt;How long does it take to verify?&lt;/h3&gt;
&lt;p&gt;A &lt;a href=&quot;https://docs.sentry.io/product/metrics/#distributions&quot;&gt;distribution&lt;/a&gt; records &lt;em&gt;how much&lt;/em&gt;, with a &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/metrics/#units&quot;&gt;unit&lt;/a&gt;, and keeps the spread of values so you can chart averages and percentiles. For anything timed inside a request, a trace already gives you that. A distribution is helpful when a trace can&amp;#39;t measure the value: a size, a ratio like the one that &lt;a href=&quot;https://blog.sentry.io/metrics-caught-ai-size-estimate/&quot;&gt;caught a file-size estimate off by up to 83%&lt;/a&gt;, or the gap between two requests days apart. How long people take to verify their email is one of those:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.metrics.distribution(&amp;quot;email.time_to_verify&amp;quot;, (Date.now() - user.createdAt) / 1000, {
  unit: &amp;quot;second&amp;quot;,
  attributes: { &amp;quot;signup.method&amp;quot;: user.signupMethod, plan: user.plan },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Emit it next to the &lt;code&gt;email.verified&lt;/code&gt; counter, with the same attributes. Group by plan and paid users verify in about three minutes at the median, free users in about 23. At p95, free users take nearly two hours. No trace could show you that, because the clock starts in one request and stops in another.&lt;/p&gt;
&lt;h2&gt;Choosing between a log and a metric&lt;/h2&gt;
&lt;p&gt;When you&amp;#39;re instrumenting something, ask what kind of question you&amp;#39;re answering:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&quot;left&quot;&gt;Ask yourself&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;It&amp;#39;s&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;Reach for&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;In the signup example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;What was true when this happened?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;State&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Log&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Why did this signup fail?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;What do I want to know about how it&amp;#39;s used, or whether it works as expected?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;A question you chose&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Metric&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Are signups going up?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Log state at the point where the code makes a decision. Give a metric a name that reads like the question.&lt;/p&gt;
&lt;p&gt;One quick tell: if you want a count while debugging something you already log, count the logs. If it&amp;#39;s a number you&amp;#39;ll track over time, make it a metric.&lt;/p&gt;
&lt;p&gt;That doesn&amp;#39;t mean logging everything just so you can count it later. You&amp;#39;d be paying to store every event to compute a number you could have emitted directly as a metric. Count the logs you&amp;#39;d already be sending to debug with.&lt;/p&gt;
&lt;h2&gt;What&amp;#39;s worth sending to Sentry&lt;/h2&gt;
&lt;p&gt;You might already be sending logs and metrics somewhere else. You don&amp;#39;t need to move all of it, and you shouldn&amp;#39;t pay to store the same data twice.&lt;/p&gt;
&lt;p&gt;Keep access logs, infrastructure and platform logs, compliance archives, CPU and memory graphs, and debug-level chatter where they already live. They&amp;#39;re high volume, and you rarely need them next to a stack trace.&lt;/p&gt;
&lt;p&gt;Send Sentry the application logs you&amp;#39;d reach for while debugging, like the failed signup and the deferred verification email, plus the handful of metrics that answer questions you chose. In Sentry, those sit next to the error, the trace, and the release that changed things. When an issue comes in, you (or your agent) can go from the stack trace to what your code was doing at that moment without switching tools or lining up timestamps.&lt;/p&gt;
&lt;p&gt;You can draw that line in the SDK, before anything leaves your app. &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/logs/#filter-logs&quot;&gt;&lt;code&gt;beforeSendLog&lt;/code&gt;&lt;/a&gt; sees every log and can drop it by returning &lt;code&gt;null&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.init({
  beforeSendLog: (log) =&amp;gt; {
    if (log.level === &amp;quot;debug&amp;quot;) return null;
    return log;
  },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you already log through &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/pino/&quot;&gt;Pino&lt;/a&gt; or &lt;code&gt;console&lt;/code&gt;, the integrations take a list of levels. Forward the levels you debug with to Sentry, and everything else keeps going wherever it goes today:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.init({
  integrations: [
    Sentry.pinoIntegration({ log: { levels: [&amp;quot;info&amp;quot;, &amp;quot;warn&amp;quot;, &amp;quot;error&amp;quot;] } }),
  ],
});
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;A few practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Use the same name and the same attribute keys on both.&lt;/strong&gt; If &lt;code&gt;user.signup&lt;/code&gt; is a log and a counter, the filter that finds a spike in one finds the rows behind it in the other.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Choose what you send on purpose.&lt;/strong&gt; A few metrics you&amp;#39;ll look at and logs from code you debug. Each one should be meaningful, so don&amp;#39;t track something just because you might need it later.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Set the user and shared attributes once, at the top.&lt;/strong&gt; &lt;code&gt;setUser()&lt;/code&gt; and scope attributes keep every log and metric in the request consistent, without repeating the same keys in every call.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decide what &lt;code&gt;setUser()&lt;/code&gt; sends.&lt;/strong&gt; An ID you can look up is usually enough. Leave out the email address unless you mean to collect it. See &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/data-management/sensitive-data/&quot;&gt;Scrubbing Sensitive Data&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Give gauges and distributions a unit.&lt;/strong&gt; Sentry uses it to display and convert values, so a time in seconds doesn&amp;#39;t get charted as a plain number.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Don&amp;#39;t keep the only copy of something on a span.&lt;/strong&gt; Spans are great for timing. They&amp;#39;re also sampled.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Getting started with Logs and Metrics in Sentry&lt;/h2&gt;
&lt;p&gt;Logs and metrics both come with the Sentry SDK, and they&amp;#39;re connected to everything else. When a metric moves, the logs from the same requests are one filter away, and from there it&amp;#39;s one click to the trace and any error.&lt;/p&gt;
&lt;p&gt;Developer, Team, and Business plans include 5 GB of logs and 5 GB of Application Metrics per month. On Team and Business, more of either is $0.50/GB. The changelog has the details for &lt;a href=&quot;https://sentry.io/changelog/logs-are-generally-available/&quot;&gt;Logs&lt;/a&gt; and &lt;a href=&quot;https://sentry.io/changelog/application-metrics-are-now-ga/&quot;&gt;Application Metrics&lt;/a&gt;, and the docs cover setup for &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/logs/&quot;&gt;logs&lt;/a&gt; and &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/metrics/&quot;&gt;metrics&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Logs are on by default from SDK v10.71.0. On earlier versions, set &lt;code&gt;enableLogs: true&lt;/code&gt; in &lt;code&gt;Sentry.init&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Let your agent do the setup&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://docs.sentry.io/ai/agent-plugin/&quot;&gt;Sentry agent plugin&lt;/a&gt; works with Claude Code, Cursor, Codex, and Grok:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npx @sentry/agent-plugin install
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then ask it to apply the same patterns to your code:&lt;/p&gt;
</content:encoded></item><item><title>We just gave a million dollars to Open Source maintainers</title><link>https://blog.sentry.io/another-year-another-1-000-000-to-open-source-maintainers/</link><guid isPermaLink="true">https://blog.sentry.io/another-year-another-1-000-000-to-open-source-maintainers/</guid><description>Sentry raised its Open Source budget from $750,000 to $1,000,000 this year. Here&apos;s why, and how we split it among maintainers and foundations.</description><pubDate>Wed, 21 Oct 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The title is not a joke. For those of you who know Sentry, you know we&amp;#39;ve been giving back to Open Source maintainers since our early days in whatever ways we could. But around five years ago we really started to &lt;a href=&quot;https://blog.sentry.io/we-just-gave-154-999-dollars-and-89-cents-to-open-source-maintainers/&quot;&gt;give in a more meaningful way&lt;/a&gt;. This year we increased our budget from &lt;a href=&quot;https://blog.sentry.io/another-year-another-750-000-to-open-source-maintainers/&quot;&gt;$750,000&lt;/a&gt; to $1,000,000.&lt;/p&gt;
&lt;p&gt;Why? Well, we know the obvious value of Open Source software and believe the companies who use it should support the people who build and maintain it. Open Source software is like the ultimate cheat code – shared libraries, frameworks, and tools that have years of community support and development that we can use off the shelf and focus time on building other products, services, and businesses. Sentry benefits from this every day. Funding these projects and maintainers keeps the flywheel going.&lt;/p&gt;
&lt;p&gt;LLMs have extended what we can build with these tools. But the AI stack also depends on Open Source. That&amp;#39;s one reason why we added NumFOCUS to the foundations we supported in 2025 and continue to support this year too. (The more you know: NumFOCUS is a nonprofit that helps fund the Open Source scientific computing tools used in today&amp;#39;s AI development.)&lt;/p&gt;
&lt;h2&gt;The Open Source Pledge&lt;/h2&gt;
&lt;p&gt;All this said, Sentry is not alone. This October marks the second anniversary of the &lt;a href=&quot;https://opensourcepledge.com/&quot;&gt;Open Source Pledge&lt;/a&gt;, an initiative we started to help recognize companies who felt the same way we did and highlight Open Source maintainers. As of today, the Pledge&amp;#39;s 37 &lt;a href=&quot;https://opensourcepledge.com/members/&quot;&gt;member companies&lt;/a&gt; have paid a total of $8,421,535 to Open Source maintainers and foundations.&lt;/p&gt;
&lt;p&gt;We also started the Open Source Pledge because, to put it bluntly, we don&amp;#39;t believe in freeloading. Here&amp;#39;s a little PSA on why you should join the Pledge.&lt;/p&gt;
&lt;p&gt;Just two months ago in August, the Python Software Foundation (PSF) &lt;a href=&quot;https://pyfound.blogspot.com/2026/08/how-aws-powers-pypi-and-psf.html&quot;&gt;shared&lt;/a&gt; that its AWS spend had increased by ~69% from July of previous year. This shouldn&amp;#39;t be a surprise to us because our prompt-engineered applications are driving more Python development, agents are installing packages, and more CI runs are all contributing to the demand on registries. The PSF also highlighted the need for more funding to grow the team operating this infrastructure.&lt;/p&gt;
&lt;p&gt;Our ask: Consider giving back and &lt;a href=&quot;https://opensourcepledge.com/join/&quot;&gt;join the Open Source Pledge&lt;/a&gt;, it&amp;#39;s easy.&lt;/p&gt;
&lt;h2&gt;How did we distribute the $1,000,000?&lt;/h2&gt;
&lt;p&gt;We sent $495,000 to &lt;a href=&quot;https://thanks.dev/home&quot;&gt;thanks.dev&lt;/a&gt; for them to distribute to hundreds of maintainers whose packages we use. Here&amp;#39;s a &lt;a href=&quot;https://thanks.dev/o/sentry-261019&quot;&gt;table of recipients&lt;/a&gt;, updated as more maintainers accept our sponsorships. thanks.dev makes the process of funding dependencies simple, from scanning your dependency tree to handling the actual payments. This means there&amp;#39;s no excuse to not pay maintainers, so your company should sign up to thanks.dev, too.&lt;/p&gt;
&lt;p&gt;Then we used &lt;a href=&quot;https://funds.ecosyste.ms/&quot;&gt;ecosyste.ms Funds&lt;/a&gt; to give $100,000 to globally critical packages across the Python, Django, Ruby, Rust, JS and Go ecosystems.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve been keeping up to date with software supply chain research, so we know that the dependency trees provided by package managers have important blind spots: so-called &lt;a href=&quot;https://vlad.website/binary-dependencies-identifying-the-hidden-packages-we-all-depend-on/&quot;&gt;phantom dependencies&lt;/a&gt;. To support &lt;em&gt;all&lt;/em&gt; the maintainers we depend on, even those that are hard to find, we partnered with researchers from the &lt;a href=&quot;https://stewardshiplab.org/&quot;&gt;Software Stewardship Lab&lt;/a&gt; to identify and pay dozens of Sentry dependencies that regular dependency analyses completely miss.&lt;/p&gt;
&lt;p&gt;Of course, we&amp;#39;re supporting Open Source foundations, too.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Amount&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Python Software Foundation&lt;/td&gt;
&lt;td&gt;$60,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PHP Foundation&lt;/td&gt;
&lt;td&gt;$45,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ruby Central&lt;/td&gt;
&lt;td&gt;$40,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Django Software Foundation&lt;/td&gt;
&lt;td&gt;$40,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Packagist&lt;/td&gt;
&lt;td&gt;$35,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open Source Initiative&lt;/td&gt;
&lt;td&gt;$30,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rust Foundation&lt;/td&gt;
&lt;td&gt;$15,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Geomys&lt;/td&gt;
&lt;td&gt;$15,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenJS Foundation&lt;/td&gt;
&lt;td&gt;$10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NumFOCUS&lt;/td&gt;
&lt;td&gt;$10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alpine Linux&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;And the &lt;a href=&quot;https://syntax.fm/&quot;&gt;Syntax&lt;/a&gt; team also spent $100,000 of our budget to sponsor the following projects:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Amount&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;antirez (maintainer of dwarfstar)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;biomejs&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;coolLabs&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;davidkpiano (maintainer of XState)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dmno-dev (maintainer of varlock)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;donmccurdy (maintainer of Three.js)&lt;/td&gt;
&lt;td&gt;$1,250&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FFmpeg&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FLOSSAfrica Pool&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FreeCAD&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;gnachman (maintainer of iTerm2)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jellyfin&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mholt (maintainer of Caddy)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mrdoob (maintainer of Three.js)&lt;/td&gt;
&lt;td&gt;$1,250&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mswjs&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OBS&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pnpm&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Software Stewardship Lab&amp;#39;s Burnout in Open Source Fund&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tannerlinsley (maintainer of TanStack)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tinchox5 (maintainer of SnapDOM)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vanilagy (maintainer of Mediabunny)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;webpro (maintainer of knip.dev)&lt;/td&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WestLangley (maintainer of Three.js)&lt;/td&gt;
&lt;td&gt;$2,500&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;A big thank you to all you Open Source maintainers. We appreciate your work!&lt;/p&gt;
</content:encoded></item><item><title>The Sentry Android SDK is now 20-30% faster!</title><link>https://blog.sentry.io/android-sdk-faster-startup/</link><guid isPermaLink="true">https://blog.sentry.io/android-sdk-faster-startup/</guid><description>Sentry Android SDK 8.54.0 initializes 20-30% faster. See how build-time options, faster DSN parsing, and shared thread pools cut startup cost.</description><pubDate>Tue, 20 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Our team has been working hard over the last quarter to make sure Sentry&amp;#39;s Android SDK is faster for you. During this time, we reduced the Android SDK init time by 20-30%. We also reduced memory allocation, fixed memory leaks, and reduced background CPU time by up to 10%.&lt;/p&gt;
&lt;p&gt;We measured that 20-30% improvement from version 8.43.0 to 8.54.0 by measuring the duration of &lt;code&gt;SentryAndroid.init&lt;/code&gt;. This is the work on the critical path of your application&amp;#39;s startup. Just to clarify, this isn&amp;#39;t the full app startup time and this was measured with a synthetic demo app. However, we also asked some of our customers to try these new versions and run benchmarks, and they have also reported similar startup performance findings to our 20-30% startup time improvement. (Apps are all very different and use different Sentry features, so we feel the need to point out that real world performance may differ.)&lt;/p&gt;
&lt;p&gt;The Sentry SDK is super popular! We have roughly 4.5 billion app starts per day across sentry-react-native, sentry-java and sentry-flutter (sentry-flutter and sentry-react-native include sentry-java). Around 50% of app starts are cold starts. We can conservatively estimate that the 25% cold start time reduction leads to an average savings of 10ms. Using that data, we will save users and CPUs 6,250 hours per day, which translates to roughly 2.3 MWh per year. That&amp;#39;s roughly 1/5 of one US household&amp;#39;s yearly electricity consumption or, for our EU readers, roughly 2/3 of an EU household&amp;#39;s electricity consumption.&lt;/p&gt;
&lt;p&gt;How did we achieve this? We measured bottlenecks in the SDK using Perfetto traces. We dove into customer-reported performance issues and memory leaks in our backlog. Of course, we also used our favorite LLMs (yup, it&amp;#39;s 2026 after all) to analyze the startup path together with the &lt;a href=&quot;https://github.com/google/perfetto/tree/main/ai/skills&quot;&gt;Perfetto agent skill&lt;/a&gt;. We made over 40 different changes to improve the performance of the Sentry Android SDK. With every change, we benchmarked it with our new Android Macrobenchmark setup to see if the changes led to a statistically significant performance improvement.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Please report performance issues (or any other issue in our SDK) by &lt;a href=&quot;https://github.com/getsentry/sentry-java/issues&quot;&gt;creating a new issue in the sentry-java repo&lt;/a&gt; on GitHub so we can keep improving! Include Perfetto traces when possible.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In a world where gobs of code are bogging down codebases, the easiest way to speed up your app is simply to bump up the Sentry Android SDK version to the latest. In order to benefit from these improvements, please use the latest version of the Android SDK (at least 8.54.0 for performance improvements) together with the latest version of the Sentry Android Gradle Plugin (at least 6.20.0 for performance improvements). And please send us your feedback on how it affects your app&amp;#39;s startup performance! We&amp;#39;d love to hear it.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re curious what changed under the hood, we&amp;#39;ll highlight just a few of the 40 changes we made. For the full list, please read the Performance section of the changelog entries between &lt;a href=&quot;https://github.com/getsentry/sentry-java/releases/tag/8.43.2&quot;&gt;release 8.43.2&lt;/a&gt; and &lt;a href=&quot;https://github.com/getsentry/sentry-java/releases#release-8.54.0&quot;&gt;release 8.54.0&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Resolving manifest data at build time&lt;/h2&gt;
&lt;p&gt;The Sentry SDK allows you to set options in the Android Manifest. Parsing the manifest is notoriously slow and certainly much slower than reading options from bytecode. To speed this up, we write the options from the Sentry Android Gradle Plugin into the app&amp;#39;s bytecode at build time. When the SDK detects the options are set in the bytecode, it skips reading the manifest entirely. This alone in benchmarks led to a 6.5% improvement. See &lt;a href=&quot;https://github.com/getsentry/sentry-java/pull/5976&quot;&gt;sentry-java #5976&lt;/a&gt; and &lt;a href=&quot;https://github.com/getsentry/sentry-android-gradle-plugin/pull/1405&quot;&gt;sentry-android-gradle-plugin #1405&lt;/a&gt; for more details.&lt;/p&gt;
&lt;p&gt;We also did this for class availability, instead of using reflection to determine if the classes were available, since reflection is slow. See &lt;a href=&quot;https://github.com/getsentry/sentry-java/pull/5875&quot;&gt;sentry-java #5875&lt;/a&gt; and &lt;a href=&quot;https://github.com/getsentry/sentry-android-gradle-plugin/pull/1404&quot;&gt;sentry-android-gradle-plugin #1404&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Faster DSN parsing&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;java.net.URI&lt;/code&gt; is notoriously slow and handles many edge cases that we don&amp;#39;t need. When benchmarked, it could take up to 6ms, blocking the SDK init time. We replaced it with a lighter weight custom &lt;a href=&quot;https://docs.sentry.io/concepts/key-terms/dsn-explainer/&quot;&gt;DSN&lt;/a&gt; parser that on the same benchmark took just 1µs (~6000x faster). See &lt;a href=&quot;https://github.com/getsentry/sentry-java/pull/5448&quot;&gt;sentry-java #5448&lt;/a&gt; for more details.&lt;/p&gt;
&lt;h2&gt;Moving threads to shared executor pools&lt;/h2&gt;
&lt;p&gt;Threads in ART (Android Runtime) will &lt;a href=&quot;https://android.googlesource.com/platform/art/+/refs/heads/main/runtime/thread.cc#711&quot;&gt;dedicate a 1MB stack to each thread&lt;/a&gt;. There were several places in the SDK where we were creating one-off threads instead of re-using our shared executor pools. The fix here is straightforward: use our existing thread executor pools instead. The hard part is verifying that the code is still correct.&lt;/p&gt;
&lt;p&gt;We did this in 3 places in the code, which reduces our SDK heap size by 3MB in addition to the savings of not initializing and garbage collecting these threads. See &lt;a href=&quot;https://github.com/getsentry/sentry-java/pull/5670&quot;&gt;sentry-java #5670&lt;/a&gt;, &lt;a href=&quot;https://github.com/getsentry/sentry-java/pull/5819/changes&quot;&gt;sentry-java #5819&lt;/a&gt;, and &lt;a href=&quot;https://github.com/getsentry/sentry-java/pull/5814/&quot;&gt;sentry-java #5814&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Benchmark notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Benchmarks were run using the published versions of Sentry 8.43.0 and 8.54.0 using SAGP 6.20.0 on a Pixel 3 with locked clocks &lt;a href=&quot;https://github.com/getsentry/sentry-java/tree/main/sentry-android-integration-tests/sentry-uitest-android-macrobenchmark&quot;&gt;using our macrobenchmark&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Some modifications to the demo app were made to make the two versions compatible and add an &lt;code&gt;android.os.Trace&lt;/code&gt; to measure the same thing in both versions.&lt;/li&gt;
&lt;li&gt;4 interleaved rounds with 10 runs per round for a total of 40 rounds per version.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you&amp;#39;re new to Sentry, you can &lt;a href=&quot;https://sentry.io/signup/&quot;&gt;sign up for Sentry&lt;/a&gt; and refer to the docs to &lt;a href=&quot;https://docs.sentry.io/platforms/android/&quot;&gt;get started with the Sentry Android SDK&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>Sentry&apos;s Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates</title><link>https://blog.sentry.io/flutter-sdk-10/</link><guid isPermaLink="true">https://blog.sentry.io/flutter-sdk-10/</guid><description>Flutter SDK 10.0: streaming traces by default, accurate crash-free rates, dedicated app startup traces, and expanded Dio network error capture.</description><pubDate>Wed, 14 Oct 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Sentry&amp;#39;s Flutter SDK 10.0 makes streaming traces the default and changes how unhandled Flutter errors affect Release Health. Errors that leave your app running no longer mark the session as crashed, so your crash-free rate better reflects actual app crashes.&lt;/p&gt;
&lt;p&gt;The release also gives app startup its own trace on Android and iOS, simplifies logs and metrics setup, expands Dio network error capture, and respects Flutter&amp;#39;s sensitive-content markings in Replay and screenshots.&lt;/p&gt;
&lt;h2&gt;Streaming traces by default&lt;/h2&gt;
&lt;p&gt;Previously, the SDK waited for a transaction to end before sending its spans. In v10, it sends spans in batches as they finish. Automatic instrumentation uses this streaming model by default.&lt;/p&gt;
&lt;p&gt;If a screen loads its catalog but a recommendations request is still running, the completed catalog span can reach Sentry without waiting for the entire transaction to end.&lt;/p&gt;
&lt;p&gt;For custom instrumentation, wrap the work you want to measure with &lt;code&gt;Sentry.startSpan&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-dart&quot;&gt;await Sentry.startSpan(&amp;#39;submit-order&amp;#39;, (_) async {
  await submitOrder();
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The span ends when the callback completes, and the SDK queues it for sending.&lt;/p&gt;
&lt;p&gt;Tracing still requires a configured &lt;code&gt;tracesSampleRate&lt;/code&gt; or &lt;code&gt;tracesSampler&lt;/code&gt;. During the upgrade, migrate custom transaction and child-span calls to the streaming span APIs, and review transaction filters and sampling callbacks.&lt;/p&gt;
&lt;p&gt;If you need more time to migrate, you can keep transaction mode by setting &lt;code&gt;options.traceLifecycle = SentryTraceLifecycle.static&lt;/code&gt; during initialization.&lt;/p&gt;
&lt;h2&gt;More accurate crash-free rates&lt;/h2&gt;
&lt;p&gt;An unhandled Flutter error doesn&amp;#39;t necessarily crash your app. Flutter can report the error and keep running, but previous SDK versions marked the session as crashed, lowering your crash-free rate.&lt;/p&gt;
&lt;p&gt;In v10, these errors are still captured in Sentry, but they no longer mark the session as crashed. The session stays running. If it ends without an app crash, it&amp;#39;s classified as &lt;code&gt;unhandled&lt;/code&gt;. If the app later crashes, the session is classified as &lt;code&gt;crashed&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;App startup gets its own trace&lt;/h2&gt;
&lt;p&gt;On Android and iOS, v10 records startup as a separate &lt;code&gt;app.start&lt;/code&gt; root with its own sampling decision. It was previously attached to the first navigation transaction.&lt;/p&gt;
&lt;p&gt;The startup breakdown includes root-widget attachment, Flutter frame builds, and first-frame rasterization, making it easier to see which part of startup is taking time.&lt;/p&gt;
&lt;p&gt;You can also extend the measurement to include work beyond the first frame, such as loading the data your initial screen needs. Call &lt;code&gt;SentryFlutter.extendAppStart()&lt;/code&gt; before the first frame renders, then &lt;code&gt;SentryFlutter.finishExtendedAppStart()&lt;/code&gt; when that work finishes.&lt;/p&gt;
&lt;p&gt;Review startup dashboards and custom sampling rules during the upgrade. A sampler that only accepts &lt;code&gt;ui.load&lt;/code&gt; roots may exclude the new app-start trace.&lt;/p&gt;
&lt;h2&gt;Simpler logs and metrics setup&lt;/h2&gt;
&lt;p&gt;In v10, calling &lt;code&gt;Sentry.logger&lt;/code&gt; or &lt;code&gt;Sentry.metrics&lt;/code&gt; sends telemetry without a separate enable flag. The &lt;code&gt;enableLogs&lt;/code&gt; and &lt;code&gt;enableMetrics&lt;/code&gt; options have been removed. You can still filter logs and metrics with &lt;code&gt;beforeSendLog&lt;/code&gt; and &lt;code&gt;beforeSendMetric&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you use &lt;code&gt;sentry_logging&lt;/code&gt;, &lt;code&gt;LoggingIntegration&lt;/code&gt; now forwards records as Sentry logs starting at &lt;code&gt;Level.INFO&lt;/code&gt; by default.&lt;/p&gt;
&lt;p&gt;If you only want the integration to create breadcrumbs and error events, set &lt;code&gt;minSentryLogLevel&lt;/code&gt; to &lt;code&gt;Level.OFF&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Capture network failures that have no HTTP response&lt;/h2&gt;
&lt;p&gt;A failed request doesn&amp;#39;t always produce a status code. DNS resolution can fail, or a connection can time out before the server responds.&lt;/p&gt;
&lt;p&gt;In v10, &lt;code&gt;sentry_dio&lt;/code&gt; captures these failures when failed-request capture is enabled and the request matches your configured targets. Caller-initiated cancellations without a status code are excluded.&lt;/p&gt;
&lt;p&gt;HTTP integrations also use stable exception types, including &lt;code&gt;DioException&lt;/code&gt; in obfuscated builds. Dio events include response status and metadata in their response context.&lt;/p&gt;
&lt;p&gt;Review existing filters and grouping rules when upgrading. Dio now matches failed-request targets against the resolved full URL, so patterns written for relative paths may need updating.&lt;/p&gt;
&lt;h2&gt;Flutter&amp;#39;s sensitive-content markings apply to captures&lt;/h2&gt;
&lt;p&gt;If your app uses Flutter&amp;#39;s &lt;code&gt;SensitiveContent&lt;/code&gt; widgets, Sentry now masks widgets marked &lt;code&gt;sensitive&lt;/code&gt; or &lt;code&gt;autoSensitive&lt;/code&gt; by default in &lt;a href=&quot;https://sentry.io/product/session-replay/&quot;&gt;Session Replay&lt;/a&gt; and screenshots.&lt;/p&gt;
&lt;h2&gt;Upgrading to v10&lt;/h2&gt;
&lt;p&gt;Version 10 requires at least Dart 3.12, Flutter 3.44, Android API 26, iOS 15, and macOS 12. On iOS and macOS, the Sentry Flutter plugin now installs the native SDK through Swift Package Manager.&lt;/p&gt;
&lt;p&gt;Update &lt;code&gt;sentry_flutter&lt;/code&gt; and any directly declared Sentry integration packages to matching v10 releases:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;dependencies:
  sentry_flutter: ^10.0.0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also check these changes before upgrading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Profiling has been removed.&lt;/li&gt;
&lt;li&gt;Native failed-request capture on iOS and macOS is now opt-in.&lt;/li&gt;
&lt;li&gt;Breakpad is now the default native crash backend on Windows and Linux. Crash reports are uploaded after the application restarts.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href=&quot;https://docs.sentry.io/platforms/dart/guides/flutter/migration/v9-to-v10/&quot;&gt;v9-to-v10 migration guide&lt;/a&gt; covers these changes and includes an interactive checklist for the steps that apply to your app. If you run into problems, &lt;a href=&quot;https://github.com/getsentry/sentry-dart/issues&quot;&gt;open an issue on GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;New to Sentry? &lt;a href=&quot;https://sentry.io/signup/&quot;&gt;Create a free account&lt;/a&gt; to get started.&lt;/p&gt;
</content:encoded></item><item><title>Sentry JavaScript SDK v11 adds tracing for all JS platforms</title><link>https://blog.sentry.io/tracing-for-all-js-platforms/</link><guid isPermaLink="true">https://blog.sentry.io/tracing-for-all-js-platforms/</guid><description>Sentry&apos;s v11 JavaScript SDKs trace dependencies with a code transformer instead of OpenTelemetry instrumentation, adding Cloudflare Workers, Bun, and Deno</description><pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This post is about a recent change to the Sentry JavaScript
SDKs. If you don&amp;#39;t use Sentry with JavaScript, it may still be
useful as a look at how we made the change and why.&lt;/p&gt;
&lt;p&gt;In the Sentry JavaScript SDK v11, we rebuilt how our tracing
integrations work. While we still support
the OpenTelemetry standard (described in more detail below), we
now instrument your dependencies with a code transformer instead
of using the OpenTelemetry instrumentation classes as we did in
previous versions.&lt;/p&gt;
&lt;p&gt;This approach is built on the
&lt;a href=&quot;https://github.com/apm-js-collab&quot;&gt;apm-js-collab&lt;/a&gt; packages
&lt;code&gt;@apm-js-collab/code-transformer&lt;/code&gt; and
&lt;code&gt;@apm-js-collab/tracing-hooks&lt;/code&gt;, a shared effort across
&lt;a href=&quot;https://sentry.io/solutions/application-performance-monitoring/&quot;&gt;application performance monitoring (APM)&lt;/a&gt; vendors.&lt;/p&gt;
&lt;h2&gt;Injection &amp;amp; subscription&lt;/h2&gt;
&lt;p&gt;The new tracing instrumentations work in two parts. The first
injects &lt;a href=&quot;https://nodejs.org/api/diagnostics_channel.html&quot;&gt;diagnostics
channels&lt;/a&gt; into a
module as it&amp;#39;s being loaded, and the second listens on those
channel events to gather tracing information to send to Sentry.&lt;/p&gt;
&lt;h3&gt;Part 1: injection&lt;/h3&gt;
&lt;p&gt;When a supported module is loaded, either at runtime or as part
of a bundler job, the transform rewrites the source to wrap the
functions we care about in a
&lt;a href=&quot;https://nodejs.org/api/diagnostics_channel.html#diagnostics_channeltracingchannelnameorchannels&quot;&gt;&lt;code&gt;tracingChannel()&lt;/code&gt;&lt;/a&gt;
call.&lt;/p&gt;
&lt;p&gt;Each transform is driven by a config that names the package, a
semver range, a file inside the package, and a function:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;{
  channelName: &amp;#39;query&amp;#39;,
  module: {
    name: &amp;#39;mysql&amp;#39;,
    versionRange: &amp;#39;&amp;gt;=2.0.0 &amp;lt;3&amp;#39;,
    filePath: &amp;#39;lib/Connection.js&amp;#39;,
  },
  functionQuery: { expressionName: &amp;#39;query&amp;#39;, kind: &amp;#39;Auto&amp;#39; },
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once transformed, the &lt;code&gt;mysql&lt;/code&gt; module now publishes &lt;code&gt;start&lt;/code&gt;,
&lt;code&gt;end&lt;/code&gt;, &lt;code&gt;error&lt;/code&gt;, &lt;code&gt;asyncStart&lt;/code&gt;, and &lt;code&gt;asyncEnd&lt;/code&gt; diagnostics whenever
the &lt;code&gt;query&lt;/code&gt; function is called.&lt;/p&gt;
&lt;h3&gt;Part 2: subscription&lt;/h3&gt;
&lt;p&gt;Each Sentry integration (&lt;code&gt;mysqlIntegration&lt;/code&gt;, &lt;code&gt;redisIntegration&lt;/code&gt;,
&lt;code&gt;openAIIntegration&lt;/code&gt;, and so on) subscribes to its channels and
turns the events into Sentry spans.&lt;/p&gt;
&lt;p&gt;The subscriber holds off until it hears that its module is
actually loaded, to avoid creating excess channels.&lt;/p&gt;
&lt;h2&gt;Injection at run time &amp;amp; build time&lt;/h2&gt;
&lt;p&gt;The same transform runs in two places, and both can be active at
once. Either a module is loaded as part of a bundler, or from
&lt;code&gt;node_modules&lt;/code&gt;, but not both, so there&amp;#39;s no chance of
double-wrapping.&lt;/p&gt;
&lt;h3&gt;At run time&lt;/h3&gt;
&lt;p&gt;In recent Node versions, and in Deno 2.8.3 and up,
&lt;code&gt;Sentry.init()&lt;/code&gt; calls &lt;code&gt;registerDiagnosticsChannelInjection()&lt;/code&gt;
automatically, which will use the
&lt;a href=&quot;https://nodejs.org/api/module.html#moduleregisterhooksoptions&quot;&gt;&lt;code&gt;Module.registerHooks&lt;/code&gt;&lt;/a&gt;
API to instrument any supported modules loaded after that point.&lt;/p&gt;
&lt;p&gt;You can also register the hooks before your app loads at all, by
using the &lt;code&gt;import&lt;/code&gt; endpoints provided in the Deno and Node SDKs:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;node --import @sentry/node/import app.js
deno run --preload=@sentry/deno/import app.ts
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;At build time&lt;/h3&gt;
&lt;p&gt;If you are using &lt;code&gt;bun build&lt;/code&gt;, or bundling your program using a
bundler like Vite or esbuild, you can use the provided plugins to
instrument modules as they are built into the application.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;@sentry/node&lt;/code&gt; ships plugins for Vite, Rollup, webpack, and
esbuild; &lt;code&gt;@sentry/cloudflare&lt;/code&gt; includes one for Vite;
&lt;code&gt;@sentry/bun&lt;/code&gt; ships one for &lt;code&gt;bun build&lt;/code&gt;; Next.js wires the
webpack loader into both webpack and Turbopack.&lt;/p&gt;
&lt;p&gt;The plugin transforms each instrumented dependency as it is
bundled, and splices in a snippet that registers the module (and
its subscriber factory) on a global marker when the bundled
module is first evaluated.&lt;/p&gt;
&lt;p&gt;Usage is the same as any other Sentry bundler plugin:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;// vite.config.ts


  plugins: [sentryVitePlugin({ org: &amp;#39;...&amp;#39;, project: &amp;#39;...&amp;#39; })],
};
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;The approach before v11&lt;/h2&gt;
&lt;p&gt;Before v11, Sentry&amp;#39;s integrations were almost entirely based on
the OpenTelemetry instrumentation APIs.&lt;/p&gt;
&lt;p&gt;This let us use work from the open source community, but it also
had significant drawbacks that grew worse as more JavaScript
platforms gained popularity.&lt;/p&gt;
&lt;h3&gt;Inside an OpenTelemetry instrumentation&lt;/h3&gt;
&lt;p&gt;An OpenTelemetry instrumentation package, such as
&lt;code&gt;@opentelemetry/instrumentation-express&lt;/code&gt;, exports a class that
extends &lt;code&gt;InstrumentationBase&lt;/code&gt;. It declares a package name, a
supported semver range, and a &lt;code&gt;patch(moduleExports, version)&lt;/code&gt;
function. It can also declare &lt;code&gt;InstrumentationNodeModuleFile&lt;/code&gt;
entries to only patch individual files inside the package.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;registerInstrumentations()&lt;/code&gt; installs two loader hooks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;require-in-the-middle&lt;/code&gt;, which patches &lt;code&gt;Module._load&lt;/code&gt; for
CommonJS.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;import-in-the-middle&lt;/code&gt;, registered through &lt;code&gt;Module.register()&lt;/code&gt;
as an ECMAScript module (ESM) loader hook.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When an instrumented module loads, these loader hooks hand the
OpenTelemetry instrumentation the module&amp;#39;s exports object and its
base directory. The instrumentation reads
&lt;code&gt;&amp;lt;baseDir&amp;gt;/package.json&lt;/code&gt; off disk to find the version, checks it
against the declared range, and calls &lt;code&gt;patch(exports)&lt;/code&gt;. The patch
uses &lt;code&gt;shimmer&lt;/code&gt; to replace properties on the exports object in
place. The replacement function opens an OpenTelemetry span, and
Sentry&amp;#39;s &lt;code&gt;SentrySpanProcessor&lt;/code&gt;, &lt;code&gt;SentrySampler&lt;/code&gt;, and
&lt;code&gt;SentryContextManager&lt;/code&gt; convert that span into a Sentry span.&lt;/p&gt;
&lt;p&gt;ESM namespace objects are immutable, so &lt;code&gt;import-in-the-middle&lt;/code&gt;
cannot simply assign to them. It reads each module&amp;#39;s source from
disk, lexes the export names (&lt;code&gt;cjs-module-lexer&lt;/code&gt; for CommonJS, a
source scan for ESM), generates a replacement module that
re-exports through mutable local bindings, and wraps the
namespace in a &lt;code&gt;Proxy&lt;/code&gt;. Only then can shimmer&amp;#39;s assignment take
effect.&lt;/p&gt;
&lt;h3&gt;A chain of assumptions&lt;/h3&gt;
&lt;p&gt;Each step in this process assumes something about the
environment. Together they need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a live module loader that runs a &lt;code&gt;require()&lt;/code&gt; or a Node ESM
resolve/load hook for every dependency.&lt;/li&gt;
&lt;li&gt;Node&amp;#39;s loader internals, &lt;code&gt;Module._load&lt;/code&gt; and
&lt;code&gt;Module.register()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;the dependency present on disk as its own package directory,
with a readable &lt;code&gt;package.json&lt;/code&gt; and readable source files.&lt;/li&gt;
&lt;li&gt;exports that the patch can reassign.&lt;/li&gt;
&lt;li&gt;the hooks installed before the first import of the library.
OpenTelemetry warns when it is too late: &amp;quot;Module x has been
loaded before y so it might not work&amp;quot;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Limits placed on bundlers&lt;/h3&gt;
&lt;p&gt;After a bundler inlines a dependency, none of those assumptions
hold. &lt;code&gt;require(&amp;#39;express&amp;#39;)&lt;/code&gt; becomes a reference to a function
defined higher up in the same file, so there is no load event to
intercept. There is no &lt;code&gt;node_modules/express/package.json&lt;/code&gt; to
read, so the version check has nothing to check against. ESM
&lt;code&gt;const&lt;/code&gt; bindings inside a bundle cannot be reassigned, and a call
site may already hold a direct reference to the function before
any patch could run.&lt;/p&gt;
&lt;p&gt;The workarounds pushed the work back to the user: mark every
instrumented package as external, ship a &lt;code&gt;node_modules&lt;/code&gt; tree next
to the bundle, and accept that this undoes much of the reason for
bundling. Platforms that bundle your server code for you, such as
Vercel and Netlify, left no place to apply that workaround at
all.&lt;/p&gt;
&lt;h3&gt;Node.js only&lt;/h3&gt;
&lt;p&gt;Everything about this approach is Node-specific. When Sentry&amp;#39;s JS
SDK started down this path a few years ago, that was a reasonable
restriction, because Node.js was the main server-side JavaScript
runtime. As more runtimes became popular, it stopped being
reasonable.&lt;/p&gt;
&lt;p&gt;Cloudflare Workers have no part of the chain at all: no CommonJS
loader, no &lt;code&gt;Module.register()&lt;/code&gt;, no filesystem to read a
&lt;code&gt;package.json&lt;/code&gt; from, and module resolution happens at build time
in the Workers bundler. Bun and Deno implement much of the
user-facing portions of Node&amp;#39;s module system, but not
&lt;code&gt;Module._load&lt;/code&gt; patching, and the older &lt;code&gt;Module.register&lt;/code&gt; hooks
are empty stub functions on these platforms.&lt;/p&gt;
&lt;h3&gt;Ordering &amp;amp; preloads&lt;/h3&gt;
&lt;p&gt;Because ESM &lt;code&gt;import&lt;/code&gt; statements are hoisted and evaluated before
any code in the importing file, &lt;code&gt;Sentry.init()&lt;/code&gt; in an ESM entry
point runs after the libraries it wants to patch have already
been loaded. In v10, the options were
&lt;code&gt;--import=./instrument.mjs&lt;/code&gt;, the &lt;code&gt;@sentry/node/preload&lt;/code&gt; entry
point, &lt;code&gt;preloadOpenTelemetry()&lt;/code&gt;, and a
&lt;code&gt;SENTRY_PRELOAD_INTEGRATIONS&lt;/code&gt; environment variable for apps that
needed the patches installed early but could not configure the
SDK yet.&lt;/p&gt;
&lt;h3&gt;Weight&lt;/h3&gt;
&lt;p&gt;Every supported library needed its own
&lt;code&gt;@opentelemetry/instrumentation-*&lt;/code&gt; package, pinned against that
library&amp;#39;s internals, and Sentry had to keep the OpenTelemetry SDK
present (tracer provider, sampler, span processor, context
manager, and propagator) to receive the spans.&lt;/p&gt;
&lt;h2&gt;Fixing these problems in v11&lt;/h2&gt;
&lt;p&gt;The new approach replaces that entire chain, by injecting tracing
channels just like &lt;a href=&quot;https://blog.sentry.io/fixing-javascript-observability/&quot;&gt;the built-in channels library authors can
use&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Bundled server deployments just work.&lt;/strong&gt; A source transform
can run during a build, because it modifies the source code,
not the resulting object. The bundler plugin instruments
dependencies while they are being bundled, which a loader-hook
system cannot do at all. This covers Vercel and Netlify, which
bundle your server code for you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Non-Node runtimes work.&lt;/strong&gt; &lt;code&gt;node:diagnostics_channel&lt;/code&gt; is built
into Node, and is implemented by Bun, Deno, and Cloudflare
Workers (with &lt;code&gt;nodejs_compat&lt;/code&gt;). This was the main reason for
the change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It edits library code, not exports.&lt;/strong&gt; The transform wraps the
function inside the module&amp;#39;s own source, so it does not matter
whether a package freezes its exports, re-exports through a
barrel file, or has been inlined by a bundler. Export object
monkey-patching fails in all of those cases.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One ordering rule instead of several.&lt;/strong&gt; A library instruments
itself the moment it is loaded, so &lt;code&gt;preloadOpenTelemetry()&lt;/code&gt;,
&lt;code&gt;@sentry/node/preload&lt;/code&gt;, and &lt;code&gt;SENTRY_PRELOAD_INTEGRATIONS&lt;/code&gt; are
all gone. At runtime, a single registration call covers every
library.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Less to install, and less to go wrong.&lt;/strong&gt; The dependency tree
is cut back to just &lt;code&gt;@opentelemetry/api&lt;/code&gt;, instead of a tree of
instrumentation packages, and &lt;code&gt;@sentry/node-core&lt;/code&gt; has been
folded back into &lt;code&gt;@sentry/node&lt;/code&gt;. &lt;code&gt;generateInstrumentOnce()&lt;/code&gt;,
&lt;code&gt;SentryContextManager&lt;/code&gt;, &lt;code&gt;SentrySampler&lt;/code&gt;, and
&lt;code&gt;SentrySpanProcessor&lt;/code&gt; were removed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.sentry.io/platforms/javascript/guides/node/opentelemetry/&quot;&gt;Sentry stays out of your OpenTelemetry
setup.&lt;/a&gt;&lt;/strong&gt;
Sentry spans no longer leak into your pipeline, and your
pipeline no longer has to use Sentry&amp;#39;s context manager and
propagator. There&amp;#39;s still quite a bit of flexibility in how you
can use Sentry with a custom OpenTelemetry setup, as &lt;a href=&quot;#custom-opentelemetry-setups-in-v11&quot;&gt;discussed
below&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This instrumentation, which injects diagnostics channels with a
source transform, already existed in v10 behind
&lt;code&gt;experimentalUseDiagnosticsChannelInjection()&lt;/code&gt;; v11 makes it the
default and removes the export-patching instrumentations.&lt;/p&gt;
&lt;h2&gt;Platform coverage&lt;/h2&gt;
&lt;p&gt;Before adopting this approach, we explored quite a few other
options. It&amp;#39;s a big change, and the open source
OpenTelemetry-based instrumentations have a long history of
reliable use in production systems. Part of the motivation was to
deliver similar OpenTelemetry support to all JavaScript platforms.&lt;/p&gt;
&lt;p&gt;Node itself is moving its module loader hooks in a different
direction, so porting &lt;code&gt;import-in-the-middle&lt;/code&gt; and
&lt;code&gt;require-in-the-middle&lt;/code&gt; to every JS platform did not seem worth
the effort. The new approach gave us results on three platforms
right away.&lt;/p&gt;
&lt;h3&gt;Cloudflare Workers&lt;/h3&gt;
&lt;p&gt;Workers have no Node module loader, so v10&amp;#39;s approach could not
attach to anything. Tracing beyond fetch and the request handler
meant calling the manual wrappers yourself (for example,
&lt;code&gt;instrumentOpenAiClient&lt;/code&gt; and the like).&lt;/p&gt;
&lt;p&gt;v11 adds &lt;code&gt;@sentry/cloudflare/vite&lt;/code&gt;.
&lt;code&gt;sentryCloudflareVitePlugin()&lt;/code&gt; transforms your dependencies as
the worker bundle is built, so database drivers and AI clients
emit spans inside the worker. The subscriber integrations are
registered by the injected snippet rather than imported, so a
worker built without the plugin ships none of that code.&lt;/p&gt;
&lt;h3&gt;Bun&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;@sentry/bun/plugin&lt;/code&gt; exports &lt;code&gt;sentryBunPlugin()&lt;/code&gt; for &lt;code&gt;bun build&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Unfortunately, this is build-only for now. Due to a known issue,
any module returned by a runtime &lt;code&gt;onLoad&lt;/code&gt; plugin in Bun loses its
CommonJS named exports
(&lt;a href=&quot;https://github.com/oven-sh/bun/pull/34112&quot;&gt;oven-sh/bun#34112&lt;/a&gt;),
so a runtime hook would break the libraries it instruments.&lt;/p&gt;
&lt;p&gt;Running unbundled source with &lt;code&gt;bun run&lt;/code&gt; therefore gets no channel
instrumentation, which we felt was better than partial or broken
coverage. The Bun team is working on the issue, so we expect this
to be temporary. In the meantime, production systems on Bun often
use &lt;code&gt;bun build&lt;/code&gt; for optimization anyway.&lt;/p&gt;
&lt;h3&gt;Deno&lt;/h3&gt;
&lt;p&gt;In 2026, Deno greatly improved its &lt;code&gt;diagnostics_channel&lt;/code&gt; coverage
and its support for module loader hooks, so tracing on Deno now
works much like tracing on Node.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;deno run --preload=@sentry/deno/import&lt;/code&gt; registers the runtime
hook. Deno&amp;#39;s minimum supported version (2.8.3) already has stable
synchronous module hooks, so this is the same code path as modern
Node. (These are &lt;code&gt;Module.registerHooks()&lt;/code&gt;, a different API from
the legacy hooks the OpenTelemetry instrumentations use.)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;@sentry/deno&lt;/code&gt; now exports &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/guides/node/tracing/instrumentation/automatic-instrumentation/&quot;&gt;the whole channel integration
set&lt;/a&gt;,
including database connectors, web frameworks, AI provider
integrations, and more being added all the time. In v10 it had
none of them.&lt;/p&gt;
&lt;h2&gt;Pitfalls &amp;amp; caveats&lt;/h2&gt;
&lt;p&gt;There are a few things to watch for when you upgrade. Every
improvement is a change, as they say. The short version: &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/&quot;&gt;read the migration
guide&lt;/a&gt;
and follow it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Load order still matters.&lt;/strong&gt; The transform only applies to
modules loaded &lt;em&gt;after&lt;/em&gt; the hooks are registered. Register through
&lt;code&gt;--import&lt;/code&gt;, or keep &lt;code&gt;Sentry.init()&lt;/code&gt; above every import of an
instrumented library.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;--require&lt;/code&gt; is no longer supported.&lt;/strong&gt; Node re-runs &lt;code&gt;--require&lt;/code&gt;
preloads on the loader thread that &lt;code&gt;Module.register()&lt;/code&gt; spawns, so
an instrument file would run &lt;code&gt;Sentry.init()&lt;/code&gt; a second time on a
thread that would never execute your code. Use &lt;code&gt;--import&lt;/code&gt;, which
works for CommonJS apps too.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do not externalize instrumented libraries in a build-time
setup.&lt;/strong&gt; An external dependency is loaded from &lt;code&gt;node_modules&lt;/code&gt; and
never reaches the transform, so its channels are silently never
injected. The Sentry build plugin strips known instrumented
packages back out of &lt;code&gt;external&lt;/code&gt;, and warns about the ones it
cannot fix.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Verify with &lt;code&gt;debug: true&lt;/code&gt;.&lt;/strong&gt; We designed the system to work
without extra setup, but we also planned for the cases where it
doesn&amp;#39;t. At &lt;code&gt;init()&lt;/code&gt; time, the SDK reports whether the runtime
hook registered, whether the bundler plugin ran, and which
modules each one injected. If you run your test and CI setup with
&lt;code&gt;debug: true&lt;/code&gt; in your Sentry settings (especially while making
changes to your setup), it&amp;#39;ll catch most mistakes.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Custom OpenTelemetry setups in v11&lt;/h2&gt;
&lt;p&gt;Instrumentation and OpenTelemetry are now separate concerns.
Sentry still works with OpenTelemetry, and the architecture
behind it is simpler.&lt;/p&gt;
&lt;p&gt;Channel integrations create native Sentry spans directly from the
channel events, so whichever of the following you pick, your
dependencies stay instrumented.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;skipOpenTelemetrySetup&lt;/code&gt; is replaced by
&lt;code&gt;enableOpenTelemetrySetup&lt;/code&gt;, with the meaning inverted. It
defaults to &lt;code&gt;false&lt;/code&gt; on most server SDKs and to &lt;code&gt;true&lt;/code&gt; on
&lt;code&gt;@sentry/nextjs&lt;/code&gt; and &lt;code&gt;@sentry/sveltekit&lt;/code&gt;, which still register a
light tracer provider to pick up the spans those frameworks emit.&lt;/p&gt;
&lt;h3&gt;Option 1: Sentry only (the default)&lt;/h3&gt;
&lt;p&gt;Set &lt;code&gt;tracesSampleRate&lt;/code&gt; and you are done.&lt;/p&gt;
&lt;h3&gt;Option 2: OpenTelemetry-compatible mode&lt;/h3&gt;
&lt;p&gt;Set &lt;code&gt;enableOpenTelemetrySetup: true&lt;/code&gt;. Sentry registers a minimal
tracer provider, context manager, and propagator, so spans created
through &lt;code&gt;@opentelemetry/api&lt;/code&gt; become native Sentry spans. This is
not a general OpenTelemetry pipeline: there is no exporter and no
&lt;a href=&quot;https://sentry.io/solutions/opentelemetry/&quot;&gt;OpenTelemetry Protocol (OTLP)&lt;/a&gt; output. Sentry refuses to register its provider if you
already registered one, and logs a warning instead.&lt;/p&gt;
&lt;h3&gt;Option 3: Your own OpenTelemetry, with Sentry linked to it&lt;/h3&gt;
&lt;p&gt;Leave &lt;code&gt;enableOpenTelemetrySetup&lt;/code&gt; at &lt;code&gt;false&lt;/code&gt;, leave
&lt;code&gt;tracesSampleRate&lt;/code&gt; unset, run your own provider, and add
&lt;code&gt;Sentry.otlpIntegration()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;const provider = new NodeTracerProvider({
  spanProcessors: [
    new BatchSpanProcessor(
      new OTLPTraceExporter(Sentry.getOtlpTracesEndpoint(&amp;#39;__DSN__&amp;#39;)),
    )
  ],
});
provider.register();

Sentry.init({
  dsn: &amp;#39;__DSN__&amp;#39;,
  integrations: [Sentry.otlpIntegration()],
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;otlpIntegration()&lt;/code&gt; attaches Sentry errors, logs, metrics, and
crons to whatever OpenTelemetry span is active, so all your
telemetry lands in one trace. It sets up no exporter, span
processor, or tracer provider, and leaves outgoing propagation to
your propagator.&lt;/p&gt;
&lt;p&gt;If you had a custom setup in v10, the migration points are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;There is no longer a way to route spans from your own
provider into Sentry as Sentry spans.&lt;/strong&gt; &lt;code&gt;SentryContextManager&lt;/code&gt;,
&lt;code&gt;SentrySampler&lt;/code&gt;, and &lt;code&gt;SentrySpanProcessor&lt;/code&gt; were removed. Export
over OTLP instead, and point your exporter at
&lt;code&gt;Sentry.getOtlpTracesEndpoint(dsn)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;otlpIntegration&lt;/code&gt; moved.&lt;/strong&gt; It is exported from the main entry
of every server SDK, so &lt;code&gt;@sentry/node-core/light/otlp&lt;/code&gt; is gone.
&lt;code&gt;setupOtlpTracesExporter&lt;/code&gt; and &lt;code&gt;collectorUrl&lt;/code&gt; were removed. The
integration reports itself as &lt;code&gt;Otlp&lt;/code&gt; rather than
&lt;code&gt;OtlpIntegration&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Watch for duplicate spans.&lt;/strong&gt; Sentry instruments many of the
same libraries you do. Leaving &lt;code&gt;tracesSampleRate&lt;/code&gt; unset is the
simple answer. If you want Sentry spans alongside your own,
filter the overlapping integrations, and use &lt;code&gt;httpIntegration({ spans: false })&lt;/code&gt; and &lt;code&gt;nativeNodeFetchIntegration({ spans: false })&lt;/code&gt; rather than removing them, because &lt;code&gt;httpIntegration&lt;/code&gt; also
provides request isolation, request data, and session tracking.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HTTP and fetch spans changed.&lt;/strong&gt; In v10,
&lt;code&gt;skipOpenTelemetrySetup: true&lt;/code&gt; also turned those off. In v11
Sentry emits them whenever tracing is enabled.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Resources are no longer collected.&lt;/strong&gt; &lt;code&gt;contexts.otel.resource&lt;/code&gt;
was dropped from events, and the SDK no longer reads
&lt;code&gt;OTEL_SERVICE_NAME&lt;/code&gt; or &lt;code&gt;OTEL_RESOURCE_ATTRIBUTES&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Upgrading to v11&lt;/h2&gt;
&lt;p&gt;v11 moves tracing off the OpenTelemetry instrumentation packages
and onto source transforms and diagnostics channels. On Node, that
means fewer dependencies and one ordering rule instead of several.
If you run on Cloudflare Workers, Deno, or Bun (with &lt;code&gt;bun build&lt;/code&gt;),
or deploy bundled server code to Vercel or Netlify, your
dependencies now get automatic tracing where they had little or
none before.&lt;/p&gt;
&lt;p&gt;To upgrade, start with the &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/&quot;&gt;migration
guide&lt;/a&gt;,
and turn on &lt;code&gt;debug: true&lt;/code&gt; the first time you run the new version so
you can see which modules were instrumented.&lt;/p&gt;
&lt;p&gt;The transform and hooks come from the
&lt;a href=&quot;https://github.com/apm-js-collab&quot;&gt;apm-js-collab&lt;/a&gt; packages, which
we build together with other APM vendors. If something does not
work the way you expect, open an issue in the &lt;a href=&quot;https://github.com/getsentry/sentry-javascript/issues&quot;&gt;sentry-javascript
repository&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>Reducing Android scope-sync overhead in Sentry Flutter</title><link>https://blog.sentry.io/flutter-android-scope-sync/</link><guid isPermaLink="true">https://blog.sentry.io/flutter-android-scope-sync/</guid><description>How Sentry Flutter uses a worker isolate for Android SDK operations and reduces duplicate normalization and JSON encoding overhead.</description><pubDate>Thu, 08 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Our SDK adds work to the app that installs it. It records recent app activity as breadcrumbs and keeps user information and other diagnostic data up to date. Changes to that information are called scope updates.&lt;/p&gt;
&lt;p&gt;On Android, we send those updates to a worker isolate, which passes them to the Sentry Android SDK. We found that the calling isolate and the worker both normalized the same data. The encoding step also created a JSON string and an extra byte buffer that we could avoid.&lt;/p&gt;
&lt;p&gt;Together, removing that duplicate work and encoding directly into bytes reduced processing time by 27–30% for the scope payloads we benchmarked.&lt;/p&gt;
&lt;h2&gt;Moving work off the UI isolate&lt;/h2&gt;
&lt;p&gt;Flutter’s main isolate handles app logic and builds frames. Synchronous SDK work on that isolate competes for the same execution time.&lt;/p&gt;
&lt;p&gt;We introduced a dedicated worker isolate for Sentry Android SDK operations, including handing over event envelopes and synchronizing breadcrumbs, users, and context data. For scope updates, the division looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Calling isolate
  Normalize the scope data
  Send a request to the worker
             ↓
Worker isolate
  Encode the data as JSON bytes
  Create the Java byte array
  Call the Sentry Android SDK through JNI
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When the worker is available, encoding and native-call work happen off the calling isolate. If the worker hasn’t started, the SDK falls back to performing those operations on the calling isolate.&lt;/p&gt;
&lt;p&gt;The calling isolate still has to prepare and send each update. We looked at that preparation and the worker’s processing together to check for repeated work.&lt;/p&gt;
&lt;h2&gt;Normalizing twice&lt;/h2&gt;
&lt;p&gt;Before data reaches the Sentry Android SDK, we normalize it: go through its values, convert them into types Sentry’s data format supports, and remove anything unsupported.&lt;/p&gt;
&lt;p&gt;The code we changed normalized each object on the isolate making the update, then sent it to the worker. The worker’s Java byte-array helper normalized it again before encoding it. We were processing the same values twice on their way to the Sentry Android SDK.&lt;/p&gt;
&lt;p&gt;The fix was to normalize the object once, before sending it to the worker, and remove the second normalization from the helper.&lt;/p&gt;
&lt;p&gt;That roughly halved the time spent on normalization alone: 7.57 µs down to 3.78 µs for a 1.2 KB breadcrumb, and 2.71 ms down to 1.35 ms for 238 KB of context data.&lt;/p&gt;
&lt;p&gt;Neither function looked wrong on its own. We had to follow the object into the worker to see that both were doing the same work.&lt;/p&gt;
&lt;h2&gt;We needed bytes all along&lt;/h2&gt;
&lt;p&gt;The Android scope-sync methods expect JSON bytes, which we pass through &lt;code&gt;JByteArray.from&lt;/code&gt;. Our helper built a JSON string, encoded it as UTF-8, then copied the bytes into another &lt;code&gt;Uint8List&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The last copy was unnecessary: &lt;code&gt;utf8.encode&lt;/code&gt; already returns a &lt;code&gt;Uint8List&lt;/code&gt;. We could also use &lt;code&gt;JsonUtf8Encoder&lt;/code&gt; to produce UTF-8 bytes directly, without first building a JSON string.&lt;/p&gt;
&lt;p&gt;For data that can be encoded as JSON, the change looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-dart&quot;&gt;// Before: JSON string, UTF-8 encoding, then an extra buffer copy.
final bytes = Uint8List.fromList(utf8.encode(jsonEncode(payload)));
final byteArray = JByteArray.from(bytes);
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=&quot;language-dart&quot;&gt;// After: encode directly into UTF-8 bytes.
final encoder = JsonUtf8Encoder(); // In production, reuse an encoder across calls.
final byteArray = JByteArray.from(encoder.convert(payload));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Removing a whole buffer copy sounds like it should save a lot. On its own, it reduced the encoding benchmark time by about 2%. Switching to direct UTF-8 encoding as well brought the reduction to 16% for both the 1.2 KB and 238 KB inputs.&lt;/p&gt;
&lt;p&gt;The extra copy was easy to spot, but it accounted for only a small part of the encoding time.&lt;/p&gt;
&lt;h2&gt;Measuring the combined change&lt;/h2&gt;
&lt;p&gt;We then measured normalization, JSON encoding, and Java byte-array creation together. This comparison includes both the normalization and encoding changes.&lt;/p&gt;
&lt;p&gt;The measurements come from a physical Google Pixel 4 in release mode and are medians of seven runs after warmup. We used three payload sizes to examine how the cost changes with the amount of data:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;th&gt;Time reduction&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;1.2 KB breadcrumb&lt;/td&gt;
&lt;td&gt;41.0 µs&lt;/td&gt;
&lt;td&gt;29.9 µs&lt;/td&gt;
&lt;td&gt;27%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;23 KB of context data&lt;/td&gt;
&lt;td&gt;824 µs&lt;/td&gt;
&lt;td&gt;574 µs&lt;/td&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;238 KB of context data&lt;/td&gt;
&lt;td&gt;8.24 ms&lt;/td&gt;
&lt;td&gt;5.95 ms&lt;/td&gt;
&lt;td&gt;28%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;For the small breadcrumb, that’s about 11 µs saved per update. For the largest input, the saving was 2.29 ms. These sizes describe our benchmark inputs; they don’t establish how large scope updates typically are in customer apps.&lt;/p&gt;
&lt;p&gt;The combined reductions are smaller than the halving we saw for normalization alone, because normalization is only one part of the work.&lt;/p&gt;
&lt;p&gt;These measurements cover scope-data processing. They don’t measure isolate round-trip latency, network delivery, or the responsiveness benefit of introducing the worker. What an app actually saves depends on the size and frequency of its scope updates.&lt;/p&gt;
&lt;p&gt;Neither change needed a new algorithm. Both came from reading the full path from the calling isolate to the Sentry Android SDK. If your code sends data between isolates, check what each side does to that data before you optimize either side.&lt;/p&gt;
&lt;p&gt;The Android core worker shipped in &lt;code&gt;sentry_flutter&lt;/code&gt; 9.21.0, and the normalization and encoding improvements shipped in 9.26.0. Both changes are available in &lt;code&gt;sentry_flutter&lt;/code&gt; 9.26.0 and later. For the latest fixes, upgrade to the &lt;a href=&quot;https://github.com/getsentry/sentry-dart/releases/latest&quot;&gt;latest version&lt;/a&gt;. If you see unexpected behavior after you upgrade, &lt;a href=&quot;https://github.com/getsentry/sentry-dart/issues&quot;&gt;open an issue on GitHub&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>Unreal MCP now speaks Sentry</title><link>https://blog.sentry.io/unreal-mcp-sentry/</link><guid isPermaLink="true">https://blog.sentry.io/unreal-mcp-sentry/</guid><description>Unreal Engine 5.8&apos;s Unreal MCP lets coding agents drive the editor. Sentry&apos;s plugin adds tools and skills to set up Sentry and debug crashes.</description><pubDate>Tue, 06 Oct 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Setting up crash reporting is rarely the most exciting part of shipping a game. Paste a DSN, flip a few checkboxes in Project Settings, turn on symbol upload, package a build, crash it on purpose and check that the event shows up in Sentry… It&amp;#39;s not hard to do (and important), but it&amp;#39;s the kind of work you&amp;#39;d happily hand off to someone else.&lt;/p&gt;
&lt;p&gt;With Unreal Engine 5.8, that someone else can be your coding agent. Until now, agents could only read and write your C++, while the editor remained a black box to them.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://dev.epicgames.com/documentation/unreal-engine/unreal-mcp-in-unreal-editor&quot;&gt;Unreal MCP&lt;/a&gt; is a new experimental engine feature that runs a first-party MCP server right inside the editor, letting agents drive it directly. Out of the box, Epic provides hundreds of tools for spawning actors, creating materials, running automation tests and a lot more.&lt;/p&gt;
&lt;p&gt;Importantly for us, that list isn&amp;#39;t fixed. Plugins register their own tools with the editor, in C++ or Python, and agents see them right next to Epic&amp;#39;s. That&amp;#39;s exactly the hook the Unreal plugin uses, which means your agent of choice, whether it&amp;#39;s Claude Code, Cursor, or Codex, now has everything it needs to set up Sentry, instrument your project, and help you debug captured crashes.&lt;/p&gt;
&lt;h2&gt;What the Sentry plugin brings to the table&lt;/h2&gt;
&lt;p&gt;When the editor starts with MCP enabled, the Sentry plugin registers a small toolset that can inspect and change the SDK from inside the running editor and several agent skills that tell the agent how to use it.&lt;/p&gt;
&lt;p&gt;The tools are the hands; the skills are the playbook. If you&amp;#39;ve used the &lt;a href=&quot;https://docs.sentry.io/ai/agent-plugin/&quot;&gt;Sentry agent plugin&lt;/a&gt; for Claude Code or Cursor, these will look familiar, because they mirror the same workflows, adapted for Unreal:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Get Started&lt;/strong&gt; takes the DSN from your Sentry account, applies it, and confirms a test event arrives.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fix Stack Traces&lt;/strong&gt; turns on automatic debug symbol upload and helps set up the required credentials.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Instrument&lt;/strong&gt; wires up tracing, structured logs, metrics, session replay, and user feedback on top of crash capture.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Debug Issue&lt;/strong&gt; pulls a Sentry issue&amp;#39;s full context, root-causes it against your project source, and helps you ship the fix.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each skill carries the kind of advice we&amp;#39;d give if we were sitting next to you during setup. &lt;strong&gt;Get Started&lt;/strong&gt; knows that an editor DSN overrides the project one, so it checks where the DSN comes from before changing anything. &lt;strong&gt;Fix Stack Traces&lt;/strong&gt; knows symbol upload only runs for packaged builds, so it verifies your credentials up front instead of making you wait for a full build to find out. And every skill follows the same ground rules. It asks before changing your project, never reads or prints secrets like your auth token, and applies settings in place so the editor never needs a restart.&lt;/p&gt;
&lt;h2&gt;Getting it up and running&lt;/h2&gt;
&lt;p&gt;All you need is Unreal Engine 5.8 and Sentry plugin 1.24.0 or later, as everything else ships with them:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;In &lt;strong&gt;Edit &amp;gt; Plugins&lt;/strong&gt;, enable &lt;strong&gt;Unreal MCP&lt;/strong&gt; and &lt;strong&gt;All Toolsets&lt;/strong&gt;, then restart the editor. The first runs the server; without the second, the server has no tools to offer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Generate a config for your agent by running a console command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ModelContextProtocol.GenerateClientConfig ClaudeCode
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This writes an &lt;code&gt;.mcp.json&lt;/code&gt; to your project root, which Claude Code picks up when launched from that folder (Cursor, VS Code, Codex, and Gemini get their own config files).&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &amp;quot;mcpServers&amp;quot;: {
    &amp;quot;unreal-mcp&amp;quot;: {
      &amp;quot;type&amp;quot;: &amp;quot;http&amp;quot;,
      &amp;quot;url&amp;quot;: &amp;quot;http://127.0.0.1:8000/mcp&amp;quot;
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To start the server either run &lt;code&gt;ModelContextProtocol.StartServer&lt;/code&gt; in the console, or turn on &lt;strong&gt;Auto Start Server&lt;/strong&gt; under &lt;strong&gt;Editor Preferences &amp;gt; Plugins &amp;gt; Model Context Protocol&lt;/strong&gt; so you don&amp;#39;t have to think about it again.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Launch your agent from the project directory with the editor open, and it will pick up the editor&amp;#39;s tools, Sentry&amp;#39;s included.&lt;/p&gt;
&lt;h2&gt;Close the loop with Sentry MCP&lt;/h2&gt;
&lt;p&gt;The editor tools can only see your project&amp;#39;s side of the story. They can set a DSN, but they don&amp;#39;t know which DSN. They can send a test event, but they can&amp;#39;t tell you whether it arrived.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s where the &lt;a href=&quot;https://mcp.sentry.dev&quot;&gt;Sentry MCP server&lt;/a&gt; comes in. With it connected, the agent can list your organizations and projects, fetch the right DSN (or create a project if you don&amp;#39;t have one yet), and look the test event up by ID once it lands. For issue debugging, it&amp;#39;s what lets the agent pull stack traces, breadcrumbs, and Seer&amp;#39;s root cause analysis instead of asking you to paste them.&lt;/p&gt;
&lt;p&gt;There are two ways to hook it up:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Connect it to your agent directly&lt;/strong&gt; by following the &lt;a href=&quot;https://mcp.sentry.dev&quot;&gt;Sentry MCP docs&lt;/a&gt;. This is the simplest option if your agent already talks to Sentry.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Route it through the editor.&lt;/strong&gt; Enable the &lt;strong&gt;MCPClientToolset&lt;/strong&gt; plugin and add &lt;code&gt;https://mcp.sentry.dev/mcp&lt;/code&gt; under &lt;strong&gt;Editor Preferences &amp;gt; Plugins &amp;gt; MCP Toolset Servers&lt;/strong&gt;. The editor then proxies Sentry&amp;#39;s tools alongside its own, so any agent connected to Unreal MCP gets them for free.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Skipping this step is fine. The skills still run, but you&amp;#39;ll paste the DSN yourself and check for the test event in Sentry by hand.&lt;/p&gt;
&lt;h2&gt;Taking it for a test drive&lt;/h2&gt;
&lt;p&gt;To see how this holds up outside our test fixtures, we tried it on the &lt;a href=&quot;https://github.com/sentry-demos/unreal&quot;&gt;Sentry Tower demo game&lt;/a&gt;, with Claude Code connected to both the Unreal editor and Sentry MCP. The project started with no Sentry configuration at all.&lt;/p&gt;
&lt;p&gt;We started with &lt;em&gt;&amp;quot;Set up Sentry in this project using the Unreal editor&amp;#39;s Sentry skills.&amp;quot;&lt;/em&gt; The agent checked the SDK state, listed our projects through Sentry MCP, asked which one to use, and applied the DSN without ever editing project configuration files by hand. It then sent a test event and looked it up in Sentry using its event ID.&lt;/p&gt;
&lt;p&gt;The first phase ended with one important warning: crashes from packaged builds would still show hex addresses until debug symbols were uploaded.&lt;/p&gt;
&lt;p&gt;So symbol upload was next. Two setting changes enabled symbol upload and source bundling. The agent then created a &lt;code&gt;sentry.properties&lt;/code&gt; file with the organization and project, confirmed it was gitignored, and left the auth token for us to paste in - the only manual step. Once the token was in place, it verified the credentials using the Sentry CLI bundled with the plugin.&lt;/p&gt;
&lt;p&gt;Finally, the real test: a packaged build and a crash. The agent packaged the game, uploading its debug symbols along the way, ran it until it crashed, and then opened the resulting event in Sentry. The stack trace was fully readable, down to the source line with context.&lt;/p&gt;
&lt;p&gt;A null write in &lt;code&gt;Shoot&lt;/code&gt; looked like a straightforward C++ bug, and the obvious fix would have been a null check. Instead, we asked the agent to find the actual root cause.&lt;/p&gt;
&lt;p&gt;The breadcrumbs on the crash event showed the player picking the &lt;em&gt;&amp;quot;Wrath&amp;quot;&lt;/em&gt; upgrade, followed moments later by a projectile that failed to spawn. The agent followed that trail back into the editor and found that the Wrath button in the level-up screen was configured with an empty projectile class. The matching projectile Blueprint was already in the project - it simply wasn&amp;#39;t wired up.&lt;/p&gt;
&lt;p&gt;The agent proposed pointing the button at the correct Blueprint, along with adding a null check in &lt;code&gt;Shoot&lt;/code&gt; as a safety net.&lt;/p&gt;
&lt;p&gt;Two questions and one pasted token took us from a project with zero Sentry setup to a readable crash with its root cause identified, while the agent handled everything else through the editor&amp;#39;s Sentry tools and Sentry MCP.&lt;/p&gt;
&lt;h2&gt;A few rough edges&lt;/h2&gt;
&lt;p&gt;Unreal MCP is still experimental and it shows in a few places:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Agents don&amp;#39;t always find the tools.&lt;/strong&gt; Unreal MCP runs in tool-search mode by default, so rather than listing every tool upfront, it hands the agent a few meta-tools to discover the rest. That keeps the context small with hundreds of editor tools around, but agents sometimes skip discovery entirely and go straight to editing project files by hand. If that happens, nudge them: &amp;quot;Use the Unreal editor&amp;#39;s MCP tools and the Sentry skills to set up Sentry.&amp;quot; One sentence is usually enough.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The connection is fragile across restarts.&lt;/strong&gt; If the editor restarts mid-session, the MCP server goes with it and the agent loses its tools until the server is running again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A client-side plugin helps a lot.&lt;/strong&gt; Epic ships the &lt;a href=&quot;https://github.com/EpicGames/unreal-engine-skills-for-claude-code-plugin&quot;&gt;Unreal Engine skills plugin for Claude Code&lt;/a&gt;, which adds an &lt;code&gt;unreal-mcp&lt;/code&gt; skill and a session hook that tells Claude it&amp;#39;s in an Unreal project and should reach for the editor&amp;#39;s tools first. In our testing it noticeably reduced the need for extra prompting:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;/plugin install unreal-engine-skills-for-claude-code@claude-plugins-official
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Try it out&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re already on UE 5.8, it takes just a few minutes to get started: update the SDK, enable the Unreal plugins, connect Sentry MCP, and ask your agent to set things up for you. The full integration flow is covered in our &lt;a href=&quot;https://docs.sentry.io/platforms/unreal/configuration/unreal-mcp/&quot;&gt;Unreal MCP docs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is the very first iteration, and both Unreal MCP and our skills will continue to evolve as Unreal&amp;#39;s AI toolset matures. In the meantime, give it a try, see what your agent can do and let us know where it gets stuck on &lt;a href=&quot;https://github.com/getsentry/sentry-unreal/issues&quot;&gt;GitHub&lt;/a&gt; or &lt;a href=&quot;https://discord.gg/sentry&quot;&gt;Discord&lt;/a&gt;!&lt;/p&gt;
</content:encoded></item><item><title>Seer, the Sentry MCP and CLI, or your own coding agent: where each one fits</title><link>https://blog.sentry.io/seer-mcp-cli-or-coding-agent/</link><guid isPermaLink="true">https://blog.sentry.io/seer-mcp-cli-or-coding-agent/</guid><description>Seer, the Sentry agent plugin, the CLI, and coding agents aren&apos;t competing options. Here&apos;s what each one does that the others don&apos;t.</description><pubDate>Fri, 02 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I&amp;#39;ve been getting some version of this question a lot lately, mostly in our Seer preview webinars. Different audiences, same handful of questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;Should I use Seer or just connect the MCP to my agent?&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Is there a point to Seer if I&amp;#39;m already in Cursor?&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Can&amp;#39;t I just have Claude Code pull from Sentry and call it a day?&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Worth answering all three in one place.&lt;/p&gt;
&lt;p&gt;Honestly, I needed to write this down for myself too. Things are moving fast around all of us and answers seem to get more nuanced by the week. This is an attempt to codify the difference: what each option is and when it makes sense to reach for one over the other.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;tl;dr:&lt;/strong&gt; &lt;a href=&quot;https://sentry.io/product/seer/&quot;&gt;Seer&lt;/a&gt;, the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP&lt;/a&gt; (set up by the agent plugin), the &lt;a href=&quot;https://cli.sentry.dev/&quot;&gt;Sentry CLI&lt;/a&gt;, and coding agent integrations aren&amp;#39;t competing options. They can improve your debugging workflow differently depending on your goals. The question isn&amp;#39;t which one is best. It&amp;#39;s knowing what each one does that the others don&amp;#39;t.&lt;/p&gt;
&lt;h2&gt;Start here: three questions&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;1. How are you diagnosing the issue?&lt;/strong&gt; Pointing a general-purpose agent at raw stack traces and event data could work for simple bugs, but it&amp;#39;s not the same as diagnosis and missing critical application context. Seer reasons across your errors, traces, logs, profiles, and linked repositories to find the root cause so that your team or your agents can act on it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Who writes the code?&lt;/strong&gt; You might still write code. You&amp;#39;re on track to opening an Etsy store where you barter artisanal hand-crafted artifacts. Or you could hand Seer&amp;#39;s plan to a cloud agent (Claude, Cursor, or GitHub Copilot) and let the agent you already use do the implementation, or let Seer open the PR itself if you&amp;#39;d rather skip the handoff.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. How many surfaces do you touch while debugging?&lt;/strong&gt; The Sentry UI, Slack, your coding agent, and your terminal. The Seer Agent covers the first two, the agent plugin and the MCP bring it into your coding agent or editor, and the CLI brings it to your terminal. The goal is weaving Sentry into whichever ones you already use. Adding automation or a webhook-driven pipeline ties things together so a draft PR is waiting before anyone opens a laptop.&lt;/p&gt;
&lt;h2&gt;Seer: let Sentry figure out what went wrong&lt;/h2&gt;
&lt;p&gt;Seer is Sentry&amp;#39;s own agent debugger. It has deep, connected access to all of your Sentry telemetry: errors, traces, profiles, logs, your codebase, and more. It doesn&amp;#39;t just retrieve data, it reasons over everything to tell you why something broke.&lt;/p&gt;
&lt;h3&gt;Seer Agent: when you don&amp;#39;t know what&amp;#39;s wrong yet&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://sentry.io/product/seer/agent/&quot;&gt;Seer Agent&lt;/a&gt; is a chat interface that runs in Slack or in the Sentry UI, and it can reason over your entire Sentry instance.&lt;/p&gt;
&lt;p&gt;Some things it handles well:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;What started spiking after last night&amp;#39;s deploy?&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Which commits and PRs landed in the last release?&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Which of these open issues should we fix first and why?&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Walk me through the latency in this trace.&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Seer Agent can take action for you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;Set up an alert for when checkout p99 goes above 2 seconds.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Build a new dashboard for these database errors over the last 7 days.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Create an explore query for me that finds the slowest spans on my account.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Reassign this to the mobile team and add a comment why.&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are more examples in the &lt;a href=&quot;https://sentry.io/cookbook/seer-agent-use-cases/&quot;&gt;Seer Agent use cases cookbook&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In Slack it goes multiplayer: anyone on your team can jump into the thread, add context, or steer the investigation in a new direction. That&amp;#39;s what makes it actually useful during incidents, when three people are already in the same channel trying to figure out what&amp;#39;s on fire.&lt;/p&gt;
&lt;p&gt;Add the Slack integration in Sentry and &lt;code&gt;@Sentry&lt;/code&gt; in any channel, or click &lt;strong&gt;Ask Seer&lt;/strong&gt; on any page in Sentry to get started.&lt;/p&gt;
&lt;p&gt;In the Sentry UI, Seer Agent is a one-to-one conversation. It&amp;#39;s context-aware too: it knows what page you&amp;#39;re on in Sentry, so if you&amp;#39;re staring at a trace and ask &amp;quot;what&amp;#39;s causing this?&amp;quot;, it already knows what &lt;em&gt;this&lt;/em&gt; is.&lt;/p&gt;
&lt;h3&gt;Autofix: from broken issue to open PR&lt;/h3&gt;
&lt;p&gt;An issue lands in Sentry, Seer analyzes it, and depending on how you&amp;#39;ve configured it, you either get a root cause or fix plan waiting for you, or you have a draft PR waiting for review.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open an issue and under &lt;a href=&quot;https://sentry.io/product/seer/autofix/&quot;&gt;Seer Autofix&lt;/a&gt; click &lt;strong&gt;Start Analysis&lt;/strong&gt;. Seer works autonomously, pulling together errors, stack traces, distributed traces, span information, structured logs, profiles, performance metrics, and code from your linked repositories.&lt;/li&gt;
&lt;li&gt;When it&amp;#39;s done, you see the evaluated root cause. We&amp;#39;re not talking just the frame that threw the error, but what actually caused it. You may find a shopping cart checkout failure that&amp;#39;s actually a missing database index two services away.&lt;/li&gt;
&lt;li&gt;From there you choose: hand the plan to a coding agent to execute, or let Seer write the fix and create a PR itself. More on that handoff later.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Seer can also run on its own, without any clicking involved. It triggers on issues with 10+ events, within the last 14 days, and above a fixability score threshold. You can configure it to stop after establishing a root cause, after forming a plan, or after a PR is drafted.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re already deep in an agent workflow: Seer reads whatever coding conventions you&amp;#39;ve already documented for your agents. &lt;a href=&quot;https://agents.md&quot;&gt;AGENTS.md&lt;/a&gt;, &lt;a href=&quot;https://claude.md&quot;&gt;CLAUDE.md&lt;/a&gt;, and rules files from Cursor, Windsurf, and others work too. You don&amp;#39;t have to restate your standards anywhere new, and Seer&amp;#39;s fixes come out looking like the rest of your codebase.&lt;/p&gt;
&lt;h4&gt;Coding agents: hand Seer&amp;#39;s plan to the agent you already use&lt;/h4&gt;
&lt;p&gt;Autofix&amp;#39;s last step is code generation, and Seer doesn&amp;#39;t have to be the one doing it. If you&amp;#39;ve connected a coding agent, Seer packages the root cause and solution plan as a structured prompt and triggers that agent instead.&lt;/p&gt;
&lt;p&gt;The work happens in the agent&amp;#39;s own cloud environment, not on your machine, so your editor doesn&amp;#39;t even need to be open. Basic configuration, like providing an API key, can vary based on which supported coding agent you integrate with Sentry. What comes back is a branch or draft PR for you to review. Depending on which agent you use, you can iterate in the cloud agent session, through PR comments, or by continuing the work yourself locally.&lt;/p&gt;
&lt;p&gt;Reach for this when the fix benefits from actually executing the code, when it spans multiple repos, or when your team already routes work through a particular agent and you want these fixes landing on the same path.&lt;/p&gt;
&lt;h4&gt;Trigger a fix from Slack alerts&lt;/h4&gt;
&lt;p&gt;In Slack, when a new issue appears in your alert channel, there&amp;#39;s a &lt;strong&gt;Fix with Seer&lt;/strong&gt; button right there in the thread, and it follows your Seer automation settings in Sentry. No browser tab required. You can also check in with Seer Agent here if you want deeper issue context before having Autofix get busy.&lt;/p&gt;
&lt;h2&gt;Sentry in your tools: the MCP and the CLI&lt;/h2&gt;
&lt;p&gt;This is how you get Sentry&amp;#39;s data into the environment you&amp;#39;re already working in. These are your bridge between Sentry&amp;#39;s production intelligence and your agent, terminal, or pipeline.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://docs.sentry.io/ai/agent-plugin/&quot;&gt;Sentry Agent Plugin&lt;/a&gt; is the one-command setup that wires up the MCP &lt;em&gt;and&lt;/em&gt; teaches your tool how to use it with relevant skills and capabilities. The new &lt;a href=&quot;https://cli.sentry.dev/&quot;&gt;Sentry CLI&lt;/a&gt; is for the terminal: just talk to it with natural language and it works out which project you want from your environment, takes plain selectors instead of IDs, and puts Seer&amp;#39;s analysis a few keystrokes away without a browser.&lt;/p&gt;
&lt;p&gt;Both work without Seer, but they&amp;#39;re a lot more useful when Seer is enabled, because instead of just retrieving raw event data, your agent can invoke a full root cause analysis and get back a structured diagnosis.&lt;/p&gt;
&lt;h3&gt;The agent plugin: skip the setup&lt;/h3&gt;
&lt;p&gt;The MCP works with Claude Desktop, Claude Code, Codex, Cursor, Amp, VS Code with Copilot, Warp, Windsurf, Vercel v0, and anything else that supports OAuth and remote MCP.&lt;/p&gt;
&lt;p&gt;If you already work in an AI coding tool, don&amp;#39;t wire it up by hand. Run:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npx @sentry/agent-plugin install
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The installer detects which coding tools you have on your machine, lets you pick the ones you want, and wires the plugin into each. If you already have it installed, the same command updates you to the latest version. Restart your tools afterward so they pick it up.&lt;/p&gt;
&lt;p&gt;Connecting the MCP is the easy part, though. What makes the plugin worth using is what comes with it: &lt;a href=&quot;https://skills.sentry.dev/&quot;&gt;Sentry&amp;#39;s skill library&lt;/a&gt;, a set of instructions your tool loads when it needs them.&lt;/p&gt;
&lt;p&gt;That matters most for setup. Ask your agent to add Sentry to a project and it detects your framework, installs the right SDK, and turns on the features that suit your stack using Sentry-maintained instructions and references. The same library covers debugging workflows, alerting, OpenTelemetry, and working through the PR comments Seer leaves during code review.&lt;/p&gt;
&lt;p&gt;So you can ask for things like:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;&amp;gt; Add Sentry to my Next.js app
&amp;gt; What are the top errors in the last 24 hours?
&amp;gt; Fix the recent Sentry errors
&amp;gt; Review PR #123 and fix the Sentry comments
&amp;gt; Create a Slack alert for new high-priority issues
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A few of the workflow skills also want the &lt;a href=&quot;https://cli.github.com/&quot;&gt;GitHub CLI&lt;/a&gt; (&lt;code&gt;gh&lt;/code&gt;) installed for reading and replying to PR comments. The whole thing is open source in &lt;a href=&quot;https://github.com/getsentry/sentry-for-ai&quot;&gt;sentry-for-ai&lt;/a&gt; if you want to add a skill or fix one. If your team wants to pin skill versions so everyone gets the same behavior, look at &lt;a href=&quot;https://docs.sentry.io/ai/dotagents/&quot;&gt;dotagents&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you still want to set up the MCP manually you can connect it without a local install at &lt;a href=&quot;https://mcp.sentry.dev&quot;&gt;mcp.sentry.dev&lt;/a&gt;, or add it via any MCP-compatible client:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npx add-mcp https://mcp.sentry.dev/mcp
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Without Seer, you drop an issue URL into your agent (&amp;quot;fix &lt;code&gt;https://sentry.io/issues/CHECKOUT-P1&lt;/code&gt;&amp;quot;) and the MCP pulls the stack trace, event details, and tags so the agent can work with them. For simple bugs, that&amp;#39;s often enough.&lt;/p&gt;
&lt;p&gt;With Seer enabled, you ask the agent to call Seer&amp;#39;s analysis tools via the MCP first. Seer does the full diagnosis, returns structured findings, and your agent implements the fix with that context already baked in. You never leave your coding agent or editor.&lt;/p&gt;
&lt;h3&gt;CLI: Sentry without leaving the terminal&lt;/h3&gt;
&lt;p&gt;The Sentry CLI is our new natural-language-powered command line tool, and it&amp;#39;s built for humans and agents. It resolves your org and project from your DSNs, &lt;code&gt;.env&lt;/code&gt; files, and working directory, so there are no slugs to memorize and almost no flags to look up. Selectors like &lt;code&gt;@latest&lt;/code&gt; and &lt;code&gt;@most_frequent&lt;/code&gt; let you point at an issue without going to find its ID.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sentry issue list                          # each issue with its fixability score
sentry issue view @latest                  # details, suspect commits, release
sentry issue explain @most_frequent        # Seer&amp;#39;s root cause analysis
sentry issue plan FRONT-ABC                # a step-by-step fix
sentry issue resolve FRONT-ABC --in @next  # resolve in the next release
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;sentry issue explain&lt;/code&gt; is Seer&amp;#39;s analysis in your terminal, and &lt;code&gt;plan&lt;/code&gt; picks up where it leaves off, running the analysis first if it hasn&amp;#39;t happened yet.&lt;/p&gt;
&lt;p&gt;Agents that can run shell commands get all of this without needing MCP support, and every data command takes &lt;code&gt;--json&lt;/code&gt; so scripts and CI jobs can act on the output.&lt;/p&gt;
&lt;h2&gt;Hands free: all of the above, but wired together&lt;/h2&gt;
&lt;p&gt;The options above largely include a human in the loop. This one removes that component until a review is ready and waiting, and redefines what on-call looks like.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s nothing new here but the workflow becomes more dependable, while being powered by Seer. Seer automation kicks things off with triage just as it would in the Autofix flow. Then a webhook takes the finished diagnosis over to whatever automation pipeline you already use. Now your coding agent picks up the completed root cause analysis, fills in any gaps with MCP, authors the fix, runs your tests, and opens a draft PR. Now you just review and merge.&lt;/p&gt;
&lt;p&gt;Seer remains in the loop doing what it was designed to do. It provides all of the deep context required to solve real production issues, spread across multiple services. The ones that keep you up at night, and your agent isn&amp;#39;t stuck reasoning through stack traces alone.&lt;/p&gt;
&lt;p&gt;Teams like Cursor and Factory are already running versions of this in production. Cursor&amp;#39;s client infrastructure team built a daily loop on Sentry crash data and cut their out-of-memory crash rate by up to 80% from its peak, attributing roughly 30% of their app-stability gains to Sentry. Factory&amp;#39;s agents handle Sentry errors end-to-end without a human ever opening a browser. The full picture is worth reading in &lt;a href=&quot;https://blog.sentry.io/self-healing-software/&quot;&gt;how teams are building self-healing software&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Where this leaves you&lt;/h3&gt;
&lt;p&gt;This is the part I keep coming back to: most tools tell you what broke. Seer tells you why, across your whole stack, before you&amp;#39;ve opened a single file. We even had &lt;a href=&quot;https://blog.sentry.io/seer-fixes-seer-debugging-agent/&quot;&gt;Seer debug a Seer outage once&lt;/a&gt;. It traced a region blocklisting bug through 42,000 errors back to six missing lines of code that standard monitoring never would have found.&lt;/p&gt;
&lt;p&gt;For most teams, Seer plus the agent plugin covers everything. For teams with serious alert volume or on-call pain, the automated pipeline is where this pays off the most. Seer diagnoses and you fix it. Seer diagnoses and your agent fixes it. Nobody has to be involved until there&amp;#39;s a PR to review. Pick the handoff you&amp;#39;re comfortable with and adjust when the results earn it.&lt;/p&gt;
&lt;p&gt;Every version rests on the same thing: the diagnosis has to be right. An agent with a great fix for the wrong root cause is worse than no agent.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re on the fence, &lt;a href=&quot;https://docs.sentry.io/pricing/#seer-trial&quot;&gt;start the 14-day Seer trial&lt;/a&gt; and throw your backlog at it. You won&amp;#39;t be charged when it ends.&lt;/p&gt;
</content:encoded></item><item><title>How Etsy gets its mobile apps ready for peak traffic</title><link>https://blog.sentry.io/etsy-peak-traffic-prep/</link><guid isPermaLink="true">https://blog.sentry.io/etsy-peak-traffic-prep/</guid><description>How Etsy&apos;s mobile team preps for peak traffic: a three-phase code slush, a break-glass alert list, surface-level tagging, and what a crash costs in GMS.</description><pubDate>Wed, 30 Sep 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Most advice about surviving a traffic spike is about capacity. Scale the fleet, warm the caches, load test the checkout path. All of it assumes you can fix whatever breaks the moment you find it.&lt;/p&gt;
&lt;p&gt;Mobile apps don&amp;#39;t work that way. I spent an hour on &lt;a href=&quot;https://www.youtube.com/watch?v=uIfWUBuugl0&quot;&gt;a workshop with Jay Henry&lt;/a&gt;, a senior engineering manager at Etsy who owns engineering strategy across three teams covering CI, build, test, release, observe, and SRE. Jay&amp;#39;s take: a web team having a bad day can revert in minutes. The debugging still has to happen, but it happens with the bad code already off production.&lt;/p&gt;
&lt;p&gt;Mobile has no revert. Once a bug ships inside a binary, it has to travel the whole path out: discovery, root cause analysis, reproduction, design, testing, merge, submission, app store review, and rollout. You can&amp;#39;t control when or if users install the fix, and if they don&amp;#39;t, the broken version keeps running.&lt;/p&gt;
&lt;p&gt;So Etsy&amp;#39;s holiday prep isn&amp;#39;t a capacity exercise. It&amp;#39;s a set of decisions made in October about what they&amp;#39;ll be able to see, route, and mitigate in November, when reverting isn&amp;#39;t an option.&lt;/p&gt;
&lt;p&gt;Here are some highlights from our conversation, most of which aren&amp;#39;t specific to e-commerce.&lt;/p&gt;
&lt;h2&gt;Etsy runs a code slush, not a code freeze&lt;/h2&gt;
&lt;p&gt;A code freeze is a hard stop: for some time window, changes don&amp;#39;t merge or don&amp;#39;t ship. It&amp;#39;s a blunt instrument, but it works, which is why most teams reach for it.&lt;/p&gt;
&lt;p&gt;Etsy runs a slush instead. Three phases nested inside each other, each one raising the bar on what ships.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Phase one&lt;/strong&gt; starts in mid-October, when sellers are staging their holiday inventory. The guidance to engineers is to merge mindfully, and the specific test is whether a change would force a seller to learn a new way of running their business during their busiest weeks. If it would, the change waits until after the holidays.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Phase two&lt;/strong&gt; is infrastructure fortification. Changes shouldn&amp;#39;t tax the infra, and any experiment that intends to add load goes through the scalability team first.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Phase three&lt;/strong&gt; is peak, roughly Thanksgiving through Cyber Week. Nothing ships without very senior sign-off, and in Jay&amp;#39;s phrasing, only to make things better.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;There&amp;#39;s no list of qualifying changes, but there is a gate: nothing moves without a senior yes. At the point where being wrong costs the most, the decision goes to a person.&lt;/p&gt;
&lt;p&gt;If you borrow one thing from the slush, borrow that. Then decide who is making the call, and what criteria they&amp;#39;re weighing. &amp;quot;Get a senior yes&amp;quot; makes sense if you can answer both.&lt;/p&gt;
&lt;p&gt;If &amp;quot;get a senior yes&amp;quot; won&amp;#39;t fly, write the judgment down as a few questions in order, so most changes never need an approver.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is a user hitting this right now? If not, it waits.&lt;/li&gt;
&lt;li&gt;Can you stop it without shipping, by turning off a flag or changing a config value? Then do that instead. The fastest fix is the one that skips app review.&lt;/li&gt;
&lt;li&gt;If it does have to ship, can you undo it in one step? A change you can&amp;#39;t back out of is a different conversation than one you can.&lt;/li&gt;
&lt;li&gt;Does it touch checkout, auth, or payments? Those go to a named approver no matter how small the diff looks.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The questions make sure when you&amp;#39;re arguing about a specific change under load, you&amp;#39;re arguing about that change, and not about what the rule was supposed to be.&lt;/p&gt;
&lt;p&gt;A freeze gives you one date to argue about. A bar that raises on a schedule gives engineers a rule they can apply to the change in front of them six weeks out, which is when the risky merges happen.&lt;/p&gt;
&lt;h2&gt;Don&amp;#39;t hand engineers a new tool at peak&lt;/h2&gt;
&lt;p&gt;Etsy moved their mobile apps onto Sentry in 2025, and the work landed right before slush. But they kept the old tool running.&lt;/p&gt;
&lt;p&gt;On Android through the provider list and on iOS through two branches in their crash reporting layer, they set up a dual reporter and sent crashes to both vendors straight through the holidays instead of choosing between them.&lt;/p&gt;
&lt;p&gt;&amp;quot;We were not going to change things for our engineers across the most tentative time of the year,&amp;quot; Jay said. Nothing was taken away. Every engineer went into peak already fluent in the tool they&amp;#39;d been reading all year, with the new one available to go deeper.&lt;/p&gt;
&lt;p&gt;Running both also answered the question an evaluation can&amp;#39;t. Both tools reported a crash-free rate. Did they agree? Did they agree under the heaviest load of the year? Peak became the proving ground, and by the time 2026 started they had the confidence to sunset the old platform.&lt;/p&gt;
&lt;p&gt;Steal this idea. A reporting layer that can fan out to two destinations turns a vendor change into a config change instead of a huge project. Build it before you need it, so the switch is ready when you decide to make it.&lt;/p&gt;
&lt;h2&gt;Know which levers reach your code&lt;/h2&gt;
&lt;p&gt;You can&amp;#39;t force a user to update. What you can do is decide, in advance, how many ways you have to turn off the thing that&amp;#39;s hurting them.&lt;/p&gt;
&lt;p&gt;Etsy has three layers. Most experiments sit behind an experimentation flag, so a bad variant can be switched off as long as the app isn&amp;#39;t crashing at runtime. Changes that aren&amp;#39;t experiments go behind operational flags. And in rare cases they can show a forced upgrade prompt that blocks the app until the user updates, which they almost never do, because users hate it.&lt;/p&gt;
&lt;p&gt;Anything outside those layers, you live with for the whole tail. Jay&amp;#39;s analogy: shipping an app is like shipping AOL discs. Once it&amp;#39;s out there, it&amp;#39;s out there until they get the next one.&lt;/p&gt;
&lt;p&gt;Which is why the flag audit belongs in October, next to everything else on this list. Walk the crash-prone features and check that each one has a remote flag that disables the failing code path without an app release. A flag that exists in the code is useless if the broken path never checks it.&lt;/p&gt;
&lt;h2&gt;Alert fatigue is quiet, and it starts around week three&lt;/h2&gt;
&lt;p&gt;Jay described a failure mode I&amp;#39;ve watched happen on my own teams, and it&amp;#39;s sneaky. Nobody ever announces they&amp;#39;ve started ignoring notifications.&lt;/p&gt;
&lt;p&gt;Week one, people read the notifications. Week two, they skim. Week three, they write a filter. Week four, nobody is reading them, and nobody deleted them either. Everyone assumes somebody else is watching.&lt;/p&gt;
&lt;p&gt;Onboarding into a new tool makes this easy to walk into, because the defaults could be email-heavy and nothing is triaged by priority yet, so everything arrives looking urgent. This is a good time to pay close attention and quickly figure out what is worth the alert and what isn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Etsy runs the opposite. Only two things trigger noisy alerts: crash-free rate, and crashes per hour outside their historical norms. Tripping either one sends an &lt;a href=&quot;https://docs.sentry.io/integrations/notification-incidents/slack/#alerting&quot;&gt;alert to Slack&lt;/a&gt; and opens a corresponding incident.&lt;/p&gt;
&lt;p&gt;Everything else lands in a separate Slack channel that does carry a stream of issues you don&amp;#39;t want to just discard. It&amp;#39;s not there to wake anyone. It&amp;#39;s there so someone can look at what&amp;#39;s rising and route it to a team.&lt;/p&gt;
&lt;p&gt;Two things to add to that. Alert on the floor, not just the ceiling. Jay found a specific checkout type dwindling only because he happened to be building an unrelated Grafana dashboard. It turned out to be an expected migration, but he had no alerting that would have told him. Silence is a signal most people aren&amp;#39;t monitoring.&lt;/p&gt;
&lt;p&gt;And thresholds go stale. Volumes change, so the number that meant something last year doesn&amp;#39;t now. Jay&amp;#39;s own practice is to react when an alert gets noisy, and his advice is a quarterly pass through the list.&lt;/p&gt;
&lt;h2&gt;Issue grouping follows code, ownership follows screens&lt;/h2&gt;
&lt;p&gt;Sentry &lt;a href=&quot;/enhancing-issue-grouping/&quot;&gt;groups issues by code structure&lt;/a&gt;. Etsy&amp;#39;s ownership is organized around surfaces: screens, features, and the teams behind them. Those two things don&amp;#39;t line up, and during peak, that gap can cost you hours.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how this played out. In one issue, 25% of the errors were on the listing page, 25% on the home page, and 50% in the cart. Every team looked at it and correctly said, &amp;quot;that&amp;#39;s not ours.&amp;quot; Nobody was being a bad actor. The data just didn&amp;#39;t say who owned the problem.&lt;/p&gt;
&lt;p&gt;Rather than rearchitect the grouping, Etsy added &lt;a href=&quot;https://docs.sentry.io/platforms/apple/guides/ios/enriching-events/tags/&quot;&gt;custom tags&lt;/a&gt;, including the last screen the user was on, so an issue could carry surface context. Then they went issue by issue and wrote rules to &lt;a href=&quot;https://docs.sentry.io/concepts/data-management/event-grouping/merging-issues/&quot;&gt;split the groups&lt;/a&gt; that swallowed unrelated crashes, and merged the ones that had fragmented. Their in-house experimentation system doesn&amp;#39;t plug into the integration, so experiments go in as tags too.&lt;/p&gt;
&lt;p&gt;None of it was systematic, and it&amp;#39;s still in progress. But in October, &amp;quot;which team owns this&amp;quot; is a question you want answered by a tag rather than by a Slack thread.&lt;/p&gt;
&lt;h2&gt;Start at the issue list, even when you know the error&lt;/h2&gt;
&lt;p&gt;When something spikes, Jay starts at the issue list, even when he already knows which error he&amp;#39;s chasing. He wants to see where it sits in the mix.&lt;/p&gt;
&lt;p&gt;The sparkline on each issue is most of the diagnosis. A long low-volume line that suddenly ramps reads differently than a spike that&amp;#39;s already trending down. He&amp;#39;ll widen the window to 14 or 30 days almost immediately, because 24 hours hides the pattern.&lt;/p&gt;
&lt;p&gt;What he&amp;#39;s looking for is whether nearby issues are rising in unison. If they are, the cause is usually one thing: a release, or an experiment ramp. Then the ramp shape gives him a window to check against, and the tags tell him what percentage of events carry the suspect experiment. Fix the cause and several issues close together.&lt;/p&gt;
&lt;p&gt;The alternative is what the notification wants you to do, which is spend an afternoon on one issue and leave its four siblings running.&lt;/p&gt;
&lt;h2&gt;Put crashes in the language the business already uses&lt;/h2&gt;
&lt;p&gt;This is the takeaway I keep thinking about.&lt;/p&gt;
&lt;p&gt;Jay&amp;#39;s old CTO ran a monthly meeting on availability metrics, and other teams could connect their technical health directly to business impact. Crashes didn&amp;#39;t have the same easy connection, so &amp;quot;a crash happened, so what&amp;quot; was a hard conversation to have with a product manager.&lt;/p&gt;
&lt;p&gt;He fixed it by working with Etsy&amp;#39;s business analysts, who sit embedded with product teams and measure thousands of experiments a year against metrics nobody argues about. The formula they landed on:&lt;/p&gt;
&lt;p&gt;Jay flags the obvious objection himself. It&amp;#39;s an estimate, and not every crash costs you an order. That&amp;#39;s fine. The number isn&amp;#39;t there to be precise, it&amp;#39;s there to make crash rate a thing you can discuss with anyone in the building. He reports it monthly, up to his CTO.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re trying to get &lt;a href=&quot;https://sentry.io/solutions/application-observability/&quot;&gt;observability&lt;/a&gt; funded, this is the move. Find the two or three metrics your business already runs on and connect your technical health to them. Hours saved works the same way: prove a job that took an afternoon now takes ten minutes, multiply by loaded engineer cost, and you&amp;#39;ve made the case in a currency the business already tracks.&lt;/p&gt;
&lt;h2&gt;Earn the automation by doing it manually first&lt;/h2&gt;
&lt;p&gt;Etsy&amp;#39;s crash triage didn&amp;#39;t start automated. It started with somebody asking, &amp;quot;hey, can you go look at this week&amp;#39;s crash rate?&amp;quot;&lt;/p&gt;
&lt;p&gt;That only goes so far, so they formalized it: a manual process of checking both platforms, finding the top issues, routing them to teams, and following up on the ones lagging. Then it became a weekly rotating shift with capacity allocated in the sprint. Then engineers being engineers, they wired the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP server&lt;/a&gt; into it to generate the report that goes into the weekly ticket. Now it&amp;#39;s an agent skill, and the next step is putting it behind an agent.&lt;/p&gt;
&lt;p&gt;The accuracy story is the useful part. Early on, the automated version assigned about three out of ten crashes correctly, which is not good enough to trust. It got better by adding signals: the custom tags they&amp;#39;d built, git blame, and &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/&quot;&gt;Seer&amp;#39;s&lt;/a&gt; root cause output. It&amp;#39;s still a work in progress.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve watched a lot of people skip straight to the agent. What they get is a loop they can&amp;#39;t debug, because they never ran it themselves and don&amp;#39;t know what the right answer looks like. Etsy knew, because they&amp;#39;d done it by hand for months, which is also what let them score the agent&amp;#39;s output at all.&lt;/p&gt;
&lt;h2&gt;Where to start&lt;/h2&gt;
&lt;p&gt;If your peak is coming and you have six weeks, the order Jay&amp;#39;s experience suggests is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Cut your alert list to what&amp;#39;s worth waking someone for, and give everything else a channel instead of an inbox.&lt;/li&gt;
&lt;li&gt;Add the tags that answer &amp;quot;whose is this&amp;quot; before you need to ask it under pressure.&lt;/li&gt;
&lt;li&gt;Check which of your mitigation levers reach the code you&amp;#39;re worried about.&lt;/li&gt;
&lt;li&gt;Write down what a crash costs, roughly, in a number your business already uses.&lt;/li&gt;
&lt;li&gt;Change nothing about your tooling in the four weeks that matter.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;None of that is a capacity problem. It&amp;#39;s all decided before traffic arrives.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://sentry.io/resources/etsy-workshop/&quot;&gt;full workshop recording&lt;/a&gt; runs about an hour, including the audience questions. If you want a checklist to work from, we keep one in the &lt;a href=&quot;https://sentry.io/resources/holiday-e-commerce-checklist/&quot;&gt;holiday e-commerce guide&lt;/a&gt;. If you want to work through the mobile side of this, the &lt;a href=&quot;https://docs.sentry.io/product/releases/health/&quot;&gt;release health&lt;/a&gt; docs cover crash-free rate and session tracking, and &lt;a href=&quot;https://docs.sentry.io/product/monitors-and-alerts/alerts/&quot;&gt;alert rules&lt;/a&gt; cover the thresholds worth paging on.&lt;/p&gt;
</content:encoded></item><item><title>Big improvements to Seer Agent</title><link>https://blog.sentry.io/big-improvements-to-seer-agent/</link><guid isPermaLink="true">https://blog.sentry.io/big-improvements-to-seer-agent/</guid><description>Seer Agent can now write to your Sentry projects and pull in infrastructure data from Datadog and Google Cloud Platform — turning it from a debugging rubber duck into a full-time assistant.</description><pubDate>Tue, 29 Sep 2026 07:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Today marks exactly five months since we &lt;a href=&quot;https://blog.sentry.io/introducing-seer-agent/&quot;&gt;launched Seer Agent&lt;/a&gt;, our friendly AI agent for querying all things in your Sentry projects (well, five months and a day ago, but close enough). Since then, we&amp;#39;ve had a lot of chats with Seer Agent. You may have even seen a few of them popping up on social media recently. It&amp;#39;s become an integral part of our debugging workflows and feature iteration process.&lt;/p&gt;
&lt;p&gt;Our goal has always been to have Seer Agent do much more: handle more tasks, gather more data, and basically become your go-to debugging assistant. Today, we&amp;#39;re excited to announce some new capabilities that get us closer to that goal.&lt;/p&gt;
&lt;h2&gt;Interact more with your Sentry projects&lt;/h2&gt;
&lt;p&gt;Up until this point, Seer Agent was primarily a tool for gathering information. Sure, you could trigger a &lt;a href=&quot;https://sentry.io/product/seer/autofix/&quot;&gt;Seer Autofix&lt;/a&gt; from Seer Agent alerts, but having the agent take action on your behalf in Sentry was usually met with a response like this.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s pretty frustrating. Seer Agent has access to the data and knows how to use it, so why couldn&amp;#39;t it just help out? Well, now it can. Seer Agent has the ability to directly interact with the &lt;a href=&quot;https://docs.sentry.io/api/&quot;&gt;Sentry API&lt;/a&gt; to perform write actions on your behalf. A few examples of what Seer Agent can help you with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set up &lt;a href=&quot;https://docs.sentry.io/product/dashboards/custom-dashboards/&quot;&gt;custom dashboards and widgets&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Create &lt;a href=&quot;https://docs.sentry.io/product/monitors-and-alerts/monitors/&quot;&gt;monitors and alerts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.sentry.io/product/issues/states-triage/&quot;&gt;Assign, resolve, and archive issues&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Save &lt;a href=&quot;https://docs.sentry.io/product/issues/issue-views/&quot;&gt;explore queries and issue views&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With so many new capabilities, you might be wondering what sort of permissions Seer Agent has. We&amp;#39;ve made sure to default Seer Agent to the same level of permissions you have as a user, and Seer Agent will explicitly ask for permission before executing a task if it doesn&amp;#39;t detect the proper write scope. Those permissions also don&amp;#39;t persist beyond a single chat, so you don&amp;#39;t have to worry about giving Seer Agent standing access to your Sentry organization.&lt;/p&gt;
&lt;h2&gt;Collect data from more places&lt;/h2&gt;
&lt;p&gt;As we talked about in &lt;a href=&quot;https://blog.sentry.io/introducing-seer-agent/&quot;&gt;the post introducing Seer Agent&lt;/a&gt;, the problems your application runs into don&amp;#39;t always show up as issues inside Sentry. There are a lot of moving parts on both the front end and back end, so diagnosing exactly what went wrong gets tricky if your agent is working within a limited scope.&lt;/p&gt;
&lt;p&gt;Seer Agent is really good at connecting the dots across different Sentry data points, but fully diagnosing a problem sometimes requires information from outside your application. Is there a network problem? Are you hitting a bottleneck with your database? Have you exhausted your hosting resources? Sentry doesn&amp;#39;t capture that type of data — it wasn&amp;#39;t built to.&lt;/p&gt;
&lt;p&gt;That said, it&amp;#39;s still really important information. So we&amp;#39;ve given Seer Agent the ability to incorporate infrastructure data into its issue diagnoses.&lt;/p&gt;
&lt;p&gt;Starting with Datadog and Google Cloud Platform, you can now connect external monitoring platforms directly to Seer Agent via the new &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/settings/seer/connectors&quot;&gt;Seer Connectors&lt;/a&gt; screen. This gives Seer Agent the ability to read data from those tools and use it to better diagnose issues, validating its analysis across both the front end and back end of your application.&lt;/p&gt;
&lt;p&gt;One important note on setting up these connections: OAuth isn&amp;#39;t currently supported, so you&amp;#39;ll need an API key instead. It&amp;#39;s best to make sure the Sentry admin setting up the connection either has access to the necessary environments or has been given the necessary key.&lt;/p&gt;
&lt;h2&gt;From rubber duck to full-time assistant&lt;/h2&gt;
&lt;p&gt;These updates mark a really exciting evolution for Seer Agent. Up until this point, Seer Agent has excelled as a rubber duck for debugging — an open-ended sounding board for chatting about issues, digging into application performance, and answering questions. That was never the final goal, although everyone needs a good rubber duck now and again. We always saw Seer Agent becoming your full-time debugging assistant: one that helps not just at the moment of an incident, but on a continual basis.&lt;/p&gt;
&lt;p&gt;What does that mean in practice? With these new capabilities, here&amp;#39;s how you might start interacting with Seer Agent:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;Hey Seer, take a look at my Sentry project and help me organize the issues by severity. Update the priority and assign those issues to the most relevant engineers.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;Hey Seer, build me a dashboard that gives me a consolidated view across all my Sentry projects.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;Hey Seer, look at all my API routes and create metric monitors for the ones that are most heavily trafficked.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Just a few ideas (see the &lt;a href=&quot;https://sentry.io/cookbook/seer-agent-use-cases/&quot;&gt;Seer Agent use cases recipe&lt;/a&gt; for more), but the net outcome is that Seer Agent is getting more tightly integrated into the Sentry platform and can act on your behalf the way an AI assistant should.&lt;/p&gt;
&lt;h2&gt;What&amp;#39;s next?&lt;/h2&gt;
&lt;p&gt;Give it a try and let us know what you think! You can use Seer Agent directly in the Sentry UI, or by enabling the &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/settings/integrations/slack&quot;&gt;Slack integration&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Seer Agent is currently in beta and free for all users. For more information, check out the &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/&quot;&gt;Seer documentation&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>Measuring the back/forward cache with Application Metrics</title><link>https://blog.sentry.io/bfcache-metrics/</link><guid isPermaLink="true">https://blog.sentry.io/bfcache-metrics/</guid><description>A bfcache hit leaves no trace in ordinary metrics. Here&apos;s how Sentry&apos;s bfcacheMetricsIntegration makes back/forward cache health measurable.</description><pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There is a moment every web user knows by feel. You click a link, read the page, hit Back, and the previous screen is &lt;em&gt;just there&lt;/em&gt;. No spinner, no flash of white, no jitter.&lt;/p&gt;
&lt;p&gt;This is the &lt;strong&gt;bfcache&lt;/strong&gt; (back/forward cache) in action, and for most teams it feels invisible. Your dashboards can be green, your Web Vitals healthy, your LCP the best it has ever been, but if the bfcache doesn&amp;#39;t deliver that instantaneous feel that allows users to navigate back and forth without waiting, your users feel it and you would never know.&lt;/p&gt;
&lt;p&gt;That blind spot is exactly what we went after. Shipping &lt;a href=&quot;https://sentry.io/product/metrics/&quot;&gt;application metrics&lt;/a&gt; meant we could finally turn any browser signal we could name into a number you can chart, so we started hunting for the signals that matter but never surfaced with other telemetry data types (e.g. spans). The bfcache was at the top of the list. The result is the new &lt;code&gt;bfcacheMetricsIntegration&lt;/code&gt;. It turns a decision the browser makes &lt;em&gt;almost&lt;/em&gt; silently, thousands of times a day into something you can measure, track, and fix.&lt;/p&gt;
&lt;h2&gt;How the bfcache impacts critical experiences&lt;/h2&gt;
&lt;p&gt;When you navigate away from a page, the browser normally tears it down. Scripts stop, memory is freed, the DOM is gone. If you come back later the page is rebuilt from scratch, listeners fire, fetch calls fan out, and spinners spin.&lt;/p&gt;
&lt;p&gt;The bfcache short-circuits all of that. The browser freezes it in place, a complete in-memory snapshot of the DOM, the JavaScript heap, the scroll position, all of it.&lt;/p&gt;
&lt;p&gt;On a back or forward navigation, it thaws that snapshot and hands it straight back. The transition is effectively instant, because there is nothing to load. The page was never really gone.&lt;/p&gt;
&lt;p&gt;This is not a niche optimization. Back and forward navigations are one of the highest-frequency paths on the web, and they dominate the flows where perceived speed could convert into business value. Take for example ecommerce product-to-listing bouncing, search-result back and forth, documentations, media browsing, and marketplaces. The payoff is also biggest for users on slower networks or devices, who would otherwise pay the full cost of a reload every time they hit Back. For these journeys, &amp;quot;how fast is the Back button&amp;quot; should be a first-class performance question, and often a bigger one than fresh page load.&lt;/p&gt;
&lt;p&gt;The difference is easiest to feel side by side. A miss means rebuilding the whole page from scratch, refetching, re-rendering, and losing where the user was.&lt;/p&gt;
&lt;h2&gt;It&amp;#39;s more about discovery&lt;/h2&gt;
&lt;p&gt;Every performance tool is built around the page-load lifecycle, including Sentry&amp;#39;s. To your usual tooling, a bfcache hit is indistinguishable from &lt;em&gt;nothing happening at all&lt;/em&gt;, which is why back/forward navigations sometimes go unnoticed.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a paradox here. The better your bfcache works, the &lt;em&gt;less&lt;/em&gt; data your existing tools collect, because success is silence. You cannot track what you cannot see, and the healthiest case here is the one that leaves no trace (pun intended).&lt;/p&gt;
&lt;p&gt;What makes it trickier still is that the browser decides whether a page is eligible for bfcache based on heuristics that shift and drift over time, which can disqualify your pages unexpectedly.&lt;/p&gt;
&lt;p&gt;The disqualifiers can be mundane. An &lt;code&gt;unload&lt;/code&gt; listener, a &lt;code&gt;Cache-Control: no-store&lt;/code&gt; header, an open connection, or a blocker inside an embedded &lt;code&gt;iframe&lt;/code&gt; have all kept pages out of the cache before. By the time you read this, some of them may no longer apply, and new ones could have taken their place. You or a third-party script can add any of them without noticing.&lt;/p&gt;
&lt;p&gt;So eligibility can regress with simple code changes, or without any code changes at all. Fighting the regression via tests or code reviews isn&amp;#39;t viable. This is meant to be actively tracked and fixed.&lt;/p&gt;
&lt;p&gt;Application metrics really lend themselves to discovery in a way spans or logs don&amp;#39;t. Whenever a miss spikes, you can break it down by route, then release, then browser, until the culprit is revealed. Every &amp;quot;what about x&amp;quot; is just another query away, with no need to redeploy or add new instrumentation.&lt;/p&gt;
&lt;h2&gt;How it works&lt;/h2&gt;
&lt;p&gt;The browser already tells you everything. Both the pageshow event and &lt;code&gt;notRestoredReasons&lt;/code&gt; API describe exactly whether a page was ineligible for the bfcache, and why.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;bfcacheMetricsIntegration&lt;/code&gt; models these signals as three &lt;a href=&quot;https://docs.sentry.io/product/metrics/&quot;&gt;&lt;strong&gt;application metrics&lt;/strong&gt;&lt;/a&gt; (subject to browser support) each carrying some attributes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;browser.bfcache.navigation&lt;/code&gt;&lt;/strong&gt; is a counter, one per back/forward navigation, carrying:&lt;ul&gt;
&lt;li&gt;&lt;code&gt;browser.bfcache.outcome&lt;/code&gt;: &lt;code&gt;hit&lt;/code&gt; or &lt;code&gt;miss&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;browser.bfcache.not_restored_reason_count&lt;/code&gt;: how many reasons the browser reported.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;browser.bfcache.not_restored&lt;/code&gt;&lt;/strong&gt; (Chromium only) is a counter, one per not-restored reason on a miss, carrying:&lt;ul&gt;
&lt;li&gt;&lt;code&gt;browser.bfcache.reason&lt;/code&gt;: the browser&amp;#39;s raw reason string, for example &lt;code&gt;unload-listener&lt;/code&gt;, &lt;code&gt;websocket&lt;/code&gt;, &lt;code&gt;idbversionchangeevent&lt;/code&gt;, &lt;code&gt;response-cache-control-no-store&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;browser.bfcache.frame&lt;/code&gt;: where the blocker lived, &lt;code&gt;top&lt;/code&gt; for the main document or &lt;code&gt;child&lt;/code&gt; for a subframe.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;browser.bfcache.reload.duration&lt;/code&gt;&lt;/strong&gt; is a distribution, in milliseconds, of how expensive the fallback reload was when a back/forward navigation missed. This is the impact metric. It does not claim to know how fast the restore &lt;em&gt;would&lt;/em&gt; have been. Instead, it measures what the miss actually cost the user so you can prioritize by real pain rather than by raw blocker count.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We settled on these three because together they answer the whole arc of a back/forward navigation: Did it restore? Why not? What did the miss cost?&lt;/p&gt;
&lt;h2&gt;How to use it&lt;/h2&gt;
&lt;p&gt;You can enable the integration with a one liner:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;

Sentry.init({
  integrations: [
    // other integrations...
    Sentry.bfcacheMetricsIntegration(),
  ],
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The integration emits application metrics, so rather than hand you a pre-packaged dashboard that answers &lt;em&gt;some&lt;/em&gt; questions and needs constant tweaking, you get to build your own.&lt;/p&gt;
&lt;p&gt;Using &lt;a href=&quot;https://docs.sentry.io/product/dashboards/custom-dashboards/#ai-generated-dashboards&quot;&gt;agentic dashboard creation&lt;/a&gt;, you can tell it exactly what you would like to see using those metrics. Here are a few examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;Using bfcache metrics, I would like to see my overall bfcache hit rate, and whether it is trending up or down over the last month.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Using bfcache metrics, I would like to see which routes are causing the most bfcache misses, so I can prioritize fixing them first.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;Using bfcache metrics, I would like to see the top reasons for bfcache misses, globally or for a given route.&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can tweak the dashboards further by chatting with the wizard until you are satisfied.&lt;/p&gt;
&lt;p&gt;For the full setup and the complete list of metrics and attributes, see the &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/configuration/integrations/bfcache/&quot;&gt;&lt;code&gt;bfcacheMetricsIntegration&lt;/code&gt; docs&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Start tracking your back button&lt;/h2&gt;
&lt;p&gt;The integration is opt-in and launched in &lt;a href=&quot;https://github.com/getsentry/sentry-javascript/releases/tag/11.0.0&quot;&gt;JavaScript SDKs v11&lt;/a&gt;. Hit and miss outcomes work across modern browsers, so you can measure your bfcache health today. The detailed not-restored reasons are currently a Chromium-only enhancement, and that coverage widens on its own as more engines ship the &lt;code&gt;notRestoredReasons&lt;/code&gt; API.&lt;/p&gt;
&lt;p&gt;We are also extending bfcache awareness to features that never counted these navigations, like &lt;a href=&quot;https://docs.sentry.io/product/dashboards/sentry-dashboards/frontend/web-vitals/web-vitals-concepts/&quot;&gt;Core Web Vitals&lt;/a&gt;. A restored page fires no pageload, so those vitals never recorded it. Wiring bfcache in fills that gap, and it is the kind of coverage we would rather build in than leave for you to notice.&lt;/p&gt;
</content:encoded></item><item><title>Building Sentry&apos;s Laravel AI Integration</title><link>https://blog.sentry.io/sentry-laravel-ai-integration/</link><guid isPermaLink="true">https://blog.sentry.io/sentry-laravel-ai-integration/</guid><description>How we built zero-config Agent Tracing for Laravel AI, from AI code review to matching LLM calls with HTTP requests.</description><pubDate>Mon, 21 Sep 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;During a recent Agent Hackweek, an internal Sentry event that gives us a week to build any AI or agent project we want, a colleague pitched me on writing the Laravel AI integration. The goal was to give agents built with Laravel AI the same &lt;a href=&quot;https://sentry.io/product/tracing/ai-agent/&quot;&gt;Agent Tracing&lt;/a&gt; support we already have for other frameworks.&lt;/p&gt;
&lt;p&gt;I liked the idea, he built Sentry&amp;#39;s Agent Tracing for Python based agents before which meant he already had domain knowledge. We were also supposed to use AI for that, so the language barrier wasn&amp;#39;t a real issue.&lt;/p&gt;
&lt;h2&gt;Defensive code that didn&amp;#39;t need to exist&lt;/h2&gt;
&lt;p&gt;I was pretty confident that Claude would handle the coding reasonably well. Laravel exposes Events with typed data, so the shape should be fairly known.&lt;/p&gt;
&lt;p&gt;After the first review, I was a bit shocked to see that Claude did in fact fail to figure out the correct shape of data and created a helper to access fields in the most generic way possible:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;/**
 * Access a property from a value that may be an object, array, or null.
 */
private function flexGet(object|array|null $source, string $key): mixed
{
    if ($source === null) {
        return null;
    }

    if (is_object($source)) {
        return $source-&amp;gt;{$key} ?? null;
    }

    return $source[$key] ?? null;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For anyone else who hasn&amp;#39;t looked at PHP in a minute, this snippet is a generic helper that tries to retrieve values from arrays or objects regardless of their structure. &lt;code&gt;$source-&amp;gt;{$key}&lt;/code&gt; will resolve &lt;code&gt;$key&lt;/code&gt; to its string value and will access the field. Needless to say, this is not good PHP code and is rarely ever useful since most of the time the data shape is more narrow than that.&lt;/p&gt;
&lt;h2&gt;Hooking into Laravel AI&amp;#39;s lifecycle&lt;/h2&gt;
&lt;p&gt;Instrumentation in Python or JavaScript is often relatively easy: we can just wrap or patch a function. In PHP, not so much. We have to rely on hooks from a framework or library or ask users to replace classes with their own. We try to avoid the latter, since an integration that requires users to rewrite their code is not much of an integration. Luckily, Laravel AI emits events for most of the important parts, just not quite all of them.&lt;/p&gt;
&lt;p&gt;At first glance, Laravel AI provided good ways to hook into its lifecycle. The &lt;code&gt;PromptingAgent&lt;/code&gt; and &lt;code&gt;AgentPrompted&lt;/code&gt; events cover an entire agent interaction, while &lt;code&gt;InvokingTool&lt;/code&gt; and &lt;code&gt;ToolInvoked&lt;/code&gt; cover individual tool calls.&lt;/p&gt;
&lt;p&gt;Agent Tracing needs one more level of detail: every LLM invocation should appear as its own Chat span. Laravel AI does not expose an event for these invocations, so relying on its lifecycle events alone would leave a significant gap in the trace.&lt;/p&gt;
&lt;h2&gt;Matching LLM calls to HTTP requests&lt;/h2&gt;
&lt;p&gt;Most LLM invocations ultimately result in HTTP requests, and Laravel provides events for those: &lt;code&gt;RequestSending&lt;/code&gt; and &lt;code&gt;ResponseReceived&lt;/code&gt;. We could create a Chat span for every HTTP request made during an agent interaction, but that would also capture unrelated requests, such as HTTP calls made by tools.&lt;/p&gt;
&lt;p&gt;Laravel&amp;#39;s HTTP events do not include the AI invocation ID, so we cannot associate the requests directly. Instead, we store the configured provider URL prefix for each active invocation and compare it with the URL of every outgoing request. If more than one active invocation matches, we associate the request with the most recently started one. Only matching requests become Chat spans, which filters out unrelated HTTP traffic without losing individual LLM calls.&lt;/p&gt;
&lt;h2&gt;Zero-config tracing&lt;/h2&gt;
&lt;p&gt;The Laravel AI integration shipped with sentry-laravel 4.27. For an application that already has Sentry tracing enabled, updating the SDK is all it takes. There is no integration to register and no Sentry-specific code to add. A regular Laravel AI agent is traced automatically, and implementing &lt;code&gt;Conversational&lt;/code&gt; adds &lt;a href=&quot;https://docs.sentry.io/product/agents/conversations/&quot;&gt;Conversations&lt;/a&gt; support.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;// ...

class DemoOpsAgent implements Agent, Conversational, HasTools
{
    use Promptable, RemembersConversations;

    public function instructions(): Stringable|string
    {
        return &amp;#39;You are DemoOps, an AI launch director. Be concise and practical.&amp;#39;;
    }

    public function messages(): iterable
    {
        return [];
    }

    public function tools(): iterable
    {
        return [
            new GetTime,
            // ...
        ];
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No Sentry code in sight. Agent invocations, LLM requests, and tool calls from this class show up in Agent Tracing, while its conversation context appears in the Agents section in Explore.&lt;/p&gt;
&lt;h3&gt;Seeing it in Sentry&lt;/h3&gt;
&lt;p&gt;Once the first traces arrive in Sentry, the Agents section in Explore lists conversations with their duration, message and error counts, estimated cost, and the tools used.&lt;/p&gt;
&lt;p&gt;Opening a conversation shows the transcript, with tool calls alongside the user&amp;#39;s messages and the agent&amp;#39;s replies.&lt;/p&gt;
&lt;p&gt;Selecting a tool call shows its inputs and outputs. This makes it possible to compare what the tool returned with the agent&amp;#39;s response.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s super easy to get started. If you already have Sentry tracing set up in your Laravel app, all you need to do is update to version 4.27 of the SDK: Laravel Agent Tracing is enabled by default when &lt;code&gt;laravel/ai&lt;/code&gt; is installed and tracing is active. For the full instructions on getting up and running, head over to our &lt;a href=&quot;https://docs.sentry.io/platforms/php/guides/laravel/agent-tracing/&quot;&gt;Laravel Agent Tracing docs&lt;/a&gt; and start exploring your agent traces and conversations in &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/explore/agents&quot;&gt;Explore &amp;gt; Agents&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>Debugging our AI search assistant with agent tracing</title><link>https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/</link><guid isPermaLink="true">https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/</guid><description>See how Sentry engineers used AI Conversations to debug a natural language search assistant and fix a tricky query generation bug.</description><pubDate>Fri, 11 Sep 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In order for users to get the most out of the data being sent to Sentry, it’s important that we make it easy to find that data.&lt;/p&gt;
&lt;p&gt;Our team works on features to help users browse their data to find a particular event using search queries and filters.&lt;/p&gt;
&lt;p&gt;The search bar enables users to find their data by specifying search terms.&lt;/p&gt;
&lt;p&gt;Searching uses the &lt;a href=&quot;https://docs.sentry.io/concepts/search/#query-syntax&quot;&gt;Sentry Search Syntax&lt;/a&gt;, which can be barrier for users. Instead, some prefer to specify their search terms using natural language as they do with other tools these days. We built the Search Query Assistant to convert natural language prompts into Sentry Syntax search terms.&lt;/p&gt;
&lt;p&gt;Since its output is non-deterministic, we use evals to build and measure the  responses’ performance.&lt;/p&gt;
&lt;p&gt;This requires two parts: writing evals for the core user scenarios, and then running them to see how the agent does in producing the correct query.&lt;/p&gt;
&lt;p&gt;When the agent consistently produces the query we expected, great! Move on to the next scenario.&lt;/p&gt;
&lt;p&gt;When the query is wrong, it’s time to debug what the agent saw, what it did, and how we can steer it towards the correct answer.&lt;/p&gt;
&lt;h2&gt;Debugging a failing eval&lt;/h2&gt;
&lt;p&gt;Sometimes, it’s possible to reproduce and debug the eval locally. This works when it doesn’t rely on particular data being present, or when  mock tool calls are sufficient to diagnose and fix the issue.&lt;/p&gt;
&lt;p&gt;In that case, simple tools are enough to look at the results. This could be looking at JSON outputs from the LLM generation or tool calls.&lt;/p&gt;
&lt;p&gt;Sometimes, though, the behavior is more complicated. It’s based on certain data coming back from tool calls, different versions of the LLM model being used or even due to infrastructure errors.&lt;/p&gt;
&lt;p&gt;For those cases, using &lt;a href=&quot;https://docs.sentry.io/product/agents/conversations/&quot;&gt;Sentry&amp;#39;s AI Conversation&lt;/a&gt; view has been a valuable tool to help debug those situations.&lt;/p&gt;
&lt;h2&gt;A real query generation bug&lt;/h2&gt;
&lt;p&gt;While doing some end to end testing, we noticed that queries were returning no results when the field being specified was a custom numerical attribute.&lt;/p&gt;
&lt;p&gt;For example, a shopping service could be sending events with a custom attribute for counting how many items are in a cart during purchase. The user might want to see all purchase events where that number is greater than 10. But when they used the search assistant, it returned no events.&lt;/p&gt;
&lt;h2&gt;Finding the AI Conversation&lt;/h2&gt;
&lt;p&gt;If we were debugging an error in an API endpoint, we would start by going to Sentry to find the event and look at the captured data.&lt;/p&gt;
&lt;p&gt;Even though this is an LLM generated error, we were able to follow the same pattern.&lt;/p&gt;
&lt;p&gt;In this case, we navigated to the Agents view and used the filters to find the interaction. Here we could filter on the time range, agent being used (in this case it was for traces) and our own email to find the trace.&lt;/p&gt;
&lt;p&gt;From there, we could look at the timeline of the interaction. Much easier than looking at a JSON blob.&lt;/p&gt;
&lt;p&gt;From there, we could see the system prompt, LLM generation and tool calls that were made in order to generate that (incorrect) response.&lt;/p&gt;
&lt;p&gt;It’s often important to know why a tool call returned particular data. From this view, we can follow the link to the trace, which shows us the backend API call the agent made, the same way we would investigate a non-AI error like a front-end bug.&lt;/p&gt;
&lt;p&gt;Looking at the timeline and trace, we found the root cause. It was due to how we were using the results of the tool call (from our own API endpoint) in order to generate the system prompt.&lt;/p&gt;
&lt;p&gt;The prompt showed the available fields using the name by itself &lt;code&gt;bug__predictions_count&lt;/code&gt; instead of the form &lt;code&gt;tags[bug_predictions_count, number]&lt;/code&gt; required in Sentry Search Syntax.&lt;/p&gt;
&lt;p&gt;This gave us enough information to make a new eval scenario to reproduce and fix the issue.&lt;/p&gt;
&lt;h2&gt;Verifying in production&lt;/h2&gt;
&lt;p&gt;While we could see the local eval passing with our fix, it’s satisfying to see it working in production too.&lt;/p&gt;
&lt;p&gt;After it was deployed, we made the same query and saw the correct data being returned.&lt;/p&gt;
&lt;p&gt;We could then go back to the AI Conversation view, find the trace, and confirm that the system prompt now had the corrected information in it. We could also see the parameter passed into the API call, returning the correct data.&lt;/p&gt;
&lt;h2&gt;Now part of local dev too&lt;/h2&gt;
&lt;p&gt;It’s proven to be so useful that we’ve instrumented our local eval runs to send the data to Sentry too. That means we can iterate on the eval locally and see the results in Sentry before we even need to open a pull request.&lt;/p&gt;
&lt;h2&gt;Familiar tools reduce friction&lt;/h2&gt;
&lt;p&gt;By having the &lt;a href=&quot;https://sentry.io/product/tracing/ai-agent/&quot;&gt;AI conversation traces&lt;/a&gt; inside Sentry alongside our other event data, we could&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;leverage familiar tools for finding the relevant conversation trace&lt;/li&gt;
&lt;li&gt;avoid having to copy / paste IDs or data between tools&lt;/li&gt;
&lt;li&gt;jump directly to the related tool calls the agent made to our own APIs to generate a response&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Overall, having these agent traces alongside our other data has made debugging issues like this a lot easier. It’s now the first place we go when digging into a query response that needs improvement.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re building your own AI agents, check out &lt;a href=&quot;https://docs.sentry.io/product/agents/&quot;&gt;Sentry&amp;#39;s agent tracing docs&lt;/a&gt; to see how to get this same visibility into your own traces.&lt;/p&gt;
</content:encoded></item><item><title>Application Metrics caught my broken size estimator</title><link>https://blog.sentry.io/metrics-caught-ai-size-estimate/</link><guid isPermaLink="true">https://blog.sentry.io/metrics-caught-ai-size-estimate/</guid><description>The numbers your app lives on don&apos;t belong in logs or on sampled spans. Here&apos;s how a browser video converter&apos;s KPIs made the case for Application Metrics.</description><pubDate>Tue, 01 Sep 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There&amp;#39;s a very specific kind of frustration that comes from waiting several minutes for a video to encode, dragging it into a message, and getting hit with a &amp;quot;file too large&amp;quot; error.
Then you&amp;#39;re blindly trying to shave off a few more megabytes by re-encoding, maybe at a lower resolution or a smaller bitrate, hoping you won&amp;#39;t have to do it more than one or two more times.
Here&amp;#39;s how I used Sentry&amp;#39;s Application Metrics to make a more accurate video size estimator.&lt;/p&gt;
&lt;p&gt;Recently I was working on one of my vibe-coded projects (as one does): &lt;a href=&quot;https://cliparr.dev/&quot;&gt;Cliparr&lt;/a&gt;, a self-hosted tool for creating clips from videos.
Naturally, it would be ideal to know the size of the output file &lt;em&gt;before&lt;/em&gt; exporting it.&lt;/p&gt;
&lt;p&gt;Theoretically, calculating the size of a video should be pretty simple. If you know the target bitrate and the duration of the clip, you can simply multiply them together to get the final output size.
That should be true for any video format, regardless of codec or container.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;[bitrate] x [duration] = [size]&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But I found it difficult to trust whether that would hold true in practice, across a range of devices, browsers, and formats.
I have some experience editing videos, done a little bit of research, and can always ask the magic AI box. But how would I know for sure if what I expect to be true matches reality?&lt;/p&gt;
&lt;p&gt;What kind of unknown factors might make this simple estimate wrong in practice? I had a few ideas, one I&amp;#39;ll mention in a moment, but I was more concerned with what I might not know.&lt;/p&gt;
&lt;p&gt;At first I started by simply converting a bunch of videos from my computer manually and checking to see how accurate it was. It was looking pretty accurate...
But I realized I wanted to get a little more scientific about it. I could set up a matrix of different formats, codecs, quality settings, etc.&lt;/p&gt;
&lt;p&gt;And then I realized I&amp;#39;m both slightly too lazy for that, and there may be a better way. I could simply record real-world usage of the tool and see how accurate it is in the situations that people actually use it.&lt;/p&gt;
&lt;p&gt;Using Sentry&amp;#39;s &lt;a href=&quot;https://docs.sentry.io/product/metrics/&quot;&gt;Application Metrics&lt;/a&gt; to monitor and visualize the conversion results, I found one example where my estimate was off by &lt;strong&gt;83%&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;A Win-Win-Win for my open-source project&lt;/h2&gt;
&lt;p&gt;Cliparr integrates with Plex and Jellyfin, but all the transcoding happens on-device, in the browser, via &lt;a href=&quot;https://mediabunny.dev/&quot;&gt;MediaBunny&lt;/a&gt;, so nothing ever gets uploaded to or processed on the server.
It could nearly be a static site, but it has a small proxy server for authentication and accessing media files.&lt;/p&gt;
&lt;p&gt;Opt-in telemetry would&amp;#39;ve been a fair way to go, but the self-hosted community isn&amp;#39;t typically keen on sending data, and I didn&amp;#39;t want to change the setup flow for now.
That left me with no way to measure estimate accuracy from the app itself, but the constraint gave me an idea that would pay off threefold:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Real data&lt;/strong&gt; to improve the estimates, without touching anyone&amp;#39;s self-hosted install.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A new tool&lt;/strong&gt; people could use right on the site, no account or hosting required.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An SEO win&lt;/strong&gt; from another genuinely useful reason to visit the website and come back.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I separated the export engine from the editor and shipped it as a standalone package that I could use on the public website to create &lt;a href=&quot;https://cliparr.dev/convert&quot;&gt;&lt;code&gt;Cliparr Convert&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a minimal in-browser video converter with simple presets, useful for converting between file types and compressing videos when size limits might be an issue.
This is &amp;quot;hosted&amp;quot; (this one actually &lt;em&gt;is&lt;/em&gt; fully static) on the public Cliparr site, so anyone can use it without installing anything, though it&amp;#39;s available as a progressive web app (PWA) if you want it.&lt;/p&gt;
&lt;p&gt;This page has been minimally instrumented with &lt;a href=&quot;https://docs.sentry.io/product/metrics/&quot;&gt;Sentry&amp;#39;s Application Metrics&lt;/a&gt; to &lt;em&gt;anonymously&lt;/em&gt; track the key performance indicators (KPIs) I care about for improving the size estimation feature.
The only data that leaves the browser is numbers, never the media itself, filenames, or URLs. In this case, we aren&amp;#39;t even using tracing, just metrics.&lt;/p&gt;
&lt;h2&gt;Tracking KPIs with counters and distributions&lt;/h2&gt;
&lt;p&gt;These are the three main questions I wanted to be able to answer with the metrics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Is the size estimate accurate?&lt;/strong&gt; (How far off is the estimate from reality?)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What media types are people actually converting?&lt;/strong&gt; (What should I focus on improving first?)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is it even working?&lt;/strong&gt; (Are conversions completing?)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Those are three KPIs I can track and improve over time, without ever touching anyone&amp;#39;s self-hosted install.&lt;/p&gt;
&lt;p&gt;With the simple anonymous metrics I collected, I was able to create a fairly detailed dashboard for monitoring each KPI as well as a few other interesting metrics that fell out of the data.&lt;/p&gt;
&lt;h3&gt;KPI #1: Is the estimate honest?&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;The key metric:&lt;/strong&gt; how accurate is our size estimation formula in the real world?&lt;/p&gt;
&lt;p&gt;Well, I already expect our estimate won&amp;#39;t be perfect, because in the real world, we rarely have a perfect, constant bitrate.&lt;/p&gt;
&lt;p&gt;Right now, Cliparr has a &lt;em&gt;target&lt;/em&gt; bitrate, but it is using a variable bitrate (VBR) encoder, which means that the encoder will vary the bitrate based on the content of the video.
For quality, this is a good thing, and it means the final size will be smaller than it otherwise would have been.
But it also means that our formula is already only a very rough estimate and could be off by a significant amount for some videos, theoretically.&lt;/p&gt;
&lt;p&gt;Still, for now, how far off is it on average? And what do outliers look like?&lt;/p&gt;
&lt;p&gt;For every completed conversion, I record the ratio of the &lt;em&gt;actual&lt;/em&gt; size to the &lt;em&gt;estimated&lt;/em&gt; size as a &lt;a href=&quot;https://docs.sentry.io/product/metrics/#distributions&quot;&gt;distribution metric&lt;/a&gt;, alongside the raw numbers:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;// One completed conversion, recorded as a family of measurements.
const attributes = {
  &amp;quot;estimate.basis&amp;quot;: outputSizeEstimate.basis, // transcode-plan | gif-profile | …
  &amp;quot;output.format&amp;quot;: format,                    // mp4 | webm | gif | …
  &amp;quot;export.quality&amp;quot;: selectedQuality,          // sharp | balanced | compact
};

Sentry.metrics.distribution(&amp;quot;convert.output.bytes&amp;quot;, actualBytes, { unit: &amp;quot;byte&amp;quot;, attributes });

const estimateBytes = outputSizeEstimate.bytes;
if (typeof estimateBytes !== &amp;quot;number&amp;quot; || estimateBytes &amp;lt;= 0) return; // no estimate? skip the ratio

const ratio = Number((actualBytes / estimateBytes).toFixed(3));
Sentry.metrics.distribution(&amp;quot;convert.estimate.delta_bytes&amp;quot;, actualBytes - estimateBytes, { unit: &amp;quot;byte&amp;quot;, attributes });
Sentry.metrics.distribution(&amp;quot;convert.estimate.ratio&amp;quot;, ratio, { attributes }); // no unit, it&amp;#39;s a ratio
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Technically I could calculate the ratio in the dashboard, and that might even be more correct, but this is a little easier for me.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll be able to aggregate the distribution and group it by output format, quality, and which estimator produced it, among other attributes.
I added an &lt;code&gt;estimate.basis&lt;/code&gt; attribute because we use a different formula for GIFs, and we may want to change or version the formula we use for videos later. &lt;strong&gt;&lt;em&gt;Hint&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;ve used Sentry before, you might be wondering why I didn&amp;#39;t use logs instead, or even traces.
Logs, Traces, and Metrics each record events with additional attributes, but each behaves slightly differently, and should be used in different contexts.
Traces could technically carry some of this, but traces are usually heavily sampled, and I want to know about every single conversion, not a slice of them. A trace is also built to follow one unit of work through a system and time it, and a size ratio isn&amp;#39;t a unit of work, just a number each conversion produces at the end.
If you were thinking of using logs, that would be more understandable, but still not the correct choice for this data.
Logs emit application state for debugging, and while they could be visualized, it might not be immediately obvious in the future that one of your logs is critical to monitoring KPIs.&lt;/p&gt;
&lt;p&gt;Metrics record numeric values and aren&amp;#39;t sampled. A metric is a deliberate statement of &lt;em&gt;this is something we measure&lt;/em&gt;, not a debug log that gets deleted once it&amp;#39;s served its purpose.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what it looked like after recording a handful of conversions, both before and after I fixed the estimator.
Read the ratio like this: &lt;strong&gt;1.000 is perfect&lt;/strong&gt;. &lt;strong&gt;1.15 means the real file came out 15% bigger than predicted&lt;/strong&gt;.
&lt;strong&gt;0.85 means it came out smaller&lt;/strong&gt;.
Then, I grouped it by estimator, so we can see how each formula performed.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Estimator&lt;/th&gt;
&lt;th&gt;Samples&lt;/th&gt;
&lt;th&gt;Avg ratio&lt;/th&gt;
&lt;th&gt;Range&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI Suggested Formula&lt;/strong&gt; (old)&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.57&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.30 – 1.83&lt;/td&gt;
&lt;td&gt;Output up to &lt;strong&gt;83% bigger&lt;/strong&gt; than promised&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bitrate Formula&lt;/strong&gt; (new)&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;0.97&lt;/td&gt;
&lt;td&gt;0.84 – 1.05&lt;/td&gt;
&lt;td&gt;Transcodes land within ~5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GIF Estimator&lt;/strong&gt; (alternative)&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;0.91&lt;/td&gt;
&lt;td&gt;flat&lt;/td&gt;
&lt;td&gt;~9% over-estimate&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;In my first attempt at this, I&amp;#39;d simply asked the AI to write a size estimator for me, and for whatever reason, it did &lt;em&gt;not&lt;/em&gt; use a simple &lt;code&gt;bitrate x duration&lt;/code&gt; formula. It was trying to be clever, and it was wrong.&lt;/p&gt;
&lt;p&gt;Look at that top row. After recording a few examples, that first estimator was producing output files up to &lt;strong&gt;83% larger&lt;/strong&gt; than the estimate.&lt;/p&gt;
&lt;p&gt;I expected the estimate to be &lt;em&gt;a little&lt;/em&gt; off, but 83% seemed like there might be an issue with the estimation formula.
I went back to actually take a look at what the agent had written, and it didn&amp;#39;t make any sense.&lt;/p&gt;
&lt;p&gt;The first attempt looked like a bad attempt to guess what might happen if you re-encoded a video at a different resolution.
But resolution doesn&amp;#39;t enter the file size calculation at all. When encoding at a &amp;quot;bitrate&amp;quot;, you are explicitly telling the encoder how many bits to use per second of video.
The encoder is going to use that many bits, regardless of the resolution. It will affect the quality, but not the file size.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;// The first version. Don&amp;#39;t do this.
const estimatedBytes = sourceBytes * (targetHeight / sourceHeight);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here&amp;#39;s what I think happened: when I first asked my assistant to add size estimation, it over-indexed on my prompt.
I might have asked it something like &amp;quot;What about if the resolution changes?&amp;quot;, and I wouldn&amp;#39;t be surprised if I accidentally steered it away from the simpler, correct answer with a question like that.&lt;/p&gt;
&lt;p&gt;After seeing that obvious error thanks to the metrics dashboard, I replaced the broken estimator code with the correct bitrate-based formula,
and added an &amp;quot;estimator basis&amp;quot; attribute, which allows me to split the results easily by which formula was used.
The new bitrate-based estimator has taken us from &lt;em&gt;up to 83% off&lt;/em&gt; to &lt;strong&gt;within about 5%&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;To easily catch those worst-case scenarios, I added a &amp;quot;Max Estimate Ratio&amp;quot; tile to the dashboard for each of the popular conversion workflows, in this case &lt;code&gt;mp4&lt;/code&gt; → &lt;code&gt;webm&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re following along, you can create a new widget in the dashboard, select the &lt;code&gt;Application Metrics&lt;/code&gt; dataset, set the type to &lt;code&gt;Big Number&lt;/code&gt;,
and under &lt;code&gt;Visualize&lt;/code&gt; select &lt;code&gt;convert.estimate.ratio&lt;/code&gt; and change the aggregate function from &lt;code&gt;avg&lt;/code&gt; to &lt;code&gt;max&lt;/code&gt;.
Then add a filter for &lt;code&gt;source.format&lt;/code&gt; = &lt;code&gt;mp4&lt;/code&gt; and &lt;code&gt;output.format&lt;/code&gt; = &lt;code&gt;webm&lt;/code&gt;, if you want separate numbers for each workflow, otherwise you can leave the filters off to just see the overall worst case.&lt;/p&gt;
&lt;p&gt;The same dashboard also caught two things I hadn&amp;#39;t gone looking for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Copy mode over-estimates by ~16%.&lt;/strong&gt; Cliparr doesn&amp;#39;t always need to re-encode the video, sometimes it can just copy it to a new container. But when copying, Cliparr is still using the transcode estimate. We also recorded the duration of each conversion, which made it obvious what was going on when grouped together. Conversions that didn&amp;#39;t need to re-encode were finishing in under a second, and the finished file was coming out about &lt;strong&gt;16% smaller&lt;/strong&gt; than the estimate. I can fix this next by adding a separate estimator for copy mode, which just uses the source file&amp;#39;s size.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GIF runs a steady few percent over.&lt;/strong&gt; GIF estimation happens in a completely different way, but we can see that the estimator is consistently over-estimating by about 9%. We might go in and manually tweak the GIF estimator to see if we can get the average closer to 1.0.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of these were hypotheses I set out to test. They fell out of grouping one distribution by a couple of attributes.&lt;/p&gt;
&lt;h3&gt;KPI #2: What are people actually doing?&lt;/h3&gt;
&lt;p&gt;Assuming we&amp;#39;ll need to focus on improving the estimates in the near future, it would be nice to know which files are most likely to be converted, and what they&amp;#39;ll be converted to. That way, we can prioritize the most common cases first.
By adding the output format and conversion settings as attributes on each conversion, we can see what people are actually doing in practice:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Output format:&lt;/strong&gt; &lt;code&gt;mp4&lt;/code&gt; is &lt;strong&gt;2.5x more common&lt;/strong&gt; than any other format, with &lt;code&gt;webm&lt;/code&gt; a distant second and &lt;code&gt;gif&lt;/code&gt;, &lt;code&gt;mkv&lt;/code&gt;, and &lt;code&gt;mov&lt;/code&gt; tied behind it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Quality and resolution:&lt;/strong&gt; in this sample size, &lt;strong&gt;sharp&lt;/strong&gt; quality at the &lt;strong&gt;original resolution&lt;/strong&gt; is the most common setting, suggesting people aren&amp;#39;t compressing as much as they&amp;#39;re converting.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now that I know what users &lt;em&gt;want&lt;/em&gt;, I can focus on improving the estimator for the most common use cases first, and keep in mind, when building future features, what people are actually doing with the tool.
Compressing video for chat apps was important to me, but maybe it isn&amp;#39;t to most users. Maybe they just want to convert a video to a different format for compatibility, and don&amp;#39;t care about the size at all.&lt;/p&gt;
&lt;h3&gt;KPI #3: Is it even working?&lt;/h3&gt;
&lt;p&gt;Maybe not the most interesting KPI, but clearly an important one: are conversions actually completing?&lt;/p&gt;
&lt;p&gt;This tool runs entirely in the browser and is billed as offline and &lt;em&gt;mobile-friendly&lt;/em&gt;. Am I being disingenuous?
I do not know how different browsers and devices are handling &lt;a href=&quot;https://www.w3.org/TR/webcodecs/&quot;&gt;WebCodecs&lt;/a&gt; under the hood.
While we could, and will, track errors in Sentry, it&amp;#39;s also useful to have a historical view of overall success and failure rates, detached from any specific issue.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll use three counters to map out the conversion funnel and see how many conversions are started, completed, and failed:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ts&quot;&gt;Sentry.metrics.count(&amp;quot;convert.export.started&amp;quot;, 1, { attributes });
Sentry.metrics.count(&amp;quot;convert.export.completed&amp;quot;, 1, { attributes });
// and, in the catch block:
Sentry.metrics.count(&amp;quot;convert.export.failed&amp;quot;, 1, { attributes });
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In my tests, across every conversion in the dataset, &lt;code&gt;convert.export.failed&lt;/code&gt; &lt;strong&gt;never fired once.&lt;/strong&gt;
Good news! It is still mostly just me testing right now, but we&amp;#39;re properly set up for the future.&lt;/p&gt;
&lt;p&gt;Though right now, because I am not implementing tracing or recording any device information deliberately in the metric itself, if there was an issue, I wouldn&amp;#39;t actually know what device or browser it happened on.&lt;/p&gt;
&lt;p&gt;I intentionally started recording the minimum amount of information and can add to it later.
Soon, I will add tracing, which will capture some basic device information, and then metrics and errors in Sentry will be linked together, so I can see which devices are failing and what the errors are.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll leave connecting your metrics to debugging data for another post, but for now, the counters are enough to know the tool is working as intended.&lt;/p&gt;
&lt;h3&gt;KPI #4: Are people installing it?&lt;/h3&gt;
&lt;p&gt;The newest KPI that I&amp;#39;m still wiring up: adoption.
Cliparr Convert is installable as a PWA on mobile and desktop, and without any app-store to report on, I don&amp;#39;t have any way natively to know if people are actually installing it.
But, we can track it with metrics.&lt;/p&gt;
&lt;p&gt;Installing isn&amp;#39;t a single yes/no, though.
The browser has to decide the app is installable, we have to show the prompt, and the person has to click it, accept it, and actually finish the install, assuming no errors or anything like that.
It is technically possible to drop out at any step, so we track the entire &amp;quot;funnel&amp;quot; with a few counters, and then if there are any issues, we can see exactly where people are dropping out.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;convert.pwa.install.prompt.available   →  the browser is willing to offer it
convert.pwa.install.prompt.shown       →  we actually showed the prompt
convert.pwa.install.clicked            →  they engaged with it
convert.pwa.install.accepted           →  they said yes …
convert.pwa.install.dismissed          →  … or they said no
convert.pwa.installed                  →  it landed on their device
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each stage is a counter, tagged with &lt;code&gt;form_factor&lt;/code&gt; (desktop vs. mobile) and &lt;code&gt;install_mode&lt;/code&gt; (&lt;code&gt;ios&lt;/code&gt; vs. &lt;code&gt;native&lt;/code&gt;).
Chrome on Android can open a real install prompt, while iOS has no equivalent API, so there it&amp;#39;s a manual &amp;quot;Add to Home Screen&amp;quot; I can only ask the user to follow.&lt;/p&gt;
&lt;p&gt;Splitting up the funnel this way will likely show me what I expect, that there will be far less installs on iOS, but it will be good to track, and see if there is anything we can do to improve it over time.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s early, and honestly it&amp;#39;s pretty much just me using it now, but everything is wired up and ready to go.
When real traffic arrives, I&amp;#39;ll have a good idea of who is using the tool, on which devices, and how well it&amp;#39;s working for them.&lt;/p&gt;
&lt;h2&gt;The takeaway&lt;/h2&gt;
&lt;p&gt;None of this was super fancy or difficult.
I just wired up a few &lt;a href=&quot;https://docs.sentry.io/product/metrics/#counters&quot;&gt;counters&lt;/a&gt; and &lt;a href=&quot;https://docs.sentry.io/product/metrics/#distributions&quot;&gt;distributions&lt;/a&gt;, and added a couple of attributes to each metric to make it easy to group and filter the data later (like by output format, quality, or resolution).
Then, I was able to create the dashboard I wanted, essentially replicating the matrix of formats, codecs, and quality settings I&amp;#39;d once thought about building by hand, without actually running through all the combinations myself.&lt;/p&gt;
&lt;p&gt;I did create these dashboard widgets the &amp;quot;good-ol&amp;#39;-fashioned&amp;quot; way, but Sentry&amp;#39;s dashboards can also be created in-app with Seer using a prompt like &amp;quot;create a dashboard showing the average estimate ratio for each output format, grouped by quality setting and resolution,&amp;quot; and it will generate the panels for you.&lt;/p&gt;
&lt;p&gt;You also don&amp;#39;t even have to create a dashboard at all. Both in-app and via the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;MCP server&lt;/a&gt;, you can just ask questions about your metrics directly through your agent.
What feels interesting about this going forward to me is just potentially how many questions you can answer by adding relatively few metrics and attributes to your codebase, knowing you don&amp;#39;t have to worry about presentation or reporting right away.&lt;/p&gt;
&lt;h3&gt;Getting started with Application Metrics&lt;/h3&gt;
&lt;p&gt;Ten metrics added to your app, each with five attributes, and you can potentially answer &lt;em&gt;hundreds&lt;/em&gt; of questions about how users interact with your app, or about your app&amp;#39;s performance, without having to write a single query.&lt;/p&gt;
&lt;p&gt;You also don&amp;#39;t even have to create a dashboard at all. Both in-app and via the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;MCP server&lt;/a&gt;, you can just ask questions about your metrics directly through your agent.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re already using &lt;a href=&quot;https://docs.sentry.io/concepts/key-terms/tracing/&quot;&gt;Tracing&lt;/a&gt; and &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/logs/&quot;&gt;Logs&lt;/a&gt;, &lt;a href=&quot;https://sentry.io/product/metrics/&quot;&gt;Metrics&lt;/a&gt; is a natural next step, and &lt;a href=&quot;https://docs.sentry.io/product/metrics/getting-started/&quot;&gt;getting started&lt;/a&gt; takes about as much code as the snippets above. Every Sentry plan, including the free Developer tier, comes with 5GB of Application Metrics, so it costs nothing to start.
Metrics moves your telemetry past &lt;em&gt;just&lt;/em&gt; engineering-level debugging into being able to also answer product-level questions: what people are doing, what&amp;#39;s working, and whether a change actually helped.&lt;/p&gt;
&lt;p&gt;My AI agent wrote a size estimator that was up to 83% off, and I might not have caught it without monitoring some simple KPIs with Application Metrics. If you have a number that matters to your app, consider whether it belongs in logs or traces, or if it deserves its own metric.&lt;/p&gt;
</content:encoded></item><item><title>From one switch to a control panel: meet `dataCollection`</title><link>https://blog.sentry.io/datacollection-control-panel/</link><guid isPermaLink="true">https://blog.sentry.io/datacollection-control-panel/</guid><description>Sentry SDKs replace the `sendDefaultPii` boolean with `dataCollection`, granular options for user data, headers, bodies, GenAI data, and more.</description><pubDate>Fri, 28 Aug 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;This post and its code examples focus on the JavaScript SDKs. If you&amp;#39;re on another platform, it&amp;#39;s still worth reading to understand why we made the change and what&amp;#39;s coming your way.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re replacing the boolean &lt;code&gt;sendDefaultPii&lt;/code&gt; with a new option called &lt;code&gt;dataCollection&lt;/code&gt;. The old switch was all or nothing: turn it on and you got everything, leave it off and you got only a fraction. If you&amp;#39;ve ever wanted the request headers without the cookies, or your GenAI inputs without also shipping user emails, you know where that falls short. &lt;code&gt;dataCollection&lt;/code&gt; turns that one switch into something closer to a control panel, where each category of data is a dial you can turn up, turn down, or filter.&lt;/p&gt;
&lt;h2&gt;What&amp;#39;s changing, and when&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;dataCollection&lt;/code&gt; is coming to every Sentry SDK, and you may have already spotted the option in the JavaScript SDKs as it&amp;#39;s been available since &lt;code&gt;10.57.0&lt;/code&gt;. The version 11 release is where &lt;code&gt;dataCollection&lt;/code&gt; becomes the new default option, removing &lt;code&gt;sendDefaultPii&lt;/code&gt; for good. The concept will be the same across platforms, but the exact defaults and migration steps may differ, and each SDK will cover its own specifics in its release notes.&lt;/p&gt;
&lt;p&gt;For our v11 JavaScript SDKs this is &lt;strong&gt;a behavior change, not a rename&lt;/strong&gt;. The new defaults collect more than the old ones did. &lt;code&gt;sendDefaultPii&lt;/code&gt; is already deprecated and will be removed in v11, and the other Sentry SDKs will retire it on their own timelines, so &lt;code&gt;dataCollection&lt;/code&gt; is where all of this is headed.&lt;/p&gt;
&lt;h2&gt;PII vs. sensitive data&lt;/h2&gt;
&lt;p&gt;The SDK treats two kinds of data differently. PII (or Personally Identifiable Information) is anything tied to a person: a user ID, email, username, name. Sensitive data is credentials and secrets, things like passwords, tokens, and API keys.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PII is collected by default&lt;/strong&gt; with &lt;code&gt;dataCollection&lt;/code&gt;. User identity is often what turns a confusing error into an obvious one, and when you&amp;#39;d rather not have a given category, you opt out with a single line like &lt;code&gt;userInfo: false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;dataCollection&lt;/code&gt; only controls what the SDK collects automatically. Anything you attach manually is still sent. If you call &lt;code&gt;Sentry.setUser(...)&lt;/code&gt; and also set &lt;code&gt;dataCollection: { userInfo: false }&lt;/code&gt;, that user data still gets sent, because you set it explicitly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sensitive data is never collected automatically,&lt;/strong&gt; and that hasn&amp;#39;t changed. Take HTTP headers, which the SDK collects by default. The header names all come through, but any value whose key matches the built-in denylist (&lt;code&gt;auth&lt;/code&gt;, &lt;code&gt;token&lt;/code&gt;, &lt;code&gt;password&lt;/code&gt;, &lt;code&gt;secret&lt;/code&gt;, and similar) is replaced with &lt;code&gt;[Filtered]&lt;/code&gt; before the event leaves your app. You get the header names without the credential values.&lt;/p&gt;
&lt;h2&gt;What changed in the defaults (JavaScript SDK v11)&lt;/h2&gt;
&lt;p&gt;The v11 defaults are more permissive than the v10 ones, and we&amp;#39;d rather you read that here than find it in production. Where an unset &lt;code&gt;sendDefaultPii&lt;/code&gt; used to give you the restrictive baseline, &lt;strong&gt;an unset &lt;code&gt;dataCollection&lt;/code&gt; now collects several categories by default&lt;/strong&gt;, since those are the ones that make your issues useful with no manual setup.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;v10 default (&lt;code&gt;sendDefaultPii&lt;/code&gt; off)&lt;/th&gt;
&lt;th&gt;v11 default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;&lt;code&gt;userInfo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cookies&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;not collected&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;httpHeaders&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;request + response, PII scrubbed&lt;/td&gt;
&lt;td&gt;request + response&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;httpBodies&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;not collected (size only)&lt;/td&gt;
&lt;td&gt;all request/response (truncated)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;urlQueryParams&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;genAI&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;inputs + outputs not collected&lt;/td&gt;
&lt;td&gt;inputs + outputs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;databaseQueryData&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;stackFrameVariables&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;frameContextLines&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;7&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;5&lt;/code&gt; (same default as other SDKs)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;If you&amp;#39;d rather not collect HTTP request data, database queries, or GenAI inputs and outputs, read this table closely before you upgrade. Look hardest at request and response bodies, since that&amp;#39;s the most likely place for sensitive values to show up.&lt;/p&gt;
&lt;h2&gt;Setting up &lt;code&gt;dataCollection&lt;/code&gt;, two ways&lt;/h2&gt;
&lt;p&gt;Most people upgrading to v11 land in one of two camps. Find your migration path below.&lt;/p&gt;
&lt;h3&gt;1. Previous &lt;code&gt;sendDefaultPii: true&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;If you were already running &lt;code&gt;sendDefaultPii: true&lt;/code&gt;, the v11 default matches what you had, so the whole migration is deleting the option.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-jsx&quot;&gt;// v10
Sentry.init({ sendDefaultPii: true });

// v11, same behavior, now the default
Sentry.init({});
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;2. Previous &lt;code&gt;sendDefaultPii: false&lt;/code&gt; (or unset)&lt;/h3&gt;
&lt;p&gt;The &amp;quot;zero-config&amp;quot; approach in v10 behaved like &lt;code&gt;sendDefaultPii: false&lt;/code&gt;. In v11 it collects more.&lt;/p&gt;
&lt;p&gt;If you want to &lt;strong&gt;keep the restrictive v10 behavior&lt;/strong&gt;, this is the case that needs work. Leaving &lt;code&gt;dataCollection&lt;/code&gt; unset opts you into the broader collection, so set the options explicitly to match the old &lt;code&gt;sendDefaultPii: false&lt;/code&gt; behavior:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-jsx&quot;&gt;// v11, preserves the v10 default
Sentry.init({
  dataCollection: {
    userInfo: false,
    cookies: false,
    httpHeaders: {
      request: { deny: [&amp;#39;forwarded&amp;#39;, &amp;#39;-ip&amp;#39;, &amp;#39;remote-&amp;#39;, &amp;#39;via&amp;#39;, &amp;#39;-user&amp;#39;] },
      response: { deny: [&amp;#39;forwarded&amp;#39;, &amp;#39;-ip&amp;#39;, &amp;#39;remote-&amp;#39;, &amp;#39;via&amp;#39;, &amp;#39;-user&amp;#39;] },
    },
    httpBodies: [],
    urlQueryParams: { deny: [&amp;#39;forwarded&amp;#39;, &amp;#39;-ip&amp;#39;, &amp;#39;remote-&amp;#39;, &amp;#39;via&amp;#39;, &amp;#39;-user&amp;#39;] },
    genAI: { inputs: false, outputs: false },
    databaseQueryData: false,
    graphQL: { document: false, variables: false },
  },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Granularity for what you really need&lt;/h2&gt;
&lt;p&gt;While the default configuration of &lt;code&gt;dataCollection&lt;/code&gt; is convenient, the granularity allows you to tailor it to your needs. The key-value fields for &lt;code&gt;cookies&lt;/code&gt;, &lt;code&gt;urlQueryParams&lt;/code&gt;, and both &lt;code&gt;httpHeaders.request&lt;/code&gt; and &lt;code&gt;httpHeaders.response&lt;/code&gt; accept more than a plain on or off. You can pass &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, an &lt;code&gt;allow&lt;/code&gt; list, or a &lt;code&gt;deny&lt;/code&gt; list.&lt;/p&gt;
&lt;p&gt;Keep the headers you actually debug with and deny the ones that carry values you&amp;#39;d rather not store. Allow a specific set of query params and drop the rest. Collect what&amp;#39;s useful, leave out what&amp;#39;s risky, and draw the line wherever your app needs it.&lt;/p&gt;
&lt;h2&gt;Filtering the data that &lt;code&gt;dataCollection&lt;/code&gt; doesn&amp;#39;t cover&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;dataCollection&lt;/code&gt; handles the categories the SDK gathers automatically (manually attached data is always sent, see above in &amp;quot;PII vs. sensitive data&amp;quot;). When you need to redact or drop something specific that falls outside those categories, the event and span hooks are still there.&lt;/p&gt;
&lt;p&gt;For error events, &lt;code&gt;beforeSend&lt;/code&gt; runs before anything is sent, so it&amp;#39;s still where you strip PII by hand or drop an event entirely by returning &lt;code&gt;null&lt;/code&gt;. Nothing about that changes in v11.&lt;/p&gt;
&lt;p&gt;Version 11 also turns on span streaming mode by default. Instead of bundling spans into a single transaction at the end, the SDK sends them in batches as they finish. To modify or redact span data, use &lt;code&gt;beforeSendSpan&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-jsx&quot;&gt;Sentry.init({
  dsn: &amp;#39;example.com&amp;#39;,
  // In v10 you may have wrapped this in withStreamedSpan(). In v11 you can remove that wrapper
  beforeSendSpan: (span) =&amp;gt; {
    // In stream mode the span is a StreamedSpanJSON, so &amp;#39;op&amp;#39; lives on attributes
    if (span.attributes?.[&amp;#39;sentry.op&amp;#39;] === &amp;#39;db.query&amp;#39;) {
      // and &amp;#39;description&amp;#39; is now &amp;#39;name&amp;#39;
      span.name = &amp;#39;[filtered]&amp;#39;;
    }
    return span;
  },
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;beforeSendSpan&lt;/code&gt; can only modify spans, it can&amp;#39;t drop them. To drop spans in &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/tracing/streamed-spans/&quot;&gt;v11&amp;#39;s stream mode&lt;/a&gt;, use &lt;code&gt;ignoreSpans&lt;/code&gt; rather than the old &lt;code&gt;beforeSendTransaction&lt;/code&gt; or &lt;code&gt;ignoreTransactions&lt;/code&gt;, neither of which is available once you&amp;#39;re streaming.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-jsx&quot;&gt;Sentry.init({
  dsn: &amp;#39;example.com&amp;#39;,
  ignoreSpans: [
    &amp;#39;healthcheck&amp;#39;,
    { name: /^GET \//, attributes: { &amp;#39;http.route&amp;#39;: &amp;#39;/api/status&amp;#39; } },
  ],
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Between &lt;code&gt;dataCollection&lt;/code&gt; for the broad categories and these hooks for the specifics, you can get the data exactly how you want it before any of it leaves your app.&lt;/p&gt;
&lt;h2&gt;Before you upgrade&lt;/h2&gt;
&lt;p&gt;Read the defaults table and decide whether the new baseline suits you or whether you want to dial anything back. Take a look at your data-scrubbing config, with request and response bodies at the top of the list. Stream mode is on by default in v11, so check your span filters too. If you drop spans with &lt;code&gt;beforeSendTransaction&lt;/code&gt;, move them to &lt;code&gt;ignoreSpans&lt;/code&gt;. If a &lt;code&gt;Sentry.withStreamedSpan()&lt;/code&gt; wrapper is left over from a v10 setup, unwrap it. Everything else you can tune later, one dial at a time.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re not using the JavaScript SDKs, keep an eye on your own SDK&amp;#39;s release notes, because &lt;code&gt;dataCollection&lt;/code&gt; is on its way to you too, with a migration guide written for your platform. The full JavaScript SDK option list lives &lt;a href=&quot;https://docs.sentry.io/platforms/javascript/configuration/options/#dataCollection&quot;&gt;in the &lt;code&gt;dataCollection&lt;/code&gt; docs&lt;/a&gt;, and the reasoning behind it is written up in the &lt;a href=&quot;https://develop.sentry.dev/sdk/foundations/client/data-collection/&quot;&gt;SDK data-collection spec&lt;/a&gt;. We think the control panel will feel a lot more comfortable than the switch ever did.&lt;/p&gt;
</content:encoded></item><item><title>How to evaluate session replay software: a developer&apos;s guide</title><link>https://blog.sentry.io/evaluate-session-replay-software/</link><guid isPermaLink="true">https://blog.sentry.io/evaluate-session-replay-software/</guid><description>Compare session replay tools on recording methodology, privacy architecture, integration depth, overhead, AI-readability, and mobile support</description><pubDate>Wed, 26 Aug 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Session replay software lets you see exactly what your users saw without having to pull a &lt;em&gt;Freaky Friday&lt;/em&gt; with your customer. The question is: which tool actually delivers on that for your team, your stack, and your regulatory environment?&lt;/p&gt;
&lt;p&gt;This guide covers the architectural decisions that separate session replay tools: how they capture data, where they mask it, how they connect to your error monitoring, what overhead they add, whether their data is consumable by AI debugging agents, and how they handle mobile.&lt;/p&gt;
&lt;h2&gt;Not all session replay tools are built for the same job&lt;/h2&gt;
&lt;p&gt;It can help to think of &lt;a href=&quot;https://sentry.io/product/session-replay/&quot;&gt;session replay software&lt;/a&gt; as falling into two categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;UX analytics tools&lt;/strong&gt; are built for Product Managers and UX researchers trying to understand how users navigate a product: where they click, where they drop off, what confuses them. These tools optimize for rich visual playback and quantitative analysis like heatmaps, funnel analysis, and engagement metrics.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Developer debugging tools&lt;/strong&gt; are built for engineers. The question isn&amp;#39;t &amp;quot;where do users get confused&amp;quot; but &amp;quot;what state was the application in when this error occurred, and what did the user do to get there?&amp;quot; These tools optimize for replay-error correlation.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before evaluating any specific tool, figure out which of these categories your use case falls into, then pressure-test whether the tool was actually built for it. Gorgeous heatmaps with weak error integration won&amp;#39;t help an engineering team trying to debug production incidents.&lt;/p&gt;
&lt;h2&gt;Recording methodology: DOM snapshots vs. pixel capture&lt;/h2&gt;
&lt;p&gt;There are two dominant approaches to recording a session replay. Both have meaningful architectural consequences.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DOM snapshot + mutation recording&lt;/strong&gt; captures an initial snapshot of the DOM, then records every subsequent mutation (element changes, attribute updates, user events) as a stream of structured events. To replay a session, the tool reconstructs the DOM from the initial snapshot and replays the mutations in sequence. This is how open-source libraries like rrweb work, and it&amp;#39;s the approach Sentry uses.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Pixel capture&lt;/strong&gt; takes periodic screenshots or video frames of the rendered page. The output looks like a screen recording.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The tradeoffs run in opposite directions. DOM-based replay is more compressible and more privacy-friendly. Because you&amp;#39;re recording structured events rather than pixels, sensitive data can be redacted at the SDK level before it leaves the browser, and the event stream compresses to a fraction of the size of equivalent video frames. The structured format is also what enables deeper debugging workflows, from integrating replay with error monitoring to querying sessions at scale and feeding data to AI agents.&lt;/p&gt;
&lt;p&gt;Pixel capture, on the other hand, handles complex CSS, canvas elements, and third-party iframes more faithfully than DOM serialization. If visual fidelity is the primary requirement, like your design team needs pixel-perfect playback of complex animations, pixel capture wins on accuracy.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/images/posts/evaluate-session-replay-software/session-replay-player.webp&quot; alt=&quot;Sentry Session Replay player showing a checkout form with masked input fields and a breadcrumb activity panel&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Privacy architecture: where data gets masked matters&lt;/h2&gt;
&lt;p&gt;There are two points where a tool can mask sensitive data: at the SDK (before data leaves the user&amp;#39;s browser) or at ingestion (after the data reaches the provider&amp;#39;s servers).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Client-side masking&lt;/strong&gt; happens before data is ever transmitted. The SDK intercepts DOM mutations and applies masking rules locally, either redacting specific elements you&amp;#39;ve flagged or defaulting to masking everything and requiring explicit opt-in for fields you want to capture.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Server-side scrubbing&lt;/strong&gt; happens after data reaches the provider&amp;#39;s servers. This has real advantages: scrubbing rules can be updated without SDK deployments, the tool can apply more sophisticated pattern matching than client-side SDKs typically support, and it adds a useful second pass even on top of client-side masking. The tradeoff is that data travels to the provider before it&amp;#39;s scrubbed, meaning a data transfer event has already occurred. For applications subject to strict data regulations like GDPR or HIPAA, that distinction often matters.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The default posture matters as much as the capability. A tool that defaults to capturing everything puts the burden on every engineer who touches a form or input field to correctly tag it, for as long as the application runs. A tool that defaults to masking everything requires explicit opt-in. There&amp;#39;s more friction upfront, but it&amp;#39;s typically safer at scale. Neither is universally right; it depends on which default fits your team&amp;#39;s workflow and risk tolerance.&lt;/p&gt;
&lt;p&gt;For GDPR compliance: even with client-side masking, you&amp;#39;ll still need consent mechanisms, data residency controls, and a data processing agreement with your vendor. Check whether the tool supports EU data residency if that&amp;#39;s a requirement. Not all do, and some only offer it on higher pricing tiers.&lt;/p&gt;
&lt;p&gt;One more consideration worth raising with your security team: where the SDK is hosted. An open-source SDK your team can audit and optionally self-host is meaningfully more transparent than a closed-source snippet loaded from an external CDN. If you&amp;#39;re in a security-conscious environment, this distinction will come up during vendor review.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/images/posts/evaluate-session-replay-software/privacy-masking.webp&quot; alt=&quot;Session Replay showing a cart page with all text and images masked by default&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Integration depth: standalone replay vs. contextual debugging&lt;/h2&gt;
&lt;p&gt;How much integration depth matters depends on what you&amp;#39;re using replay for. For product teams running behavioral analysis, a standalone replay tool works well on its own. For engineering teams debugging production issues, it&amp;#39;s probably the most important criterion on this list (no pressure).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;With a &lt;strong&gt;standalone tool&lt;/strong&gt;, finding the replay for a given error means searching by timestamp in a separate product and hoping you land on the right session.&lt;/li&gt;
&lt;li&gt;With &lt;strong&gt;native integration&lt;/strong&gt;, you click through from the error directly to the replay, with the network requests, console errors, and breadcrumbs already surfaced in the same context. No separate investigation, no tab-switching.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In Sentry, a production error issue automatically surfaces the associated session replay without any custom instrumentation. The trace ID from your backend carries through to the frontend replay, and you can move between the error, the trace, and the replay without leaving the tool or copying IDs. Tools that connect via webhooks and custom event tagging can get close, but require setup and ongoing maintenance when either system changes.&lt;/p&gt;
&lt;h2&gt;Pay to play: performance overhead and sampling&lt;/h2&gt;
&lt;p&gt;There&amp;#39;s no such thing as a free render. Session replay adds real performance overhead across CPU, memory, and network. How much varies depending on DOM complexity, mutation frequency, and how aggressively the SDK compresses and batches data.&lt;/p&gt;
&lt;p&gt;That variability is exactly why you should benchmark on your own application rather than relying on vendor-provided numbers run on simple demo pages. We published a &lt;a href=&quot;https://blog.sentry.io/measuring-session-replay-overhead/&quot;&gt;methodology for measuring session replay overhead&lt;/a&gt; across CPU, memory, and network dimensions, which gives you a practical framework for running your own measurements.&lt;/p&gt;
&lt;p&gt;You can balance performance and coverage by adjusting sample rates. Recording 100% of sessions is expensive and usually unnecessary. Most tools support a few strategies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Random sampling&lt;/strong&gt;: Record a fixed percentage of all sessions. Simple, but you might miss rare bugs that surface in only a small fraction of traffic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error-based sampling&lt;/strong&gt;: Always record sessions where an error occurred. This captures high-value debugging context without recording every routine session.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Session-length thresholds&lt;/strong&gt;: Only record sessions above a minimum duration, filtering out bounced sessions with little diagnostic value.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The most effective configuration for engineering teams: record a small random sample for baseline analysis, but always capture full replays when an error fires. Additionally, consider adding replays to critical experiences like checkout flows, or new features. Sentry&amp;#39;s &lt;a href=&quot;https://blog.sentry.io/sampling-strategy-sentry/&quot;&gt;sampling strategy guide&lt;/a&gt; covers the mechanics of setting this up.&lt;/p&gt;
&lt;h2&gt;What AI agents need from your session replay tool&lt;/h2&gt;
&lt;p&gt;As AI-assisted debugging matures, a new question is worth adding to your evaluation checklist: can your replay data be consumed by machines?&lt;/p&gt;
&lt;p&gt;The answer depends almost entirely on recording methodology.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Pixel-capture replay&lt;/strong&gt; stores video frames. If an AI agent needs to analyze a session, it has to work from images, which limits what it can extract. It can&amp;#39;t parse event sequences programmatically, trace user actions to specific code paths, or correlate what happened in the UI with what was happening on the backend.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DOM-based replay&lt;/strong&gt; produces structured event data instead: a timestamped stream of DOM mutations, user inputs, network requests, console messages, and breadcrumbs. An AI agent can analyze that event stream directly, identify anomalous sequences, retrace a bug&amp;#39;s preconditions, or correlate user behavior with a backend error trace.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sentry&amp;#39;s replays already include an AI-generated summary of the user&amp;#39;s session, and &lt;a href=&quot;https://blog.sentry.io/fix-issues-without-user-input-with-session-replay/#how-session-replay-saved-the-day-2&quot;&gt;Seer can analyze the underlying event data&lt;/a&gt; to suggest a likely root cause when an error occurs. Whether other tools can build similar capabilities depends on whether their replay data is structured enough to support it.&lt;/p&gt;
&lt;p&gt;When evaluating tools, check whether replay data is accessible via a structured API and whether individual replay events are exportable.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/images/posts/evaluate-session-replay-software/seer-autofix.webp&quot; alt=&quot;Sentry issue view with Seer Autofix panel showing root cause analysis alongside replay and span evidence&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Mobile support: is the tool cross-platform or cross-platformish?&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://docs.sentry.io/product/session-replay/mobile/&quot;&gt;Session replay on mobile&lt;/a&gt; is a different technical problem than on the web. Rather than serializing a DOM, mobile SDKs record native view hierarchies, touch events, and gesture sequences, and the implementations vary significantly across tools in terms of coverage, fidelity, and stability.&lt;/p&gt;
&lt;p&gt;If your application has meaningful mobile traffic, answer these questions before committing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Does the tool have native iOS and Android SDKs, or only React Native and Flutter wrappers?&lt;/li&gt;
&lt;li&gt;How does the mobile SDK handle masking? Mobile apps commonly handle sensitive data like financial transactions, health information, and authentication flows, and mobile masking implementations are generally less mature than their web equivalents.&lt;/li&gt;
&lt;li&gt;Can you correlate mobile sessions with backend errors the same way you can on web?&lt;/li&gt;
&lt;li&gt;What&amp;#39;s the measured overhead on mobile? Battery and CPU constraints are more significant than on desktop, and recording native view hierarchies is not lightweight.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mobile replay is a newer capability for most tools, so look beyond &amp;quot;yes, we support mobile&amp;quot; in the documentation. Find example replays from production iOS or Android sessions if you can, and verify whether mobile sessions link to backend errors and traces the same way web sessions do.&lt;/p&gt;
&lt;h2&gt;Making the call&lt;/h2&gt;
&lt;p&gt;Different teams will weigh these criteria differently. A few questions to drive the decision:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is the primary consumer of replay data engineers, product managers, or both? (This determines whether debugging integration or analytics depth matters more.)&lt;/li&gt;
&lt;li&gt;Do you operate under GDPR, HIPAA, or other data regulations that make server-side scrubbing a no-go?&lt;/li&gt;
&lt;li&gt;Does your team already use an observability platform? If so, does your replay vendor integrate natively, or is it a bolt-on?&lt;/li&gt;
&lt;li&gt;What percentage of your traffic is mobile, and do you need to debug native mobile sessions?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Use the checklist below to pressure-test any tool against the criteria that matter for your team:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&quot;left&quot;&gt;Criterion&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;Key question&lt;/th&gt;
&lt;th align=&quot;left&quot;&gt;What to look for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Recording methodology&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;How does the SDK capture data?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;DOM-based for debugging and privacy; pixel capture only if visual fidelity is the priority&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Privacy architecture&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Where does masking happen, and what&amp;#39;s the default posture?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Client-side masking with mask-by-default for regulated environments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Integration depth&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Is replay native to your observability platform?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Native pipeline integration vs. webhook-based connection between separate data stores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Performance overhead&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Has the vendor published methodology for measuring overhead?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Benchmark on your own application, not a demo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;AI-readability&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Is replay data accessible via a structured API?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Exportable event streams, not just video playback&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot;&gt;&lt;strong&gt;Mobile support&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Are there native iOS and Android SDKs?&lt;/td&gt;
&lt;td align=&quot;left&quot;&gt;Native SDKs; find real production replays before committing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;If debugging is your primary use case, look for a tool native to your observability stack that masks data by default and links errors to replays automatically. Sentry&amp;#39;s session replay was built around those criteria. If UX research is the priority, a dedicated analytics tool will likely serve you better.&lt;/p&gt;
&lt;p&gt;The decision that costs most teams is skipping past the architectural choices: how data is recorded, where it&amp;#39;s masked, whether it connects to your error context. Those are what determine whether session replay actually helps you ship more reliable software, or just gives you another tool to ignore during an incident.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Learn more:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://sentry.io/product/session-replay/&quot;&gt;Sentry Session Replay&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.sentry.io/measuring-session-replay-overhead/&quot;&gt;Measuring Session Replay Overhead&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.sentry.io/sampling-strategy-sentry/&quot;&gt;Sampling Strategy in Sentry&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item><item><title>Automated agent triage with Agent Tracing and Claude Routines</title><link>https://blog.sentry.io/claude-routines-agent-triage/</link><guid isPermaLink="true">https://blog.sentry.io/claude-routines-agent-triage/</guid><description>How Sentry uses a Claude Routine and the Sentry MCP to automatically triage 800 AI agent conversations overnight and file bugs.</description><pubDate>Thu, 13 Aug 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Every morning, before anyone on the team has looked at a dashboard, a Claude Routine has already read around 800 of the previous night&amp;#39;s conversations from &lt;a href=&quot;https://sentry.io/product/seer/&quot;&gt;Seer, Sentry&amp;#39;s AI agent&lt;/a&gt; for triaging and fixing errors. It flags the ones that look broken, and files tickets for anything new. By the time we sit down with coffee, the triage is mostly done.&lt;/p&gt;
&lt;h2&gt;The problem&lt;/h2&gt;
&lt;p&gt;Before this routine existed, checking on our agent&amp;#39;s behavior meant a custom, one-off flow for pulling data out of our current eval system. Querying options were limited, so most of it came down to hand-rolling a parser for the raw JSON in each trace. Someone had to remember to trigger the analysis and do it manually. Automating this was an option, but we never got around to it due to friction. Plus, we wanted to send the data to the other tools we use day to day, and the current setup didn&amp;#39;t have that kind of connectivity.&lt;/p&gt;
&lt;p&gt;We were looking for a mix of things. Tool call failures, hallucinated outputs, latency spikes, agent loops that went on longer than they should have, and cost anomalies. All of the above, really.&lt;/p&gt;
&lt;p&gt;We had three main goals. Improve reliability by cutting down tool errors, keep an eye on the long tail of unusual runs (the ones that were unusually expensive or made far more tool calls than a typical conversation), and sample the conversations that looked good to actually confirm they were good, not just assume it.&lt;/p&gt;
&lt;h2&gt;The Claude Routine&lt;/h2&gt;
&lt;p&gt;The routine runs each morning as a &lt;a href=&quot;https://code.claude.com/docs/en/routines&quot;&gt;Claude Routine&lt;/a&gt;. It connects through the &lt;a href=&quot;https://mcp.sentry.dev/&quot;&gt;Sentry MCP&lt;/a&gt; (a Model Context Protocol server that lets Claude query Sentry directly) to run &lt;a href=&quot;https://sentry.io/product/tracing/ai-agent/&quot;&gt;Agent Tracing&lt;/a&gt; queries, plus a handful of general queries, against the previous night&amp;#39;s conversations. Each run works through the same steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Pull aggregate stats for the period i.e., how many conversations ran overnight.&lt;/li&gt;
&lt;li&gt;Pull aggregate tool stats: i.e., how many tools had errors, and at what rate.&lt;/li&gt;
&lt;li&gt;From that list of errored tools, sample some spans to see real examples and trends behind the failures.&lt;/li&gt;
&lt;li&gt;Sample a mix of full conversations, both with and without tool errors, and judge whether the agent&amp;#39;s final verdict actually matches its reasoning.&lt;/li&gt;
&lt;li&gt;Pull in the Seer codebase itself for more context.&lt;/li&gt;
&lt;li&gt;Roll all of that into a single report of new findings.&lt;/li&gt;
&lt;li&gt;Search our Linear project for existing tickets, and file new ones only for what isn&amp;#39;t already tracked.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The prompt behind it is intentionally plain to let the LLM handle most of the work and judgment. The routine queries Sentry directly through the Sentry MCP, so there&amp;#39;s no extra tooling to set up. That&amp;#39;s all it takes.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Use the Sentry MCP to look at the last 24hr of &amp;lt;product&amp;gt; conversations
and analyze the results. In particular look for errors that might be
happening during the &amp;lt;product_stage&amp;gt;, say if our tools are broken. But
also sample some success conversations as well to see if they look
correct with secondary inspection.

If you come across new findings/errors, record them in a Linear ticket
for the &amp;lt;linear_project&amp;gt; project.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The Sentry MCP handles pulling and filtering conversations. Claude handles the parts that need judgment: reading a conversation, sampling for trends, and deciding whether something is actually worth a ticket.&lt;/p&gt;
&lt;h2&gt;What this looks like in practice&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;Analyzed the last 24h of &amp;lt;feature&amp;gt; conversations (~445-551 total,
~11k tool calls). No verdict-quality problems found — spot-checked
several conversations and the agent&amp;#39;s reasoning was well-grounded,
correctly downgrading when it lacked repo access rather than
fabricating.

Did find an efficiency issue worth tracking: ~21% of conversations
(83/400 sampled) hit at least one tool error, mostly self-corrected
retries. Root causes:

Search Code sometimes gets fed malformed repo_name values (e.g.
appending a monorepo subpath onto the real slug, like
&amp;quot;foo/bar/applications/integrations&amp;quot; instead of &amp;quot;foo/bar&amp;quot;), causing
&amp;quot;repository not found&amp;quot; until it retries.

 sometimes gets a guessed-wrong project_slug (e.g. &amp;quot;mobile&amp;quot;)
before self-correcting on retry with the right slug + time window.

Two conversations showed 30-56s hangs before an opaque &amp;quot;internal
error&amp;quot; — a real backend latency signal, distinct from the guessing
pattern above, worth an engineering look.

Filed Linear ticket AIML-123 with full details, example conversation
links, and error-rate tables: https://linear.app/getsentry/issue/AIML-123
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The repo-hallucination case above is a good example of what a typical flagged morning looks like. The routine&amp;#39;s tool-error stats surfaced Search Code as having an outsized error rate for the period. Sampling a few of the underlying spans showed the same shape every time: the agent guessing at repo names, one after another, none of them landing. We pulled up the full conversations and it was the same thing every time. The agent had no idea which repo it was looking for.&lt;/p&gt;
&lt;p&gt;Aggregate error rates alone wouldn&amp;#39;t show this. Neither would reading one conversation at a time. It took both. And once we saw it, the fix was straightforward. Just give the agent the repo name instead of making it guess.&lt;/p&gt;
&lt;h2&gt;Lessons learned&lt;/h2&gt;
&lt;p&gt;Running this daily made the feedback loop fast enough that most fixes landed the same day we spotted them.&lt;/p&gt;
&lt;p&gt;As for some best practices:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Sampling both success and failure conversations, not just the ones with tool errors, mattered more than expected. A conversation can complete without a single tool error and still reach the wrong conclusion — that only shows up when something (or someone) checks the reasoning against the verdict.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keeping the prompt focused on judgment rather than data retrieval made the output far more consistent morning to morning. The Sentry MCP handles the querying, so the routine doesn&amp;#39;t need to reconstruct trace-querying logic from scratch every run.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;How to do this yourself&lt;/h2&gt;
&lt;p&gt;With Claude Routines this is very simple. First, make sure &lt;a href=&quot;https://docs.sentry.io/product/agents/&quot;&gt;Agent Tracing&lt;/a&gt; is set up for your agent. Then, add a Claude Routine with a prompt similar to mine that tells it to use the Sentry MCP to find agent traces for your feature. Lastly, make sure the Sentry MCP Connector (and others like Linear) is configured and enabled for the routine so that it can correctly authenticate to Sentry. That&amp;#39;s it! For a full walkthrough, see the &lt;a href=&quot;https://sentry.io/cookbook/automate-ai-agent-triage-claude-routines/&quot;&gt;step-by-step recipe&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>What&apos;s new in Sentry Logs: The summer 2026 roundup</title><link>https://blog.sentry.io/sentry-logs-summer-2026-roundup/</link><guid isPermaLink="true">https://blog.sentry.io/sentry-logs-summer-2026-roundup/</guid><description>Everything that shipped for Sentry Logs this summer: log pinning, JSONL exports, terabyte-scale search, and a dozen usability improvements.</description><pubDate>Tue, 11 Aug 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We got a little behind on updating our changeLOG, so we&amp;#39;re dumping it all into this bLOG post instead. Think of it as one giant, retroactive changelog entry or, if you want to be dramatic about it, one massive prompt injection straight into your feed. Either way: here&amp;#39;s everything that shipped for &lt;a href=&quot;https://sentry.io/product/logs/&quot;&gt;Sentry Logs&lt;/a&gt; this summer.&lt;/p&gt;
&lt;p&gt;Would you rather listen to the team talk about what they built? Check out &lt;a href=&quot;https://www.youtube.com/watch?v=3dirIYmeGYg&quot;&gt;this video where Kyle and Josh talk about the latest updates on Logs&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Pin the log line that matters&lt;/h2&gt;
&lt;p&gt;Sentry now has &lt;a href=&quot;https://sentry.io/changelog/log-pinning/&quot;&gt;log pinning&lt;/a&gt;, so the next time you spot something interesting, you can pin the log line so it stays put while you keep scrolling, streaming in new logs, or refining your search. Pins are also synced to URL state, so a pinned view is a real, shareable link for the next time you want to show a teammate exactly what you&amp;#39;re looking at.&lt;/p&gt;
&lt;h2&gt;Export logs at scale&lt;/h2&gt;
&lt;p&gt;We overhauled logs exports to handle large volumes faster and let you customize exactly what you&amp;#39;re exporting.&lt;/p&gt;
&lt;p&gt;Now, exports go through a &lt;a href=&quot;https://sentry.io/changelog/export-logs-as-jsonl-or-csv/&quot;&gt;dedicated export dialog&lt;/a&gt; where you choose your row count and format up front, including a new JSONL option built for larger exports. The result is a faster export and considerably lighter on our servers, because we&amp;#39;re no longer guessing at what &amp;quot;export everything&amp;quot; should mean.&lt;/p&gt;
&lt;p&gt;And because exports of individual log rows now include full attribute data, not just what&amp;#39;s visible in the table, they&amp;#39;re more useful if you want to pull a batch of logs into your own tooling.&lt;/p&gt;
&lt;p&gt;Exporting is also now aggregate-aware: if you export while viewing an aggregate (say, a count grouped by some attribute), you get those aggregates, matching what you were actually looking at, instead of always falling back to the raw underlying logs.&lt;/p&gt;
&lt;p&gt;This isn&amp;#39;t a logs-only improvement, either. The same underlying export capability is now available across Errors and Tracing.&lt;/p&gt;
&lt;h2&gt;Usability improvements for the log viewer&lt;/h2&gt;
&lt;p&gt;The logs page is faster now. A new, more constrained layout plus loading less data up front both add up to quicker load times. Beyond that, the rest of this is basically our bug tracker&amp;#39;s greatest hits to make using Sentry Logs more delightful to use:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Filters in the trace view Logs tab.&lt;/strong&gt; Previously, the Logs tab inside a trace had no way to filter at all. Now you can narrow down what you&amp;#39;re looking at without leaving the trace.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Every matching search term gets highlighted&lt;/strong&gt;, not just the first one that matches in a line.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The error instance now shows up inline&lt;/strong&gt; in the logs table on an issue, so you can see the error and the logs around it together instead of cross-referencing two views.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Timestamp is now always visible&lt;/strong&gt; in the log details panel, even if you arrived from a dashboard link where the timestamp column had been dropped from the table.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Multi-value search filters now show as individual chips&lt;/strong&gt;, instead of one long comma-separated value. Previously, &lt;code&gt;message contains abc,def&lt;/code&gt; rendered as a single confusing text blob. Now &lt;code&gt;abc&lt;/code&gt; and &lt;code&gt;def&lt;/code&gt; are separate chips.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Drag-to-zoom no longer wrecks your browser history.&lt;/strong&gt; It used to write three history entries per zoom, so hitting &amp;quot;back&amp;quot; didn&amp;#39;t take you where you expected. Now it&amp;#39;s one zoom, one entry.&lt;/p&gt;
&lt;h2&gt;Logs chart enhancements&lt;/h2&gt;
&lt;p&gt;We also made some UX enhancements to our logs charts. In case you haven&amp;#39;t noticed, a lot of it has to do with giving you more room on the screen for your actual logs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Charts can now expand and contract, with a standardized button in the top-right corner. Expand a chart when you want more room to look at it; contract it back down when you&amp;#39;d rather have the space for your logs.&lt;/li&gt;
&lt;li&gt;Y-axis ticks now scale with the chart&amp;#39;s actual height, not your browser&amp;#39;s viewport height. Resize your window and the chart stays legible instead of collapsing down to two ticks.&lt;/li&gt;
&lt;li&gt;Chart hover tooltips are a lot less flaky and no longer immediately disappear if you have auto-refresh enabled.&lt;/li&gt;
&lt;li&gt;We expanded the color palette for grouped series, so it&amp;#39;s easier to tell apart what you&amp;#39;re looking at when a query returns more than a couple of groups.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Scaling logs data with Sentry&lt;/h2&gt;
&lt;p&gt;For orgs sending hundreds of gigabytes or terabytes of logs, the hard problem was never storing the data, it was finding one specific line out of all of it: a needle-in-the-haystack search.&lt;/p&gt;
&lt;p&gt;We put in frontend and backend work this quarter specifically to support that scale, including longer query timeouts with continuations and better handling around rate limits, so search stays usable even with a genuinely large volume of logs.&lt;/p&gt;
&lt;p&gt;A couple of smaller fixes ride along with this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;release:latest&lt;/code&gt; filters now work correctly in Logs and Trace Explorer. They previously returned empty results in some flows, like saved dashboard widgets, which made it look like there was nothing to see when there was.&lt;/li&gt;
&lt;li&gt;Rate limit errors say what they are. If you hit a throughput limit, the UI tells you that you&amp;#39;re being rate limited, instead of surfacing a generic error that looks like something&amp;#39;s broken. And there&amp;#39;s a retry button now, so you don&amp;#39;t have to refresh the entire page to try again.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Try it and tell us what you want to see next&lt;/h2&gt;
&lt;p&gt;We know a list of shipped features isn&amp;#39;t exactly thrilling reading and if you made it to the end of our updates, thank you.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget, if something is broken, missing, or just annoying, we want to hear about it. Hit the product feedback button in-app, or reach our team directly at &lt;a href=&quot;mailto:logs@sentry.io&quot;&gt;logs@sentry.io&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>How we built an automated debugging workflow at Sentry</title><link>https://blog.sentry.io/automated-debugging-workflow-sentry/</link><guid isPermaLink="true">https://blog.sentry.io/automated-debugging-workflow-sentry/</guid><description>How Sentry uses Seer autofix and Claude routines to build an automated debugging workflow that detects, fixes, and routes code issues automatically.</description><pubDate>Thu, 06 Aug 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;AI is going to generate a lot of code from here on out, and a lot of bugs along with it. You already know this. We&amp;#39;ve talked about it before. The bigger challenge is making sure you don&amp;#39;t spend all your time fixing the broken code your agents write.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re going to need a system that makes it easier to fix those issues for you and fortunately, there are a lot of solutions out there for building automated workflows.&lt;/p&gt;
&lt;p&gt;Recently, we&amp;#39;ve been exploring ways to automate our debugging and issue triage process here at Sentry. We also thought it might be helpful to pass along some of our tips and learnings in case you want to try it yourself.&lt;/p&gt;
&lt;h2&gt;It all starts with knowing what&amp;#39;s broken and why&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re going to have AI resolve issues for you, you first need to know when issues come up. No surprise: we use &lt;a href=&quot;https://docs.sentry.io/&quot;&gt;Sentry&lt;/a&gt; a lot here at Sentry. We&amp;#39;ve instrumented our application to emit all kinds of signals and &lt;a href=&quot;https://docs.sentry.io/product/metrics/&quot;&gt;metrics&lt;/a&gt;, which gives us detailed insight into how things are running.&lt;/p&gt;
&lt;p&gt;As you can imagine, that means our &lt;a href=&quot;https://docs.sentry.io/product/issues/&quot;&gt;Issues page&lt;/a&gt; can get quite full, which creates a lot of manual work in &lt;a href=&quot;https://docs.sentry.io/product/issues/states-triage/&quot;&gt;triage&lt;/a&gt;. That&amp;#39;s where we bring in &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/&quot;&gt;Seer&lt;/a&gt;, our AI-powered debugging agent. We have Seer&amp;#39;s &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/autofix/&quot;&gt;autofix&lt;/a&gt; set up across a number of Sentry projects, like core Sentry, our documentation, MCP server, and CLI tool, and their corresponding &lt;a href=&quot;https://docs.sentry.io/integrations/source-code-mgmt/github/&quot;&gt;GitHub repositories&lt;/a&gt;. We&amp;#39;ve also given Seer permission to find the &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/autofix/#root-cause-analysis&quot;&gt;root cause&lt;/a&gt; of an issue, write a plan to fix it, and &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/autofix/#code-generation&quot;&gt;open pull requests&lt;/a&gt; for us automatically. Your org might not be ready to trust the machines that far, and that&amp;#39;s ok. You can control how far Seer goes before a human joins the process. Automation is all about creating less manual work for your engineers, not reducing the number you have.&lt;/p&gt;
&lt;p&gt;Automatic PR generation is useful, but it raises another question: how do you know when there&amp;#39;s a PR to review, and who should review it?&lt;/p&gt;
&lt;h2&gt;Creating a routine for review&lt;/h2&gt;
&lt;p&gt;The hard part of automation usually isn&amp;#39;t the difficulty of the tasks, it&amp;#39;s managing those tasks as they grow in scale. It&amp;#39;s useful that agents can handle small work like writing a code fix, but their real value is the efficiency they create across a system. In our case, Seer is now generating a lot of new pull requests, so how do we make sure they get actioned without inventing a new role like Chief Delegation Officer? More agents.&lt;/p&gt;
&lt;p&gt;When we kicked off this project, we had two focus areas:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Automate the process of creating a fix&lt;/li&gt;
&lt;li&gt;Bring in an engineer when there&amp;#39;s something for them to pick up&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We have a &lt;a href=&quot;https://docs.sentry.io/integrations/notification-incidents/slack/&quot;&gt;Slack channel&lt;/a&gt; set up that notifies us whenever Seer opens a new pull request. This uses a new &lt;a href=&quot;https://docs.sentry.io/product/monitors-and-alerts/alerts/#set-triggers&quot;&gt;alert trigger we recently added&lt;/a&gt;. It&amp;#39;s a general feed — about 90% of the posts are new-PR notifications, with the occasional conversation mixed in. Instead of going through each one by hand, we use a Claude routine. Here&amp;#39;s how we built ours.&lt;/p&gt;
&lt;h3&gt;Runs on a schedule&lt;/h3&gt;
&lt;p&gt;The routine runs hourly and checks our Slack feed for new PRs, we classify that as any PRs that were opened and not actioned upon in the last four hours. That keeps us working only from fresh PRs.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;## PROMPT

You automate the Seer fix-reviewer verification flow in the &amp;lt;#sentry-slack-channel&amp;gt; 
Slack channel (channel_id ). 

This runs every 4 hours, 7 days a week, and unattended — execute autonomously, 
make reasonable choices, and never ask questions. 

Your Slack user_id is . The Sentry bot is . 
End with a short per-PR report.
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Identifies a reviewer&lt;/h3&gt;
&lt;p&gt;First, Claude sends a pre-written Slack message to the &lt;a href=&quot;https://sentry.io/product/seer/agent/&quot;&gt;Seer agent&lt;/a&gt; with a prompt asking who&amp;#39;s best suited to review the PR. Seer looks at commit history in our GitHub repository and finds the person who has worked most closely with the code flagged in Seer&amp;#39;s &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/autofix/&quot;&gt;root cause analysis&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Checks that the PR is open&lt;/h3&gt;
&lt;p&gt;Before assigning a PR, we make sure it still exists. We check its status, and if it&amp;#39;s already merged, closed, or otherwise off, we skip it silently.&lt;/p&gt;
&lt;h3&gt;Pings the reviewer&lt;/h3&gt;
&lt;p&gt;If the PR is valid, the routine tags the reviewer in the thread with the Seer-created PR and asks them to wrap it up by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Merging or closing the PR&lt;/li&gt;
&lt;li&gt;Leaving one line of feedback&lt;/li&gt;
&lt;li&gt;Noting whether this was a good use of Seer&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We also built the routine so it never double-posts a prompt, question, or DM. The goal is for the agent to streamline our work, not add noise to it.&lt;/p&gt;
&lt;p&gt;To be clear, this wasn&amp;#39;t a one-shot setup. We spent a couple of weeks iterating on it. For example, we needed to make sure that engineers weren&amp;#39;t getting pinged on the weekend or that they weren&amp;#39;t getting pinged right after assignment. These were things we only learned by trial and error, and we&amp;#39;re still looking for ways to improve the overall flow. There isn&amp;#39;t a one-size-fits-all-orgs solution here; the key is standing something up that feels right and then iterating out the wrinkles.&lt;/p&gt;
&lt;h2&gt;Early results&lt;/h2&gt;
&lt;p&gt;One caveat: we only rolled this workflow out in mid-July, so we&amp;#39;ll need to revisit it in a few months to really judge how it&amp;#39;s working. Early on, though, the signs are positive. A few of the numbers we&amp;#39;re seeing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;About a 21% increase in the action rate on PRs&lt;/li&gt;
&lt;li&gt;About a 13% increase in the 48-hour response rate on open PRs&lt;/li&gt;
&lt;li&gt;About a 12.5% increase in close-without-merge PRs&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Looking at these results, you might think an increase in close-without-merge isn&amp;#39;t a great stat, so why share it? It could mean the proposed fixes aren&amp;#39;t useful, or that they don&amp;#39;t solve the root of the problem. So we did a little more digging. That wasn&amp;#39;t the case.&lt;/p&gt;
&lt;p&gt;The close-without-merge PRs followed a couple of common themes. They were either a duplicate fix already covered in a separate PR, or the reviewing engineer opted for a more comprehensive fix that went beyond the scope of the original issue. In both cases, the workflow is doing its job. Engineers are getting notified that fixes are ready and taking action on those PRs. That beats a pile of untouched PRs sitting there.&lt;/p&gt;
&lt;p&gt;If there&amp;#39;s one takeaway here, it&amp;#39;s this: automated debugging is possible, and it&amp;#39;s genuinely useful. The key to that is building a system that brings in the right people at the right time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/&quot;&gt;Seer&lt;/a&gt; is the engine that powers this whole workflow for us. We rely on Seer to help us:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Diagnose issues&lt;/li&gt;
&lt;li&gt;Propose a fix&lt;/li&gt;
&lt;li&gt;Alert our Slack channel when it creates a PR&lt;/li&gt;
&lt;li&gt;Identify and inform the right engineer to keep in the loop&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We add a bit of automation with Claude, but largely are leveraging Seer for as much as we can. It&amp;#39;s also inspired us to build even more functionality into Seer to enable this loop. We&amp;#39;re exploring ways to have Seer assign PRs to the most relevant user and notify them automatically.&lt;/p&gt;
&lt;h2&gt;Try it yourself&lt;/h2&gt;
&lt;p&gt;Best of all, everything we&amp;#39;ve described is available for you to try today, so now it&amp;#39;s your turn. Here&amp;#39;s the setup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.sentry.io/integrations/notification-incidents/slack/#seer-agent&quot;&gt;Seer agent in Slack&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://sentry.io/product/seer/autofix/&quot;&gt;Seer autofix&lt;/a&gt; enabled on a project&lt;/li&gt;
&lt;li&gt;Claude routines or Cursor automation&lt;/li&gt;
&lt;li&gt;GitHub CLI&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One quick note about Seer autofix. It will not create a PR for every issue automatically. Before creating a PR, Seer assesses the fixability and severity of the issue, details of that criteria can be found in our &lt;a href=&quot;https://docs.sentry.io/product/ai-in-sentry/seer/autofix/#when-autofix-runs-automatically&quot;&gt;documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;New to Seer autofix? Try it &lt;a href=&quot;https://sentry.io/orgredirect/settings/seer/trial&quot;&gt;free for 14 days&lt;/a&gt;. You won&amp;#39;t be charged when the trial ends — you&amp;#39;ll only pay if you decide to keep it. After that, it&amp;#39;s $40 per &lt;a href=&quot;https://docs.sentry.io/pricing/quotas/manage-seer-budget/#key-terms&quot;&gt;active contributor&lt;/a&gt;, per month, for unlimited use.&lt;/p&gt;
</content:encoded></item><item><title>Your OTel spans, our errors: A Sentry love story in one trace</title><link>https://blog.sentry.io/otel-spans-errors-sentry-trace/</link><guid isPermaLink="true">https://blog.sentry.io/otel-spans-errors-sentry-trace/</guid><description>The OtlpIntegration bridges OTel traces and Sentry errors. Keep your OTel setup, add Sentry for errors, and see both in one trace waterfall.</description><pubDate>Wed, 05 Aug 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You can already send OTel traces to Sentry. Point your OTLP exporter at Sentry&amp;#39;s endpoint, set environment variables, and your spans show up in the trace explorer. Our &lt;a href=&quot;https://blog.sentry.io/send-your-existing-opentelemetry-traces/&quot;&gt;OTLP setup guide&lt;/a&gt; and &lt;a href=&quot;https://blog.sentry.io/sentry-opentelemetry-work-together/&quot;&gt;&amp;quot;You Don&amp;#39;t Need to Pick One&amp;quot;&lt;/a&gt; walk you through that.&lt;/p&gt;
&lt;p&gt;But those spans are islands. You get a trace waterfall in Sentry, sure. What you don&amp;#39;t get is the thing that makes Sentry valuable:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click an error =&amp;gt; see the OTel trace that caused it&lt;/li&gt;
&lt;li&gt;Click a span =&amp;gt; see the Sentry errors that fired inside&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That connection between your OTel performance data and your Sentry error data doesn&amp;#39;t exist unless something on the SDK side actively wires them together.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s what the &lt;code&gt;OtlpIntegration&lt;/code&gt; for Python, Ruby, Node.js, Go, PHP, .NET, and Java does.&lt;/p&gt;
&lt;h2&gt;Trace connectedness: the problem the raw OTLP endpoint can&amp;#39;t solve&lt;/h2&gt;
&lt;p&gt;When you use a standalone OTel SDK with Sentry&amp;#39;s OTLP endpoint, two separate systems run in your process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The OTel part manages traces and spans.&lt;/li&gt;
&lt;li&gt;The Sentry SDK manages errors, logs, application metrics, session replay, and profiling.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They share a process but not a context. When the Sentry SDK captures an error, it doesn&amp;#39;t know which OTel trace is active. When the OTel SDK exports a span, it doesn&amp;#39;t know a Sentry error happened during that span.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;OtlpIntegration&lt;/code&gt; bridges that gap. It reads the active OTel trace context and stamps the &lt;code&gt;trace_id&lt;/code&gt; and &lt;code&gt;span_id&lt;/code&gt; onto every Sentry event. That&amp;#39;s what makes an error show up inside its OTel trace waterfall, and what makes the trace waterfall show which spans had errors.&lt;/p&gt;
&lt;h2&gt;What the OtlpIntegration does under the hood&lt;/h2&gt;
&lt;p&gt;It does three things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Configures an OTLP exporter&lt;/strong&gt; pointed at Sentry&amp;#39;s ingestion endpoint, derived from your DSN. Your OTel spans flow into Sentry over standard OTLP.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reads the active OTel trace context&lt;/strong&gt; and stamps it onto every Sentry event (errors, logs, application metrics, etc.) so they appear connected in the trace waterfall.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Optionally registers a SentryPropagator&lt;/strong&gt; for compatibility with services using Sentry&amp;#39;s native tracing. (Note: this auto-setup is being removed in the next major version across all SDKs, and propagation will be a documented opt-in instead.)&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Why this replaced our previous approach&lt;/h2&gt;
&lt;p&gt;Our previous strategy, which we call POTel, deeply integrated the Sentry SDK with OpenTelemetry. That approach had its benefits: Sentry and OpenTelemetry spans could be interleaved within the same trace, context propagation was unified, and users could take advantage of OpenTelemetry&amp;#39;s instrumentation ecosystem with minimal friction.&lt;/p&gt;
&lt;p&gt;Our new approach makes a different trade-off. Rather than requiring every Sentry SDK to integrate deeply with OpenTelemetry, backend SDKs now work independently, with no mandatory OpenTelemetry dependency or coupling to OpenTelemetry&amp;#39;s release cycle. In exchange, we give up in-process span interleaving, but gain a solution that is consistent, portable, and practical across all supported backend SDKs.&lt;/p&gt;
&lt;p&gt;For users who need the tighter integration, Java continues to support the original POTel approach, where its mature OpenTelemetry ecosystem makes that model a good fit.&lt;/p&gt;
&lt;h2&gt;Two env vars and an init call&lt;/h2&gt;
&lt;p&gt;For Python, all you need is two environment variables for the exporter and two lines in your initialization code.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;
from sentry_sdk.integrations.otlp import OtlpIntegration

sentry_sdk.init(
    dsn=&amp;quot;https://&amp;lt;key&amp;gt;@&amp;lt;org&amp;gt;.ingest.us.sentry.io/&amp;lt;project&amp;gt;&amp;quot;,
    integrations=[OtlpIntegration()],
)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The integration picks up the OTLP exporter config from &lt;code&gt;OTEL_EXPORTER_OTLP_TRACES_ENDPOINT&lt;/code&gt; and &lt;code&gt;OTEL_EXPORTER_OTLP_TRACES_HEADERS&lt;/code&gt;, sets up a &lt;code&gt;TracerProvider&lt;/code&gt; with a &lt;code&gt;BatchSpanProcessor&lt;/code&gt;, and wires trace context onto Sentry events. If you already have your own &lt;code&gt;TracerProvider&lt;/code&gt;, the integration detects it and skips auto-setup. Other SDKs follow the same pattern with language-appropriate idioms. &lt;a href=&quot;https://docs.sentry.io/concepts/otlp/sentry-with-otel/&quot;&gt;See the OTLP integration docs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And here&amp;#39;s what you get in Sentry:&lt;/p&gt;
&lt;h2&gt;Where POTel still lives (and where it doesn&amp;#39;t)&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Java&lt;/strong&gt; is the only SDK where POTel is the current long-term path. Java&amp;#39;s OTel ecosystem is mature and stable. The deep integration gives real value there: Sentry scopes propagation, automatic breadcrumb capture, the works. The OTLP integration exists as an additional option, not a replacement.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JavaScript (Node.js)&lt;/strong&gt; is in transition. Today, the full Node.js SDK still bundles OpenTelemetry with automatic instrumentation (POTel). We&amp;#39;ve also shipped a lightweight mode (imported from &lt;code&gt;@sentry/node-core/light&lt;/code&gt;) that drops the OpenTelemetry dependencies entirely. You still get errors, logs, metrics, and manual spans; you just don&amp;#39;t get automatic instrumentation. In v11, we take a similar lightweight approach. There is no OTel &lt;code&gt;TracerProvider&lt;/code&gt; set up, but you do get automatic, Sentry-native auto-instrumentation.&lt;/p&gt;
&lt;h2&gt;Who is this for?&lt;/h2&gt;
&lt;p&gt;This is a great fit for teams that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Are already invested in OTel for backend tracing.&lt;/strong&gt; They have &lt;code&gt;TracerProvider&lt;/code&gt; set up, auto-instrumentation running, maybe even an OTel Collector. They don&amp;#39;t want to rip that out to adopt Sentry tracing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Use (or evaluate) Sentry for errors.&lt;/strong&gt; The value proposition: &amp;quot;keep your OTel traces, add Sentry for errors, and the integration connects them. Click an error, see the trace. Click a span, see the errors.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Run a polyglot backend.&lt;/strong&gt; The integration works across multiple Sentry SDKs. An org with Python microservices talking to Go services talking to a .NET monolith can instrument each with OTel and see unified traces in Sentry.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Traces and logs yes, errors and metrics no&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;You get:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OTel spans in Sentry&amp;#39;s trace waterfall, stitched with Sentry errors, logs, and other events on the same trace&lt;/li&gt;
&lt;li&gt;Distributed tracing across services, whether they use Sentry native tracing or OTel&lt;/li&gt;
&lt;li&gt;OTLP log ingestion (but see caveat below)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;You don&amp;#39;t get:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Errors via OTLP.&lt;/strong&gt; The most common misconception. Errors still require a Sentry SDK. OTLP handles traces and logs, not exceptions. If a customer only wants to point an OTLP exporter at Sentry and skip the SDK, they get traces but no error tracking.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Interleaved Sentry and OTel spans in the same process.&lt;/strong&gt; You choose one tracing system per service. Don&amp;#39;t set &lt;code&gt;traces_sample_rate&lt;/code&gt; on the Sentry SDK if you&amp;#39;re using OTel tracing, because it produces duplicate spans.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OTLP logs connected to errors without OTLP traces.&lt;/strong&gt; The log-to-error link depends on shared trace context. If you only need logs without tracing, Sentry&amp;#39;s native logging is the better path.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Propagation is becoming opt-in&lt;/h2&gt;
&lt;p&gt;The automatic &lt;code&gt;SentryPropagator&lt;/code&gt; setup is being removed across all SDKs (Python, Ruby, .NET, Java). OTel only allows one global propagator at a time, so silently registering one can conflict with whatever the user has already configured. Users who need &lt;code&gt;sentry-trace&lt;/code&gt; header injection for mixed environments will set up a composite propagator themselves.&lt;/p&gt;
&lt;p&gt;Check out &lt;a href=&quot;https://sentry.io/solutions/opentelemetry/&quot;&gt;Sentry for OpenTelemetry&lt;/a&gt; or the &lt;a href=&quot;https://docs.sentry.io/concepts/otlp/sentry-with-otel/&quot;&gt;OTLP integration docs&lt;/a&gt; for setup details.&lt;/p&gt;
&lt;p&gt;And that&amp;#39;s pretty much all there is to know. Keep your OTel, add Sentry, and let one trace tell the whole story.&lt;/p&gt;
</content:encoded></item><item><title>Session Replay for Unreal Engine: see the crash before the crash</title><link>https://blog.sentry.io/session-replay-unreal-engine/</link><guid isPermaLink="true">https://blog.sentry.io/session-replay-unreal-engine/</guid><description>The Sentry Unreal Engine SDK now records the last seconds of gameplay and attaches the footage to crash reports, so you can watch what led to the crash.</description><pubDate>Fri, 24 Jul 2026 09:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You know the drill: a crash report lands in your queue with a pristine stack trace pointing at some innocent-looking function and absolutely no clue about what the player was actually doing. Were they mid-boss-fight? Alt-tabbing during a loading screen? Standing perfectly still in the tutorial? QA can&amp;#39;t repro it, the player&amp;#39;s bug report says &amp;quot;game crashed lol,&amp;quot; and you&amp;#39;re left staring at a callstack playing twenty questions with a core dump.&lt;/p&gt;
&lt;p&gt;Stack traces tell you &lt;strong&gt;where&lt;/strong&gt; the code died but not always &lt;strong&gt;why&lt;/strong&gt;. Since games tend to be much less deterministic than typical desktop or mobile apps, the &amp;quot;why&amp;quot; often lives in the seconds before the crash.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s exactly the gap &lt;a href=&quot;https://docs.sentry.io/product/session-replay/&quot;&gt;Session Replay&lt;/a&gt; fills. With its new Session Replay support, the Sentry SDK for Unreal Engine can now continuously record the last several seconds of gameplay and attach that clip to the crash report. When the crash lands in Sentry, so does the footage, allowing you to watch what the player saw, right up to the moment things went sideways.&lt;/p&gt;
&lt;h2&gt;What you get with Session Replay&lt;/h2&gt;
&lt;p&gt;When a crash with a replay arrives, it shows up on the &lt;a href=&quot;https://sentry.io/orgredirect/organizations/:orgslug/replays/&quot;&gt;Replays&lt;/a&gt; page linked to the crash event as a playback with the actual rendered frames of your game and a scrubbable timeline of everything important that was going on along the way.&lt;/p&gt;
&lt;p&gt;The panels next to the player are where the debugging happens. Alongside the footage and an AI replay summary, each replay gives you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Tags &amp;amp; context&lt;/strong&gt; - the answers you&amp;#39;d normally have to ask the player for: OS and version, release, crash type, region, etc.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Breadcrumbs&lt;/strong&gt; - errors, gameplay events, and your own custom breadcrumbs on a timeline synced with the video.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Logs&lt;/strong&gt; - the game&amp;#39;s log output timestamped against the video.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Trace&lt;/strong&gt; - the spans leading up to the crash, linked by a shared trace ID. If the crash involves your backend, the server-side spans of the same trace are accessible from here as well.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Looking at the example above, those things tell the full story: three seconds in, an ensure fires because a checkout HTTP request came back invalid; the player reaches level 2, picks the &amp;quot;Wrath&amp;quot; attack modifier, and at 00:22 - fatal crash in &lt;code&gt;ASentryTowerTurret::Shoot&lt;/code&gt;. That&amp;#39;s a reproduction script, handed to you by the crash itself.&lt;/p&gt;
&lt;p&gt;In fact, you don&amp;#39;t even have to leave the crash to start watching. The replay is embedded right on the crash event page, so triaging an issue can start with a quick glance at the last few seconds of gameplay. If that glance raises questions, the full replay page is one click away.&lt;/p&gt;
&lt;h2&gt;How it works&lt;/h2&gt;
&lt;p&gt;Earlier experiments with replay capturing in the Unreal SDK leaned on platform vendor features (e.g. GDK&amp;#39;s game DVR on Xbox). That works, but every platform behaves differently and some can&amp;#39;t ship at all.&lt;/p&gt;
&lt;p&gt;For the new desktop and mobile implementation we went the other way and built the recording pipeline out of Unreal-native facilities so the same code runs everywhere the engine does. It has three main players:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The backbuffer capture&lt;/strong&gt; hooks Slate&amp;#39;s &lt;code&gt;OnBackBufferReadyToPresent&lt;/code&gt; on the render thread, throttles to the configured capture framerate (default 30 FPS, if your game can render faster frames are sampled down), and copies each frame into a texture the encoder can consume. Backbuffers come in many formats (e.g. 10-bit, HDR) and Slate doesn&amp;#39;t create them as shader resources, so the capture path does a hardware copy into a scratch texture and lets an engine pixel shader handle format conversion. If you&amp;#39;re already rendering BGRA8, it degenerates into a straight GPU copy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The video encoder&lt;/strong&gt; runs on a dedicated thread and feeds captured frames to a hardware H.264 encoder via Unreal&amp;#39;s &lt;code&gt;AVCodecs&lt;/code&gt; plugin family (NVENC on NVIDIA, AMF on AMD, VideoToolbox on Apple). The right encoder is picked at runtime based on the player&amp;#39;s GPU. Encoded output is grouped into short fragments at keyframe boundaries and muxed into fragmented MP4.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The replay recorder&lt;/strong&gt; orchestrates the whole thing. It maintains a rolling ring buffer of completed fragments only ever keeping the configured replay window and periodically assembles them into a complete, playable MP4 on disk. Each snapshot is written to a temp file and atomically renamed, so there&amp;#39;s never a torn, half-written video lying around.&lt;/p&gt;
&lt;p&gt;When a crash happens, the Unreal SDK picks up the latest rolling clip along with the crash report, wraps it into an envelope, and handles the upload to Sentry.&lt;/p&gt;
&lt;p&gt;If the player&amp;#39;s machine has no compatible hardware encoder, the feature self-disables for the session and logs a warning, so crash reporting itself is never affected.&lt;/p&gt;
&lt;h2&gt;What does it cost you at runtime?&lt;/h2&gt;
&lt;p&gt;&amp;quot;Continuously encode video of my game&amp;quot; sounds like the kind of thing that eats a game&amp;#39;s frame budget for breakfast. So we measured it.&lt;/p&gt;
&lt;p&gt;We profiled our &lt;a href=&quot;https://github.com/getsentry/unreal-tower&quot;&gt;Unreal demo game&lt;/a&gt; with the engine&amp;#39;s CSV profiler - once with replay off as a baseline and once with it on. We ran it at 4K fullscreen deliberately, as a bigger backbuffer means a bigger copy and encode cost, so 4K marks the worst case and the overhead at lower resolutions only goes down.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;Replay On&lt;/th&gt;
&lt;th&gt;Δ&lt;/th&gt;
&lt;th&gt;Δ %&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Frame Time&lt;/td&gt;
&lt;td&gt;5.56 ms&lt;/td&gt;
&lt;td&gt;5.77 ms&lt;/td&gt;
&lt;td&gt;+0.20 ms&lt;/td&gt;
&lt;td&gt;+3.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Render Thread&lt;/td&gt;
&lt;td&gt;5.56 ms&lt;/td&gt;
&lt;td&gt;5.67 ms&lt;/td&gt;
&lt;td&gt;+0.11 ms&lt;/td&gt;
&lt;td&gt;+1.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Game Thread&lt;/td&gt;
&lt;td&gt;1.72 ms&lt;/td&gt;
&lt;td&gt;1.82 ms&lt;/td&gt;
&lt;td&gt;+0.10 ms&lt;/td&gt;
&lt;td&gt;+5.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPU&lt;/td&gt;
&lt;td&gt;4.96 ms&lt;/td&gt;
&lt;td&gt;5.04 ms&lt;/td&gt;
&lt;td&gt;+0.08 ms&lt;/td&gt;
&lt;td&gt;+1.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RHI Thread&lt;/td&gt;
&lt;td&gt;1.81 ms&lt;/td&gt;
&lt;td&gt;1.82 ms&lt;/td&gt;
&lt;td&gt;+0.01 ms&lt;/td&gt;
&lt;td&gt;+0.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The bottom line: about 0.20 ms per frame at 4K. That&amp;#39;s ~1.2% of a 16.7 ms frame budget at 60 FPS, or ~2.4% at 120 FPS. Most of it comes from the render-thread backbuffer hook while encoding and file rotation happen on background threads, so the game thread, RHI thread, and GPU barely notice.&lt;/p&gt;
&lt;h2&gt;Getting started&lt;/h2&gt;
&lt;p&gt;Session Replay ships with the Sentry Unreal SDK 1.16.0, so if you already have the plugin set up, it&amp;#39;s one toggle away.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Enable the &lt;code&gt;AVCodecsCore&lt;/code&gt; engine plugin plus the codec plugin for each GPU vendor you want to cover (&lt;code&gt;NVCodecs&lt;/code&gt;, &lt;code&gt;AMFCodecs&lt;/code&gt; on Windows and Linux, &lt;code&gt;VTCodecs&lt;/code&gt; on Apple platforms). They all can live side by side since the right one is picked at runtime.&lt;/li&gt;
&lt;li&gt;In Project Settings &amp;gt; Plugins &amp;gt; Sentry, expand &amp;quot;Session Replay&amp;quot; and toggle &amp;quot;Enable session replay (experimental)&amp;quot;.&lt;/li&gt;
&lt;li&gt;Rebuild the plugin. Whether replay is compiled in is decided at build time, so after toggling the setting, make sure you start clean by deleting your project&amp;#39;s temporaries and rebuild.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;#39;s it. Replay duration, capture framerate, bitrate, and fragment length are all tunable (see the &lt;a href=&quot;https://docs.sentry.io/platforms/unreal/session-replay/&quot;&gt;Session Replay docs&lt;/a&gt; covering every knob, plus per-platform requirements).&lt;/p&gt;
&lt;p&gt;Using a coding agent in Unreal Engine 5.8? &lt;a href=&quot;https://blog.sentry.io/unreal-mcp-sentry/&quot;&gt;Unreal MCP now speaks Sentry&lt;/a&gt;, so your agent can set up the SDK, upload debug symbols, and dig into crashes for you.&lt;/p&gt;
&lt;p&gt;One important caveat: currently there is no automatic masking. The recording captures your rendered frames as-is, so player names, chat, and anything else on screen ends up in the video. Make sure the content your game renders is safe to record and that your privacy policy accounts for it.&lt;/p&gt;
&lt;h2&gt;Help us shape this&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://sentry.io/product/session-replay/&quot;&gt;Session Replay&lt;/a&gt; for Unreal Engine is an experimental feature, and a lot of what we build next depends on the feedback you give us.&lt;/p&gt;
&lt;p&gt;So, try it in your project, watch a few crashes with footage attached, and let us know what&amp;#39;s missing. &lt;a href=&quot;https://github.com/getsentry/sentry-unreal/issues&quot;&gt;Open an issue&lt;/a&gt; (or just react to an existing one) on GitHub or come chat on our &lt;a href=&quot;https://discord.gg/sentry&quot;&gt;Discord&lt;/a&gt;. Fewer &amp;quot;cannot reproduce&amp;quot; resolutions for everyone.&lt;/p&gt;
</content:encoded></item></channel></rss>