> ## Documentation Index
> Fetch the complete documentation index at: https://futureagi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Linked Traces

> Linking prompts to traces is essential for monitoring and improving the performance of your language model applications. By establishing this connection, you can track metrics and evaluations for each prompt version, facilitating iterative enhancements over time.

To link prompts to traces, you need to associate the prompt used in a generation with the corresponding trace. This process has been highlighted [here](/future-agi/get-started/observability/manual-tracing/log-prompt-templates).

#### **Metrics and Analytics**

After linking prompts to traces, you can access various metrics to evaluate performance:

* **Median Latency**: Time taken for the model to generate a response
* **Median Input Tokens**: Number of tokens in the input prompt
* **Median Output Tokens**: Number of tokens in the generated response
* **Median Costs**: Cost associated with the generation process
* **Traces Count**: Total number of generations for a specific prompt
* **First and Last Generation Timestamp**: Timeframe of the generations

These metrics are accessible by navigating to your prompt in the Future AGI dashboard and viewing the **Metrics** tab.

<iframe width="100%" height="400" src="https://drive.google.com/file/d/170e1bxwr9vsmLKPL4VNwz-uG7mRcc_Sb/preview" allow="autoplay" />

***
