Dify Observability & Monitoring with OpenTelemetry SigNoz has released a guide for setting up observability and monitoring on Dify agent workflows using OpenTelemetry, enabling users to export traces and metrics to SigNoz for unified dashboards and alerting. The integration requires a SigNoz account or self-hosted instance, a Dify self-hosted instance, and configuration of OpenTelemetry environment variables in Dify's `.env` file to send telemetry data to SigNoz. This allows developers to track AI and LLM workflow performance, analyze correlated traces and metrics, and improve system reliability and user experience. Overview This guide walks you through setting up observability and monitoring for Dify using OpenTelemetry https://opentelemetry.io/ and exporting traces and metrics to SigNoz. With this integration, you can observe and track various metrics for your Dify agent workflows. Monitoring Dify agents with telemetry ensures full observability across your AI and LLM workflows. By leveraging SigNoz, you can analyze correlated traces and metrics in unified dashboards, configure alerts, and gain actionable insights to continuously improve reliability, responsiveness, and user experience. Prerequisites - A SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key or Self Hosted SigNoz instance https://signoz.io/docs/install/self-host/ - A Dify self-hosted instance. Follow the Dify quickstart guide https://docs.dify.ai/en/self-host/quick-start/docker-compose to get set up Monitoring Dify For more information on instrumenting your Dify workflows with OpenTelemetry, refer to the Dify OpenTelemetry configuration https://docs.dify.ai/en/self-host/configuration/environments otlp-%2F-opentelemetry-configuration docs. Step 1: Configure OpenTelemetry in your Dify .env file Open the .env file in your Dify /docker directory and add the following environment variables: ------------------------------ OTLP Collector Configuration ------------------------------ ENABLE OTEL=true OTLP BASE ENDPOINT=https://ingest.