Skip to content

Commit b559494

Browse files
committed
docs: documented new --litellm-tracing argument (ref #48)
1 parent 13684d8 commit b559494

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

docs/index.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Supports [Jinja2](https://jinja.palletsprojects.com/) templating. You can:
7777
- Use built-in vars: `{{ CURRENT_DATE }}`, `{{ LOCAL_IP }}`, etc.
7878
- Run tools inline: `{{ get_logs_tool() }}`
7979

80-
### Bbuilt-in Variables
80+
### Built-in Variables
8181

8282
```yaml
8383
task: The current date is {{ CURRENT_DATE }} and the local IP is {{ LOCAL_IP }}.
@@ -252,6 +252,20 @@ See [workflows.md](workflows.md) for a full breakdown.
252252

253253
For more complex orchestrations, see [concepts.md](concepts.md#workflows).
254254

255+
### 🕵️‍♂️ Observability / Tracing
256+
257+
Nerve supports tracing via LiteLLM supported observability providers such as [langfuse](https://docs.litellm.ai/docs/observability/langfuse_integration), [OpenTelemetry](https://docs.litellm.ai/docs/observability/opentelemetry_integration) and more.
258+
259+
In order to enable tracing with one of these providers, set the relevant environment variables and then pass the provider name via the `--litellm-tracing` command line argument:
260+
261+
```bash
262+
export LANGFUSE_PUBLIC_KEY="..."
263+
export LANGFUSE_SECRET_KEY="..."
264+
export LANGFUSE_HOST="..."
265+
266+
nerve run <agent-name> --litellm-tracing langfuse
267+
```
268+
255269
### 🧭 More
256270
- [concepts.md](concepts.md): Core architecture & mental model
257271
- [evaluation.md](evaluation.md): Agent testing & benchmarking

nerve/cli/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def _get_run_args(
7070
bool,
7171
typer.Option("--litellm-debug", help="Enable litellm debug logging"),
7272
] = False,
73-
# TODO: document this
7473
litellm_tracing: t.Annotated[
7574
str | None,
7675
typer.Option("--litellm-tracing", help="Set litellm callbacks for tracing"),

0 commit comments

Comments
 (0)