diff --git a/docs/docs/_static/integrations/langtrace.gif b/docs/docs/_static/integrations/langtrace.gif new file mode 100644 index 0000000000000000000000000000000000000000..5f3f52510035289fdf72b85c77e776027a14e10e Binary files /dev/null and b/docs/docs/_static/integrations/langtrace.gif differ diff --git a/docs/docs/module_guides/observability/index.md b/docs/docs/module_guides/observability/index.md index 7de3721a0a211af9b607a4a730868d9331f3c754..a27735c107a77b228ea4733ba03d05c21e3a57e3 100644 --- a/docs/docs/module_guides/observability/index.md +++ b/docs/docs/module_guides/observability/index.md @@ -306,6 +306,32 @@ set_global_handler("promptlayer", pl_tags=["paul graham", "essay"]) - [PromptLayer](../../examples/callbacks/PromptLayerHandler.ipynb) +### Langtrace + +[Langtrace](https://github.com/Scale3-Labs/langtrace) is a robust open-source tool that supports OpenTelemetry and is designed to trace, evaluate, and manage LLM applications seamlessly. Langtrace integrates directly with LlamaIndex, offering detailed, real-time insights into performance metrics such as accuracy, evaluations, and latency. + +#### Install + +```shell +pip install langtrace-python-sdk +``` + +#### Usage Pattern + +```python +from langtrace_python_sdk import ( + langtrace, +) # Must precede any llm module imports + +langtrace.init(api_key="<LANGTRACE_API_KEY>") +``` + + + +#### Guides + +- [Langtrace](https://docs.langtrace.ai/supported-integrations/llm-frameworks/llamaindex) + ## More observability - [Callbacks Guide](./callbacks/index.md)