You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/langfuse.mdc
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,28 @@ description:
3
3
globs: *.py
4
4
alwaysApply: false
5
5
---
6
-
LangFuse is an LLM observability tool, to see how LLMs are behaving in our application. It uses callbacks to reord LLM inference. You should always use it when using LLM applications, to track if the LLM is behaving as we want it to.
6
+
Langfuse is an LLM observability tool used to monitor LLM behavior in our application. It uses decorators and callbacks to record LLM inference. Always use it in LLM-related modules to ensure traceability.
7
7
8
-
Below is the most typical usage.
8
+
### Langfuse v3 Migration Guide
9
+
As of Langfuse SDK v3.x, the `langfuse.decorators` module structure has changed.
10
+
11
+
**Typical Usage:**
9
12
10
13
```python
11
-
from langfuse.decorators import observe, langfuse_context
14
+
from langfuse import observe, get_client
12
15
13
-
@observe
16
+
@observe()
14
17
def function_name(...):
18
+
# To rename the span/observation or update metadata:
0 commit comments