mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
chore: add tracing documentation
This commit is contained in:
parent
9adc766f3c
commit
8ba18b485a
4 changed files with 30 additions and 11 deletions
18
docs/configurations/tracing.mdx
Normal file
18
docs/configurations/tracing.mdx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
title: "Tracing"
|
||||
description: "Trace your agents run in order to create evals and refine your prompts."
|
||||
---
|
||||
|
||||
### Langfuse
|
||||
We provide seamless integration with [Langfuse](https://github.com/langfuse/langfuse) so that you can enable tracing when you self host Dograh. In order to do that, you can sign up on [Langfuse](https://langfuse.com/) and create API credentials for you. Once you have your API tokens, you can put those in the environment variables. (If you are using docker, you can put that in `api` service of `docker-compose.yaml`).
|
||||
|
||||
```
|
||||
ENABLE_TRACING="true"
|
||||
LANGFUSE_SECRET_KEY=
|
||||
LANGFUSE_PUBLIC_KEY=
|
||||
LANGFUSE_HOST=
|
||||
```
|
||||
|
||||
Once you enable this, you would be able to see traces whenever a run completes in Dograh.
|
||||
|
||||

|
||||
|
|
@ -33,7 +33,8 @@
|
|||
"configurations/llm",
|
||||
"configurations/voice",
|
||||
"configurations/transcriber",
|
||||
"configurations/api-keys"
|
||||
"configurations/api-keys",
|
||||
"configurations/tracing"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
BIN
docs/images/view_trace.png
Normal file
BIN
docs/images/view_trace.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 185 KiB |
|
|
@ -213,10 +213,10 @@ export default function ConfigureTelephonyPage() {
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50">
|
||||
<div className="min-h-screen bg-background">
|
||||
<div className="container mx-auto px-4 py-8">
|
||||
<h1 className="text-3xl font-bold mb-2">Configure Telephony</h1>
|
||||
<p className="text-gray-600 mb-6">
|
||||
<p className="text-muted-foreground mb-6">
|
||||
Set up your telephony provider to make phone calls
|
||||
</p>
|
||||
|
||||
|
|
@ -299,7 +299,7 @@ export default function ConfigureTelephonyPage() {
|
|||
<div className="space-y-4 text-sm">
|
||||
<div>
|
||||
<h4 className="font-semibold mb-2">Getting Started with Vobiz:</h4>
|
||||
<ol className="list-decimal list-inside space-y-1 text-gray-600">
|
||||
<ol className="list-decimal list-inside space-y-1 text-muted-foreground">
|
||||
<li>Sign up for a Vobiz account</li>
|
||||
<li>Get your Auth ID from the Vobiz dashboard</li>
|
||||
<li>Generate an Auth Token</li>
|
||||
|
|
@ -307,8 +307,8 @@ export default function ConfigureTelephonyPage() {
|
|||
<li>Enter your credentials below</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div className="bg-blue-50 border border-blue-200 rounded p-3">
|
||||
<p className="text-sm text-blue-800">
|
||||
<div className="bg-muted border border-border rounded p-3">
|
||||
<p className="text-sm">
|
||||
<strong>Note:</strong> Vobiz provides cloud-based telephony services
|
||||
with global reach and competitive pricing.
|
||||
</p>
|
||||
|
|
@ -318,15 +318,15 @@ export default function ConfigureTelephonyPage() {
|
|||
<div className="space-y-4 text-sm">
|
||||
<div>
|
||||
<h4 className="font-semibold mb-2">Getting Started with Cloudonix:</h4>
|
||||
<ol className="list-decimal list-inside space-y-1 text-gray-600">
|
||||
<ol className="list-decimal list-inside space-y-1 text-muted-foreground">
|
||||
<li>Sign up for a Cloudonix account at https://cloudonix.com</li>
|
||||
<li>Create an <i>API token</i> for your Cloudonix domain</li>
|
||||
<li>Configure your Cloudoinx <i>API Token</i> and <i>Cloudonix Domain Name</i> in Dograh</li>
|
||||
<li>Configure an optional outbound phone number for your Dograh agent</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div className="bg-blue-50 border border-blue-200 rounded p-3">
|
||||
<p className="text-sm text-blue-800">
|
||||
<div className="bg-muted border border-border rounded p-3">
|
||||
<p className="text-sm">
|
||||
<strong>Note:</strong> Cloudonix uses Bearer token
|
||||
authentication and is fully TwiML-compatible for voice
|
||||
applications.
|
||||
|
|
@ -462,7 +462,7 @@ export default function ConfigureTelephonyPage() {
|
|||
<Label htmlFor="private_key">Private Key</Label>
|
||||
<textarea
|
||||
id="private_key"
|
||||
className="w-full min-h-[100px] px-3 py-2 text-sm border rounded-md"
|
||||
className="w-full min-h-[100px] px-3 py-2 text-sm border border-input bg-background rounded-md focus:outline-none focus:ring-2 focus:ring-ring"
|
||||
placeholder="-----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY-----"
|
||||
{...register("private_key", {
|
||||
required: selectedProvider === "vonage" && !hasExistingConfig
|
||||
|
|
@ -655,7 +655,7 @@ export default function ConfigureTelephonyPage() {
|
|||
{errors.from_number.message}
|
||||
</p>
|
||||
)}
|
||||
<p className="text-xs text-gray-500">
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Phone numbers can be fetched from Cloudonix DNIDs if not
|
||||
specified
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue