AI Monitoring Dashboard

Learn how to use Sentry's AI Monitoring Dashboard.

Once you've configured the Sentry SDK for your AI project, you'll start receiving data in the Sentry AI Monitoring dashboard.

AI Monitoring Dashboard

In the example below, there are two LangChain pipelines (whose .name is the name that shows up in the table). One has used 58,000 tokens in the past hour, and the other has used 44,900 tokens. When you click one of the pipelines in the table, you can see details about that particular pipeline.

AI Monitoring for a specific pipeline

As you can see in the example above, the "Ask Sentry" pipeline has used 59 thousand tokens and taken 3.2 seconds on average.

Creating an AI pipeline is different than calling an LLM. If you're creating AI pipelines by calling LLMs directly (without using a tool like LangChain), consider using manual AI instrumentation.

If configured to include PII, the Sentry SDK will add prompts and responses to LLMs and other AI models to spans in the trace view.

AI Monitoring trace example

In the example above, you can see input messages and LLM responses related to the ai.chat_completions.create.langchain span. Other spans like ai.chat_completions.create.openai show the number of tokens used for that particular chat completion.

This view can show other data as well. For example, if you call your LLM from a webserver, the trace will include details about the webserver through other integrations, and you'll get a holistic view of all the related parts.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").