Monitoring Python FastAPI

Instana automatically monitors your FastAPI applications.

You don't need any code changes, configuration changes, redeploys, or process starts.

FastAPI

The Instana Python package bundles an ASGI middleware to provide request visibility into your asynchronous applications. For FastAPI, this ASGI middleware is applied automatically to your FastAPI-based applications.

Monitoring methods

To monitor your FastAPI applications, you can either use the Instana AutoTrace webhook or install the Instana Python package.

The following table outlines the features of each method:

Features AutoTrace webhook Instana Python package
Automatic visibility Available Available
Code changes Not required Not required
Redeployment Not required Required
Process restart Not required Required
User steps Not required Not required
Configuration changes Not required Not required

AutoTrace webhook

Instana AutoTrace webhook is the default monitoring method, and you don't need any manual steps to activate monitoring. If you have the AutoTrace webhook installed, it remotely instruments and monitors your FastAPI applications automatically.

For more information about installing the Instana AutoTrace webhook, see Installing the Instana AutoTrace webhook.

Instana Python package

You can manually instrument your FastAPI applications by installing the Instana Python package. After the Instana Python package is installed and activated, your FastAPI application is monitored. For more information about installing and activating the package, see Manual installation.

To check which versions of related components are supported, see Supported components and versions.

Additional information