Skip to content

Commit 369e802

Browse files
committed
spelling mistake
2 parents b446f69 + 1324e05 commit 369e802

File tree

139 files changed

+3103
-1569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+3103
-1569
lines changed

.cursor/rules/available-internal-links.mdc

Lines changed: 132 additions & 131 deletions
Large diffs are not rendered by default.

components-mdx/docs-mcp-server-installation.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ Add the following to your `mcp.json`:
4040

4141
<Tab>
4242

43+
Add Langfuse Docs MCP to Copilot in VSCode via the one-click install:
44+
45+
<div className="flex gap-2 mt-3 mb-6">
46+
<Button asChild>
47+
<Link
48+
href="vscode:mcp/install?%7B%22name%22%3A%22langfuse-docs%22%2C%22url%22%3A%22https%3A%2F%2Flangfuse.com%2Fapi%2Fmcp%22%7D"
49+
target="_blank"
50+
rel="noopener noreferrer"
51+
>
52+
Install MCP Server in VS Code
53+
</Link>
54+
</Button>
55+
</div>
56+
57+
<details>
58+
<summary>Manual configuration</summary>
59+
4360
Add Langfuse Docs MCP to Copilot in VSCode via the following steps:
4461

4562
1. Open Command Palette (⌘+Shift+P)
@@ -49,6 +66,8 @@ Add Langfuse Docs MCP to Copilot in VSCode via the following steps:
4966
5. Select name (e.g. `langfuse-docs`) and whether to save in user or workspace settings
5067
6. You're all set! The MCP server is now available in Agent mode
5168

69+
</details>
70+
5271
</Tab>
5372

5473
<Tab>

components-mdx/get-started/python-sdk.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ from langfuse import get_client
3030
langfuse = get_client()
3131

3232
# Create a span using a context manager
33-
with langfuse.start_as_current_span(name="process-request") as span:
33+
with langfuse.start_as_current_observation(as_type="span", name="process-request") as span:
3434
# Your processing logic here
3535
span.update(output="Processing complete")
3636

3737
# Create a nested generation for an LLM call
38-
with langfuse.start_as_current_generation(name="llm-response", model="gpt-3.5-turbo") as generation:
38+
with langfuse.start_as_current_observation(as_type="generation", name="llm-response", model="gpt-3.5-turbo") as generation:
3939
# Your LLM call logic here
4040
generation.update(output="Generated response")
4141

