Skip to content

Commit 56b0d51

Browse files
authored
Add instructions to adjust tracing level (#392)
1 parent 636d1b7 commit 56b0d51

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

spiceaidocs/docs/cli/tracing.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: 'Configuring Trace Levels'
3+
sidebar_label: 'Trace Levels'
4+
description: 'Documentation on how to configure Spice.ai OSS trace levels'
5+
pagination_prev: null
6+
---
7+
8+
Trace verbosity is controlled by the `SPICED_LOG` environment variable.
9+
10+
### Default Trace Levels
11+
12+
The default level is `INFO` for these components:
13+
14+
```bash
15+
SPICED_LOG="task_history=INFO,spiced=INFO,runtime=INFO,secrets=INFO,data_components=INFO,cache=INFO,extensions=INFO,spice_cloud=INFO"
16+
```
17+
18+
### Enabling Debug Mode
19+
20+
To enable debug mode, which provides detailed logs, use:
21+
22+
```bash
23+
SPICED_LOG="DEBUG" spice run
24+
```
25+
26+
For the most verbose logging, set the trace level to `TRACE`:
27+
28+
```bash
29+
SPICED_LOG="TRACE" spice run
30+
```
31+
32+
### Granular Configuration
33+
34+
For specific components, adjust the trace levels as needed:
35+
36+
```bash
37+
SPICED_LOG="spiced=INFO,runtime=DEBUG,data_components=WARN,cache=WARN" spice run
38+
```

0 commit comments

Comments
 (0)