andriyko
05/24/2024, 1:45 PMrelation_tuple
table doesn't store any additional context. On the client side, I have a grpc client interceptor that injects x-request-id into client details metadata, which is then logged by spicedb server in requestID
field: {
"level": "info",
"protocol": "grpc",
"grpc.component": "server",
"grpc.service": "authzed.api.v1.PermissionsService",
"grpc.method": "WriteRelationships",
"grpc.method_type": "unary",
"requestID": "this-is-injected-by-client",
"peer.address": "172.21.0.5:47620",
"grpc.start_time": "2024-05-24T13:15:04Z",
"grpc.code": "OK",
"grpc.time_ms": 14,
"time": "2024-05-24T13:15:04Z",
"message": "finished call"
}
But that request-id is not persisted and is not exposed via Watch API. I wonder how the Audit log records (with Extender feature in enterprise builds) have metadata with x-request-id without storing request context in the database. Does it push the data/logs from spicedb to another service/API?