components-mdx/integration-learn-more.mdx

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,31 @@ You can use this integration together with the Langfuse [Python SDK](/docs/obser
1818
The [`@observe()` decorator](/docs/observability/sdk/python/instrumentation#custom-instrumentation) provides a convenient way to automatically wrap your instrumented code and add additional attributes to the trace.
1919

2020
```python
21-
from langfuse import observe, get_client
21+
from langfuse import observe, propagate_attributes, get_client
2222

2323
langfuse = get_client()
24-
24+
2525
@observe()
26-
def my_instrumented_function(input):
27-
28-
# Run your application here
29-
output = my_llm_call(input)
30-
31-
langfuse.update_current_trace(
32-
input=input,
33-
output=output,
26+
def my_llm_pipeline(input):
27+
# Add additional attributes (user_id, session_id, metadata, version, tags) to all spans created within this execution scope
28+
with propagate_attributes(
3429
user_id="user_123",
3530
session_id="session_abc",
3631
tags=["agent", "my-trace"],
3732
metadata={"email": "[email protected]"},
3833
version="1.0.0"
39-
)
34+
):
35+
36+
# YOUR APPLICATION CODE HERE
37+
result = call_llm(input)
38+
39+
# Update the trace input and output
40+
langfuse.update_current_trace(
41+
input=input,
42+
output=result,
43+
)
4044

41-
return output
45+
return result
4246
```
4347

4448
Learn more about using the Decorator in the [Python SDK](/docs/observability/sdk/python/instrumentation#custom-instrumentation) docs.
@@ -49,24 +53,26 @@ Learn more about using the Decorator in the [Python SDK](/docs/observability/sdk
4953
The [Context Manager](/docs/observability/sdk/python/instrumentation#custom-instrumentation) allows you to wrap your instrumented code using context managers (with `with` statements), which allows you to add additional attributes to the trace.
5054

5155
```python
52-
from langfuse import get_client
56+
from langfuse import get_client, propagate_attributes
5357

5458
langfuse = get_client()
5559

56-
with langfuse.start_as_current_span(name="my-trace") as span:
57-
58-
# Run your application here
59-
output = my_llm_call(input)
60-
61-
# Pass additional attributes to the span
62-
span.update_trace(
63-
input=input,
64-
output=output,
60+
with langfuse.start_as_current_observation(as_type="span", name="my-trace") as span:
61+
# Add additional attributes (user_id, session_id, metadata, version, tags) to all spans created within this execution scope
62+
with propagate_attributes(
6563
user_id="user_123",
6664
session_id="session_abc",
67-
tags=["agent", "my-trace"],
68-
metadata={"email": "[email protected]"},
69-
version="1.0.0"
65+
metadata={"experiment": "variant_a", "env": "prod"},
66+
version="1.0"
67+
):
68+
69+
# YOUR APPLICATION CODE HERE
70+
result = call_llm("some input")
71+
72+
# Update the trace input and output
73+
langfuse.start_as_current_observation(
74+
input=input,
75+
output=result,
7076
)
7177

7278
# Flush events in short-lived applications

components-mdx/prompt-linking.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ langfuse = get_client()
3232

3333
prompt = langfuse.get_prompt("movie-critic")
3434

35-
with langfuse.start_as_current_generation(
35+
with langfuse.start_as_current_observation(
36+
as_type="generation",
3637
name="movie-generation",
3738
model="gpt-4o",
3839
prompt=prompt

components-mdx/team-members.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Jannik Maierhöfer, [@jmaierhoefer](https://x.com/jmaierhoefer), [GitHub](https://github.com/jannikmaierhoefer), [LinkedIn](https://www.linkedin.com/in/maierhoefer/)
88
- Felix Krauth, [@felixkrrr](https://x.com/felixkrrr), [GitHub](https://github.com/felixkrrr), [LinkedIn](https://www.linkedin.com/in/krauth/)
99
- Akio Nuernberger, [@AkioNuernberger](https://x.com/AkioNuernberger), [LinkedIn](https://www.linkedin.com/in/akio-nuernberger/)
10-
- Nimar Blume, [GitHub](https://github.com/nimarb), [LinkedIn](https://www.linkedin.com/in/nimar/)
10+
- Nimar Blume, [@nimarblu](https://x.com/nimarblu), [GitHub](https://github.com/nimarb), [LinkedIn](https://www.linkedin.com/in/nimar/)
1111
- Michael Froehlich, [GitHub](https://github.com/FroeMic), [LinkedIn](https://www.linkedin.com/in/m-froehlich)
1212
- Valeriy Meleshkin, [GitHub](https://github.com/sumerman), [LinkedIn](https://www.linkedin.com/in/valeriy-meleshkin-5610ab58)
13+
- Lotte Verheyden, [GitHub](https://github.com/Lotte-Verheyden), [LinkedIn](https://www.linkedin.com/in/lotteverheyden/)

components/Background.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DotPattern } from "./magicui/dot-pattern";
22

33
export const Background = () => (
4-
<div className="absolute top-0 bottom-0 left-0 right-0 -z-50">
4+
<div className="absolute top-0 bottom-0 left-0 right-0 -z-50 pointer-events-none">
55
<DotPattern
66
width={15}
77
height={15}

components/CalComScheduleDemo.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
import Cal, { getCalApi } from "@calcom/embed-react";
22
import { useEffect } from "react";
33

4-
export function ScheduleDemo({
5-
className,
6-
region,
7-
}: {
8-
className?: string;
9-
region: "us" | "eu";
10-
}) {
4+
export function ScheduleDemo({ className }: { className?: string }) {
115
useEffect(() => {
126
(async function () {
137
const cal = await getCalApi();
148
cal("ui", {
159
styles: { branding: { brandColor: "#000000" } },
16-
hideEventTypeDetails: false,
10+
hideEventTypeDetails: true,
1711
layout: "month_view",
1812
});
1913
})();
2014
}, []);
2115

22-
const calLink = region === "us" ? "team/langfuse/intro" : "team/langfuse/intro-eu";
23-
2416
return (
2517
<Cal
26-
calLink={calLink}
18+
calLink="team/langfuse/intro"
2719
className={className}
2820
style={{ width: "100%", height: "100%", overflow: "scroll" }}
2921
config={{ layout: "month_view" }}

components/GitHubBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import IconGithub from "./icons/github";
44
export const GithubMenuBadge = () => (
55
<a
66
href="https://github.com/langfuse/langfuse"
7-
className="group h-8 flex shrink-0 flex-row items-center rounded border border-primary/10 overflow-hidden transition-opacity"
7+
className="hidden sm:flex group h-8 shrink-0 flex-row items-center rounded border border-primary/10 overflow-hidden transition-opacity"
88
target="_blank"
99
rel="nofollow noreferrer"
1010
title="GitHub Repository"

components/HiringBadge.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ export function HiringBadge() {
1919
onMouseLeave={() => setIsHovered(false)}
2020
onFocus={() => setIsHovered(true)}
2121
onBlur={() => setIsHovered(false)}
22+
style={{ width: "max-content" }}
2223
>
23-
{isHovered ? "Looking for 🐐s!" : "Hiring in Berlin and SF"}
24+
<span className={cn(isHovered && "invisible")}>
25+
Hiring in Berlin and SF
26+
</span>
27+
<span className={cn("absolute", !isHovered && "invisible")}>
28+
Looking for 🐐s!
29+
</span>
2430
</Link>
2531
);
2632
}
27-

0 commit comments

Comments
 (0)