Hello everyone! I am experiencing an issue when...
# spicedb
m
Hello everyone! I am experiencing an issue when upgrading from SpiceDB 1.11 to 1.14, specifically about OpenTelemetry metrics. My configuration is as follows:
Copy code
SPICEDB_OTEL_ENDPOINT: "http://127.0.0.1:14268/api/traces"
SPICEDB_OTEL_PROVIDER: jaeger
While metrics were collected before, after the upgrade the application fails with the following logs:
Copy code
{"level":"info","format":"json","log_level":"info","provider":"zerolog","async":false,"time":"2022-11-03T15:47:13Z","message":"configured logging"}
panic: failed to find cobra flag: otel-jaeger-endpoint

goroutine 1 [running]:
github.com/jzelinskie/cobrautil/v2.MustGetString(0x2569ec0?, {0x20c440b, 0x14})
    /home/runner/go/pkg/mod/github.com/jzelinskie/cobrautil/v2@v2.0.0-20221003230316-3022721fa8f0/must.go:252 +0x79
github.com/jzelinskie/cobrautil/v2/cobraotel.(*Builder).RunE.func1(0xc000382280, {0x86c6d1?, 0xc000219700?, 0x20a8a92?})
    ...
If I omit
SPICEDB_OTEL_ENDPOINT
, the application starts again (without the metrics):
Copy code
{"level":"info","format":"json","log_level":"info","provider":"zerolog","async":false,"time":"2022-11-03T16:00:36Z","message":"configured logging"}
{"level":"info","v":0,"provider":"none","endpoint":"","service":"spicedb","insecure":false,"time":"2022-11-03T16:00:36Z","message":"configured opentelemetry tracing"}
...
I am not sure if is related, but I see from here that specific flag is considered legacy: https://github.com/jzelinskie/cobrautil/blob/main/cobraotel/cobraotel.go#L111 Any idea? Thank you very much, have a nice evening! 🙂