Guides

Self-host Langtrace under 5 minutes!

Darshit Suratwala

Darshit Suratwala

· 3 min read
Langtrace on Railway

As developers harness the power of LLMs to create innovative solutions, the need for robust observability tools to monitor and optimize these APIs has never been more critical. Enter Langtrace — a specialized tool tailored for observing LLM APIs, providing invaluable insights into their behavior and performance.

In this guide, we’ll embark on a journey to seamlessly integrate Langtrace on Railway, a platform renowned for its simplicity and efficiency in deploying and managing applications.

Are you ready to elevate your observability game? Let’s dive in!

Prerequisites

Steps

If you are interested in visual guide: https://youtu.be/btlHaZgJOuY

Step 1. Open the Railway Template

  • Navigate to the Langtrace GitHub repository and locate the “Deploy on Railway” button within the README file.
Image
  • Clicking on this button will direct you to the Langtrace Railway template deployment page.
Image

Step 2. Deploy the Template

  • Click on the “Deploy Now” button.
  • Click “Configure” on langtrace-client service and add admin email and admin password and click “Save ConfigDeploy”.
Image

Step 3. Access Langtrace

  • Once you start the deployment process, it may take around two minutes for Railway to bring up the services.
Image

If you want you can check the deploy logs of a particular service by clicking on the service and click “View Logs” under the Deployments tab.

Once all services are healthy, click on the ‘langtrace-client’ service and open the URL to access the self-hosted Langtrace application.

Image

Login to Langtrace using the previously supplied Admin email and password, and begin your journey for monitoring LLM apps by following the quickstart guide.

Conclusion

Deploying Langtrace on Railway enables effortless monitoring and optimization of LLM applications. Railway’s seamless deployment, coupled with Langtrace’s observability tools, empowers proactive issue identification, ensuring reliability. Together, they streamline development workflows, unlocking LLM applications’ full potential. Take the first step towards enhanced observability and optimization by deploying Langtrace on Railway today!

Exploring additional hosting possibilities? Take a look at our documentation

Join our Discord community for the latest updates and engage with fellow enthusiasts. Should you encounter any challenges or queries, don’t hesitate to reach out — we’re here to assist. Start your journey of enhanced observability and optimization with Langtrace today.

Happy langTracing!

Darshit Suratwala

About Darshit Suratwala

Software Engineer