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
313
305
```
314
306
315
-
316
-
317
307
## Reference: `spicedb lsp`
318
308
319
309
serve language server protocol
@@ -337,20 +327,17 @@ spicedb lsp [flags]
337
327
--skip-release-check if true, skips checking for new SpiceDB releases
338
328
```
339
329
340
-
341
-
342
330
## Reference: `spicedb man`
343
331
344
332
Generate a man page for SpiceDB.
345
-
The output can be redirected to a file and installed to the system:
333
+
The output can be redirected to a file and installed to the system:
346
334
347
335
```
348
336
spicedb man > spicedb.1
349
337
sudo mv spicedb.1 /usr/share/man/man1/
350
338
sudo mandb # Update man page database
351
339
```
352
340
353
-
354
341
```
355
342
spicedb man
356
343
```
@@ -363,8 +350,6 @@ spicedb man
363
350
--skip-release-check if true, skips checking for new SpiceDB releases
364
351
```
365
352
366
-
367
-
368
353
## Reference: `spicedb postgres-fdw`
369
354
370
355
EXPERIMENTAL: Serves a Postgres-compatible interface for querying SpiceDB data using foreign data wrappers. This feature is experimental and subject to change.
@@ -392,8 +377,6 @@ spicedb postgres-fdw [flags]
392
377
--skip-release-check if true, skips checking for new SpiceDB releases
393
378
```
394
379
395
-
396
-
397
380
## Reference: `spicedb serve`
398
381
399
382
start a SpiceDB server
@@ -580,8 +563,6 @@ spicedb serve [flags]
580
563
--skip-release-check if true, skips checking for new SpiceDB releases
581
564
```
582
565
583
-
584
-
585
566
## Reference: `spicedb serve-testing`
586
567
587
568
An in-memory spicedb server which serves completely isolated datastores per client-supplied auth token used.
@@ -644,8 +625,6 @@ spicedb serve-testing [flags]
644
625
--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 header and the
159
-
information will be found in the response footer as JSON.
182
+
**Warning:** In versions older than v1.31.0, you must request tracing
183
+
information via a header, and the trace data will be returned in the response
0 commit comments