# Ontology and AIP observability Ontology and AIP observability features provide visibility into your AIP and Ontology workflow executions through metrics, tracing, logs, and execution history. As part of a comprehensive observability strategy across the platform, these features are integrated into Workflow Lineage to enable cross-functional teams to monitor and optimize performance at every level of the applications, workflows, and products built with AIP and the Ontology. ![Example Workflow Lineage view trace view](../../../assets/e4c21ba263bc2d41cfb41a7b71f88977b3c3c5aabe8485db10126ed1ce09353b.webp) ## Key capabilities of Ontology and AIP observability * **[Metrics](../metrics/index.md):** Monitor near real-time success/failure counts and P95 execution duration for functions, actions, and AIP Logic. * **[Execution history](../run-history/index.md):** Track functions, actions, automations, and AIP Logic executions over the past 30 days. * **[Distributed tracing](../trace-view/index.md):** Visualize the complete execution flow across functions, actions, language models, automations, and ontology loads. * **[Logging and debugging](../service-logs-and-debugging/index.md):** Access service logs, custom function log messages, token usage, prompts, error details, and more. * **[Log search](../log-search/index.md):** Search service logs across executable resources in Workflow Lineage to find specific messages, errors, or patterns across multiple executions. * **[Performance monitoring](../performance-monitoring-and-optimization/index.md):** Identify bottlenecks and optimize execution times. * **[Observability dashboards](../../observability/dashboards/index.md):** Build operational dashboards in Workshop by plotting metrics for functions, actions, and compute modules over time with the Observability Chart widget. * **[Log export to Foundry streaming dataset](../../administration/configure-logging/index.md):** Have your logs exported to a streaming dataset and perform complex analysis on your telemetry. ## Getting started with Ontology and AIP observability To use Ontology and AIP observability: 1. Navigate to a function, action, or automation in Workflow Lineage. 2. Select the **Run history** tab to view recent executions. 3. Choose **View log details** on any execution to access [traces](../trace-view/index.md) and [logs](../service-logs-and-debugging/index.md). 4. Ensure proper [log permissions](../log-permissioning/index.md) are configured for your resources. ## Observability across the platform Ontology and AIP observability integrates with the rest of the Palantir platform to provide insight into all of your Ontology and AIP workflows, even if AIP is not enabled on your enrollment. The following tools work together to provide comprehensive visibility into your systems, from individual function execution to platform-wide resource consumption. ### Monitoring performance and optimization * **[Function instrumentation](../../functions/instrumentation-telemetry/index.md):** Overview of the tools to instrument functions in production. * **[Function monitoring](../../functions/monitoring/index.md):** Set up alerts for function performance and failure rates. * **[Action metrics](../../action-types/action-metrics/index.md):** Analyze action execution patterns and performance. * **[Action monitoring](../../action-types/monitoring/index.md):** Configure monitoring rules to track action performance and reliability. * **[Model instrumentation](../../integrate-models/instrumentation-telemetry/index.md):** Overview of the tools to instrument models in production. ### Monitoring resource usage and costs * **[AIP usage metrics](../../workflow-lineage/aip-usage-observability/index.md#aip-usage-metrics):** Model usage coloring and charts for tracking token usage and model requests. * **[Logic compute usage](../../logic/compute-usage/index.md):** Track compute consumption in AIP Logic applications. * **[AIP compute usage](../../aip/aip-compute-usage/index.md):** Understand compute allocation and usage across AIP features. ### Monitoring model performance * **[AIP Evals](../../aip-evals/getting-started/index.md):** Evaluate and monitor LLM performance systematically.