Skip to content

Commit 292c172

Browse files
author
stevenbdf
committed
feat: add langfuse metadata and tags
1 parent c75005b commit 292c172

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

fern/providers/observability/langfuse.mdx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,39 @@ To make the most out of this integration, you can now use Langfuse's [evaluation
7676

7777
</Step>
7878
</Steps>
79+
80+
## Enrich Traces
81+
Vapi allows you to enrich Langfuse traces by integrating [Metadata](https://langfuse.com/docs/tracing-features/metadata) and [Tags](https://langfuse.com/docs/tracing-features/tags).
82+
83+
By default, we will add the following values to the metadata of each trace:
84+
85+
- `call.metadata`
86+
- `assistant.metadata`
87+
- `assistantOverrides.metadata`
88+
- `assistantOverrides.variableValues`
89+
90+
### Usage
91+
You can enhance your observability in Langfuse by adding metadata and tags:
92+
93+
**Metadata**
94+
95+
Use the [`assistant.observabilityPlan.metadata`](https://docs.vapi.ai/api-reference/assistants/create#request.body.observabilityPlan.metadata) field to attach custom key-value pairs.
96+
97+
Examples:
98+
- Track experiment versions ("experiment": "v2.1")
99+
- Store user segments ("user_type": "beta_tester")
100+
- Log environment details ("env": "production")
101+
102+
**Tags**
103+
104+
Use the [`assistant.observabilityPlan.tags`](https://docs.vapi.ai/api-reference/assistants/create#request.body.observabilityPlan.tags) field to add searchable labels.
105+
106+
Examples:
107+
- Mark important runs ("priority")
108+
- Group related sessions ("onboarding", "A/B_test")
109+
- Filter by feature ("voice_assistant")
110+
111+
Adding metadata and tags makes it easier to filter, analyze, and monitor your assistants activity in Langfuse.
112+
113+
### Example
114+
![Langfuse Metadata Example](../../static/images/providers/langfuse-example.png)
Loading

0 commit comments

Comments
 (0)