Skip to content

Commit 576d9a4

Browse files
authored
Env docs (langfuse#627)
* push * push
1 parent 35af19d commit 576d9a4

File tree

6 files changed

+3346
-4101
lines changed

6 files changed

+3346
-4101
lines changed

cookbook/python_sdk_low_level.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@
118118
"| `LANGFUSE_HOST`, `host` | Host of the Langfuse API | `\"https://cloud.langfuse.com\"` \n",
119119
"| `LANGFUSE_RELEASE`, `release` | Optional. The release number/hash of the application to provide analytics grouped by release.\t| [common system environment names](https://github.com/langfuse/langfuse-python/blob/main/langfuse/environment.py#L3)\n",
120120
"| `LANGFUSE_DEBUG`, `debug` | Optional. Prints debug logs to the console | `False`\n",
121-
"| n/a, `threads` | Specifies the number of consumer threads to execute network requests to the Langfuse server. Helps scaling the SDK for high load. Only increase this if you run into scaling issues. | 1"
121+
"| `LANGFUSE_THREADS`, `threads` | Specifies the number of consumer threads to execute network requests to the Langfuse server. Helps scaling the SDK for high load. Only increase this if you run into scaling issues. | 1\n",
122+
"| `LANGFUSE_MAX_RETRIES`, `max_retries` | Specifies the number of times the SDK should retry network requests for tracing. | 3\n",
123+
"| `LANGFUSE_TIMEOUT`, `timeout` | Timeout in seonds for network requests | 20"
122124
]
123125
},
124126
{

pages/docs/integrations/litellm.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ chat(messages)
144144

145145
```
146146

147+
## Use Langfuse environment variables
148+
149+
To customise Langfuse settings, use the [Langfuse environment variables](docs/sdk/python/low-level-sdk#initialize-client). These will be picked up by our SDK on initialization.
150+
151+
147152
</Tab>
148153
<Tab>
149154
By setting the callback to Langfuse in the LiteLLM UI you can instantly log your responses across all providers. <br />

0 commit comments

Comments
 (0)