From 61742e454ec8c6881340097277bc15a8ff62a167 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Fri, 20 Sep 2024 12:40:08 -0600 Subject: [PATCH] Fix serve-devtools flags --- pkg/cmd/devtools.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/cmd/devtools.go b/pkg/cmd/devtools.go index 55b2a1b8ee..eb24d68003 100644 --- a/pkg/cmd/devtools.go +++ b/pkg/cmd/devtools.go @@ -17,6 +17,7 @@ import ( "github.com/jzelinskie/cobrautil/v2" "github.com/jzelinskie/cobrautil/v2/cobragrpc" "github.com/jzelinskie/cobrautil/v2/cobrahttp" + "github.com/jzelinskie/cobrautil/v2/cobraotel" "github.com/jzelinskie/stringz" "github.com/spf13/cobra" "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" @@ -28,6 +29,7 @@ import ( v0svc "github.com/authzed/spicedb/internal/services/v0" "github.com/authzed/spicedb/pkg/cmd/server" "github.com/authzed/spicedb/pkg/cmd/termination" + "github.com/authzed/spicedb/pkg/runtime" ) func RegisterDevtoolsFlags(cmd *cobra.Command) { @@ -42,6 +44,11 @@ func RegisterDevtoolsFlags(cmd *cobra.Command) { cmd.Flags().String("s3-bucket", "", "s3 bucket name for s3 share store") cmd.Flags().String("s3-endpoint", "", "s3 endpoint for s3 share store") cmd.Flags().String("s3-region", "auto", "s3 region for s3 share store") + + otel := cobraotel.New(cmd.Use) + otel.RegisterFlags(cmd.Flags()) + termination.RegisterFlags(cmd.Flags()) + runtime.RegisterFlags(cmd.Flags()) } func NewDevtoolsCommand(programName string) *cobra.Command {