You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--skip-release-check if true, skips checking for new SpiceDB releases
311
303
```
312
304
313
-
314
-
315
305
## Reference: `spicedb lsp`
316
306
317
307
serve language server protocol
@@ -335,20 +325,17 @@ spicedb lsp [flags]
335
325
--skip-release-check if true, skips checking for new SpiceDB releases
336
326
```
337
327
338
-
339
-
340
328
## Reference: `spicedb man`
341
329
342
330
Generate a man page for SpiceDB.
343
-
The output can be redirected to a file and installed to the system:
331
+
The output can be redirected to a file and installed to the system:
344
332
345
333
```
346
334
spicedb man > spicedb.1
347
335
sudo mv spicedb.1 /usr/share/man/man1/
348
336
sudo mandb # Update man page database
349
337
```
350
338
351
-
352
339
```
353
340
spicedb man
354
341
```
@@ -361,8 +348,6 @@ spicedb man
361
348
--skip-release-check if true, skips checking for new SpiceDB releases
362
349
```
363
350
364
-
365
-
366
351
## Reference: `spicedb postgres-fdw`
367
352
368
353
EXPERIMENTAL: Serves a Postgres-compatible interface for querying SpiceDB data using foreign data wrappers. This feature is experimental and subject to change.
@@ -391,8 +376,6 @@ spicedb postgres-fdw [flags]
391
376
--skip-release-check if true, skips checking for new SpiceDB releases
392
377
```
393
378
394
-
395
-
396
379
## Reference: `spicedb serve`
397
380
398
381
start a SpiceDB server
@@ -577,8 +560,6 @@ spicedb serve [flags]
577
560
--skip-release-check if true, skips checking for new SpiceDB releases
578
561
```
579
562
580
-
581
-
582
563
## Reference: `spicedb serve-testing`
583
564
584
565
An in-memory spicedb server which serves completely isolated datastores per client-supplied auth token used.
@@ -640,8 +621,6 @@ spicedb serve-testing [flags]
640
621
--skip-release-check if true, skips checking for new SpiceDB releases
Copy file name to clipboardExpand all lines: app/spicedb/modeling/validation-testing-debugging/page.mdx
+113-6Lines changed: 113 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,9 @@ You can run the integration test server by executing `spicedb serve-testing` or
25
25
26
26
While it is recommended that SpiceDB schema be validated and tested before production deployment, there are many scenarios where being able to see the actual paths taken against production data is incredibly important.
27
27
28
-
To support this, SpiceDB's v1 CheckPermission API supports a debug header that will cause SpiceDB to trace the full set of relations and permission traversed while computing the check.
28
+
**This method is deprecated.** As of v1.30.0+, use the [Check Tracing](#check-tracing) method with `withTracing: true` instead, which returns trace data directly in the response body.
29
+
30
+
In versions prior to v1.30.0, this method uses gRPC metadata headers to request debug trace information, with the trace data returned in the response trailer.
29
31
30
32
<Callouttype="warning">
31
33
**Warning:**
@@ -38,9 +40,24 @@ Instead, we recommend using [zed's explain flag] for this purpose.
38
40
39
41
</Callout>
40
42
41
-
Configuring this header is done by setting the header `io.spicedb.requestdebuginfo` to the string `true`.
43
+
To request debug information, set the header `io.spicedb.requestdebuginfo` to `1`.
44
+
45
+
<Callouttype="info">
46
+
**Note:** In SpiceDB v1.30.0+, this header still works but the trace data is
47
+
returned in the response body (`debugTrace` field) rather than the trailer.
48
+
The trailer `io.spicedb.respmeta.debuginfo` will contain a message indicating
49
+
to check the response body instead.
50
+
</Callout>
51
+
52
+
#### Example
53
+
54
+
Using the `zed` CLI with the `--explain` flag (recommended):
42
55
43
-
The response will include a trailer, `io.spicedb.respmeta.debuginfo`, with a JSON-encoded tree.
This will print a visual tree of the permission check trace.
44
61
45
62
## Playground
46
63
@@ -150,15 +167,105 @@ project:docs#admin:
150
167
151
168
## Check Tracing
152
169
170
+
**This is the modern, recommended method for collecting trace information** (available in SpiceDB v1.30.0+). Unlike the legacy [CheckPermission Tracing Header](#checkpermission-tracing-header) approach (which returned trace data in a response trailer in versions prior to v1.30.0), this method returns the trace as a structured field directly in the response message body.
171
+
153
172
SpiceDB supports tracing of check requests to view the path(s) taken to compute the result, as well as timing information.
154
173
155
-
Request tracing information by setting `with_tracing: true` in the request message and the information will be found in the response message.
174
+
To request tracing information, set `withTracing: true` in the request message. The trace data will be returned in the response message.
175
+
176
+
**Key differences from the header-based approach:**
177
+
178
+
- More structured and easier to parse programmatically
179
+
- Preferred for modern integrations
156
180
157
181
<Callout type="warning">
158
-
**Warning:** In versions older than v1.31.0, request tracing information via a
159
-
header and the information will be found in the response footer as JSON.
182
+
**Warning:** In versions older than v1.30.0, you must request tracing
183
+
information via a header, and the trace data will be returned in the response
0 commit comments