Inspector
BlogTry for free
  • Concepts
    • Introduction
    • Metrics
    • Notification Channels
      • Email
      • Slack
      • Telegram
      • Microsoft Teams
      • Google Chat
      • Webhook
      • Discord
      • Pushover
      • PagerDuty
      • Twilio - SMS
    • Filtering Syntax
    • Alerts
    • Grouping Patterns
    • Custom Segments
    • Billing
    • AI Bug Fixer
  • Security and access
    • Access control
    • Two-factor authentication
    • Connected Devices
  • SDK
    • PHP
      • Installation & Set Up
      • Custom Segments
      • Exceptions Monitoring
      • Configuration
    • Laravel / Lumen
      • Upgrade Guide
      • Installation & Set-up
      • Http Requests Monitoring
      • Configuration
      • Exception Monitoring
      • Laravel Vapor
      • Laravel Octane
      • Laravel Nova Tool
      • Group by service name
    • Symfony
      • Installation
      • Configuration
      • Exception Monitoring
    • CodeIgniter
      • Installation
      • Configuration
      • Exception Monitoring
    • Drupal
    • Spring Boot
    • Slim
    • NodeJS
      • Configurations
      • Custom Segments
      • Exception monitoring
      • Autowiring
    • ExpressJs
    • Fastify
    • Python
    • Django
      • Installation & Set Up
      • Custom Segments
      • Error Monitoring
  • REST API
    • Authentication
    • Apps
    • Platforms
    • Transactions
    • Segments
    • Analytics
Powered by GitBook
On this page
  • Connect to source control providers
  • Configure the AI Bug Fixer
  • Zero Downtime Deployment
  • Receive Bug Fix Proposals
  1. Concepts

AI Bug Fixer

Real-Time bug fix proposals to immediately get solutions from emerging errors.

PreviousBillingNextAccess control

Last updated 2 months ago

Inspector can automatically generates code change proposals to fix application errors detected in real-time. You will receive the first bug fix solution without having to ask your collaborators for time, or wait to be in front of the desk to analyze the problem manually.

To enable AI Bug Fixer you should connect your Inspector account with the source control providers where you host your source code.

Connect to source control providers

Navigate to the section in the Organization menu.

Click on the connect button to follow the installation process. Make sure to grant the Inspector app access to the repositories you want to connect to. You will be redirected to this page.

Configure the AI Bug Fixer

Once you enabled the connection with the source control provider, you should associate a specific repository to the application you want to enable the AI Bug Fix.

Go into the Application Settings -> AI Bug Fixer section.

Here are the configurations you need:

  • The repository to connect from the source control provider;

  • The default branch you want Inspector to connect to;

  • The root path of the application on your production server;

How to find the root path on the server

SSH into your server and go to the directory where your application is located:

> cd app-directory/
> pwd

Paste the output into the input field in the configuration form.

Click Save to activate the integration.

Zero Downtime Deployment

If you use zero downtime deployment as release strategy, the real path of the application on your server will change on any deploy. As you know zero downtime deployment will create a new directory on every release.

In this case you need to use the wildcard character "*" to map the release directory. See the example below:

# The final directory will change on every release
/var/www/html/public_html/releases/382758329/

# This is how you should configure the root server path on Inspector
/var/www/html/public_html/releases/*/

Receive Bug Fix Proposals

Once an error is detected, Inspector will use the gathered information to generate a solution starting from your original source code that may fix the error immediately.

If Inspector successfully generates a bug fix, you will see the "source code" icon in the errors list colored in orange.

And you will be able to read the entire fix proposal automatically created for you.

Execute the command to see the full root path on the server:

pwd
Source Control
Inspector Errors List
Inspector Ai Bug Fix