Now create an app using Embedchain and initialize OpenTelemetry monitoring
Copy
from embedchain import Appimport OpenLIT# Initialize OpenLIT Auto Instrumentation for monitoring.openlit.init()# Initialize EmbedChain application.app = App()# Add data to your appapp.add("https://en.wikipedia.org/wiki/Elon_Musk")# Query your appapp.query("How many companies did Elon found?")
Once you’ve set up data collection with OpenLIT, you can visualize and analyze this information to better understand your application’s performance:
Using OpenLIT UI: Connect to OpenLIT’s UI to start exploring performance metrics. Visit the OpenLIT Quickstart Guide for step-by-step details.
Integrate with existing Observability Tools: If you use tools like Grafana or DataDog, you can integrate the data collected by OpenLIT. For instructions on setting up these connections, check the OpenLIT Connections Guide.