Joey
07/21/2022, 2:59 PMguillermotimon
07/21/2022, 3:47 PMNigel
07/21/2022, 3:48 PMjzelinskie
07/21/2022, 4:38 PMyetitwo
07/21/2022, 8:35 PMSPICEDB_OTEL_ENDPOINT=localhost:4317
and a SPICEDB_OTEL_PROVIDER=otlphttp
environment variable, but it looks like it's trying to hit the sidecar with https, which doesn't work because it's expecting http. what's an example value for ENDPOINT
? is it a full url? (e.g. http://localhost:4317
?)jzelinskie
07/21/2022, 8:40 PMyetitwo
07/21/2022, 8:40 PMjzelinskie
07/21/2022, 8:43 PMjzelinskie
07/21/2022, 8:44 PMyetitwo
07/21/2022, 8:45 PMyetitwo
07/21/2022, 9:16 PMSPICEDB_
?Joey
07/21/2022, 9:18 PMJoey
07/21/2022, 9:18 PMJoey
07/21/2022, 9:18 PMyetitwo
07/21/2022, 9:18 PMyetitwo
07/21/2022, 9:19 PMSPICEDB_*
env vars and then pass those to all downstream code which will include the otel exporter?yetitwo
07/21/2022, 9:20 PMSPICEDB_OTEL_EXPORTER_OTLP_INSECURE=true
in the environmentpablo.estrada
07/22/2022, 1:46 AMJoey
07/22/2022, 2:00 AMTOUCH
operation, which, if the relationship doesn't exist, will (more or less) no-opJoey
07/22/2022, 2:00 AMCREATE
, on the other hand, will raise an error if the relationship already exists and you try to write itpablo.estrada
07/22/2022, 2:08 AMJoey
07/22/2022, 2:12 AMTOUCH
if you don't mind if the relationship already exists for the write to be "skipped"Joey
07/22/2022, 2:14 AMjzelinskie
07/22/2022, 3:46 AMJaroslav Holaň
07/22/2022, 1:11 PMPermissionsServiceGrpc.PermissionsServiceBlockingStub
permissionsService
When I write any relationship
permissionsService.writeRelationships(request);
and I'll run a check right away.
permissionsService.checkPermission(request);
It returns
PERMISSIONSHIP_NO_PERMISSION
But if I wait about 5 seconds and call it again
permissionsService.checkPermission(request);
It returns the correct answer
PERMISSIONSHIP_HAS_PERMISSION
williamdclt
07/22/2022, 1:32 PM--datastore-revision-quantization-interval
). It makes SpiceDB eventually consistent by default.
You can specify the level of consistency when making a check request, it sounds like you want fullyConsistent
here. It makes the check much slower, but you probably don't care in testsJaroslav Holaň
07/22/2022, 1:39 PMyetitwo
07/22/2022, 3:42 PM--otel-endpoint string OpenTelemetry collector endpoint - the endpoint can also be set by using enviroment variables
--otel-provider string OpenTelemetry provider for tracing ("none", "jaeger, otlphttp", "otlpgrpc") (default "none")
--otel-service-name string service name for trace data (default "spicedb")
--otel-trace-propagator string OpenTelemetry trace propagation format ("b3", "w3c", "ottrace"). Add multiple propagators separated by comma. (default "w3c")
where the other OTEL configuration env vars do not use the prefix?yetitwo
07/22/2022, 3:42 PMspicedb serve help
jzelinskie
07/22/2022, 3:43 PM