Joey
04/29/2022, 3:30 AMlukewestby
04/29/2022, 4:26 AMprudhvid
04/29/2022, 5:04 PMJake
04/29/2022, 5:04 PMnadilas
05/01/2022, 8:40 PMsysprefix/resourceType:parent-child
I'd like to run zed relationship read sysprefix/resourceType:parent-* relationName
. Should this work?Joey
05/01/2022, 8:54 PMshubhamsinha
05/02/2022, 6:59 PMjzelinskie
05/02/2022, 8:10 PMhs
definition user {}
definition organization {
relation reader: user
relation admin: user
permission can_read_all_docs = reader + admin
}
definition doc {
relation org: organization
relation reader: user
permission can_read = reader + org->can_read_all_docs // org-wide listers can also view all
}
shubhamsinha
05/02/2022, 9:00 PMshubhamsinha
05/02/2022, 9:00 PMjzelinskie
05/02/2022, 9:21 PMprudhvid
05/03/2022, 3:48 AMJake
05/03/2022, 3:49 AMvad
05/03/2022, 11:37 AMecordell
05/03/2022, 1:03 PMwarn
log with a message like unable to initialize telemetry collector
that might tell you specifically what's failing - do you see a log like that?vad
05/03/2022, 1:04 PM{
"level": "warn",
"error": "unable to query DB stats: unable to read relationship count: can't scan into dest[0]: -1 is less than zero for uint64",
"time": "2022-05-03T12:47:30Z",
"message": "unable to initialize telemetry collector"
}
ecordell
05/03/2022, 1:05 PMecordell
05/03/2022, 1:05 PMvad
05/03/2022, 1:06 PMtrichner
05/03/2022, 1:13 PMSPICEDB_OTEL_ENDPOINT: localhost:4317
SPICEDB_OTEL_PROVIDER: otlpgrpc
2. collector sidecar otel/opentelemetry-collector-contrib
3. receiver configured:
receivers:
otlp:
protocols:
grpc:
What I expect: Traces received and forwarded by the collector.
What actually happens: the collector thinks the forwarded traces are bogustrichner
05/03/2022, 1:14 PMtrichner
05/03/2022, 1:15 PM[core] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client:
ecordell
05/03/2022, 1:26 PMecordell
05/03/2022, 1:28 PMvad
05/03/2022, 1:30 PMtrichner
05/03/2022, 2:00 PMspicedb help serve
there is no definition whether this will expect TLS or not. Does it expect TLS?trichner
05/03/2022, 2:05 PMotlpgrpc
will this try to open a TLS connection or not?trichner
05/03/2022, 2:13 PM2022/05/03 14:12:32 max retry time elapsed: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"
I suspect some library might go around your logging setup.trichner
05/03/2022, 2:14 PMtrichner
05/03/2022, 2:14 PM