Kodlama 21 Mart 2024

Sentry’s AI-powered Autofix helps developers quickly debug and fix their production code

Sentry’s AI-powered Autofix helps developers quickly debug and fix their production code

Sentry has long helped developers monitor and debug their production code. Now, the company is adding some AI smarts to this process by launching AI Autofix, a new feature that uses all of the contextual data Sentry has about a company’s production environment to suggest fixes whenever an error occurs. While it’s called Autofix, this isn’t a completely automated system, something very few developers would be comfortable with. Instead, it is a human-in-the-loop tool that is “like having a junior developer ready to help on-demand,” as the company explains.

“Rather than thinking about the performance of your application — or your errors — from a system infrastructure perspective, we’re really trying to focus on evaluating it and helping you solve problems from a code-level perspective,” Sentry engineering manager Tillman Elser explained when I asked him how this new feature fits into the company’s overall product lineup.

Elser argued that many other AI-based coding tools are great for auto-completing code in the IDE, but since they don’t know about a company’s production environment, they can’t proactively look for issues. Autofix’s main value proposition, he explained, is that it can help developers speed up the process of triaging and resolving errors in production because it knows about the context the code is running in. “We’re trying to solve problems in production as fast as possible. We’re not trying to make you a faster developer when you’re building your application,” he said.

Sentry’s AI-powered Autofix helps developers quickly debug and fix their production code

Image Credits: Sentry

Using an agent-based architecture, Autofix will keep an eye out for errors and then use its discovery agent to see if a code change could fix that error — and if not, it will provide a reason. What’s important here is that developers remain in the loop at all times. One nifty feature here, for example, is that they can add some additional context for the AI agents if they already have some idea of what the problem may be. Or they can opt to hit the “gimme fix” button and see what the AI comes up with.

The AI will then go through a few steps to assess the issue and create an action plan to fix it. In the process, Autofix will provide developers with a diff that explains the changes and then, if everything looks good, create a pull request to merge those changes.

Sentry’s AI-powered Autofix helps developers quickly debug and fix their production code

Image Credits: Sentry

Autofix supports all major languages, though Elser acknowledged that the team did most of its testing with JavaScript and Python code. Obviously, it won’t always get things right. There is a reason Sentry likens it to a junior developer, after all. The most straightforward failure case, though, Elser told me, is when the AI simply doesn’t have enough context — maybe because the team hasn’t set up enough instrumentation to gather the necessary data for Autofix to work with, for example.

One thing to note here is that while Sentry is looking at building its own models, it is currently working with third-party models from the likes of OpenAI and Anthropic. That also means that users must opt in to send their data to these third-party services to use Autofix. Elser said that the company plans to revisit this in the future and maybe offer an in-house LLM that is fine-tuned on its data.

Sentry’s AI-powered Autofix helps developers quickly debug and fix their production code

Image Credits: Sentry

source

Spread the love <3

You may also like...

May
16
2024
0
¿Qué es ReactJS? ⚛️ ¿Cómo funciona? Explicación animada

¿Qué es ReactJS? ⚛️ ¿Cómo funciona? Explicación animada

Nuestra querida LauriMedusa te va a explicar que es React. Por medio de unas pequeñas animaciones, te explicará que es...

Spread the love <3
Mar
23
2024
0
US DOJ’s blockbuster lawsuit against Apple is headline grabber but poses limited near-term impact

US DOJ’s blockbuster lawsuit against Apple is headline grabber but poses limited near-term impact

The U.S. Department of Justice filed a lawsuit against Apple Thursday, accusing the company led by CEO Tim Cook of...

Spread the love <3
May
30
2024
0

Dünyanın ilk yapay zeka hastanesi açıldı!

Çin, dünyanın ilk yapay zeka hastanesi açılışını yaptı. Bu hastane, tamamen yapay zeka doktorlar tarafından yönetilecek ve günde tam 3...

Spread the love <3
Ağu
28
2024
0

Warhammer 40K: Space Marine 2, Gold sahiplerine bedava Season Pass!

Oyun severlerin heyecanla beklediği Warhammer 40K: Space Marine 2, nihayet 9 Eylül 2024’te piyasaya sürülüyor. Oyunun geliştiricisi Saber Interactive ve...

Spread the love <3
Whatsapp İletişim
Merhaba,
Size nasıl yardımcı olabilirim ?