Skip to content

Commit

Permalink
Add otel flags back to migrate command
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Aug 21, 2024
1 parent 0e4105b commit c529652
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/fatih/color"
"github.com/jzelinskie/cobrautil/v2"
"github.com/jzelinskie/cobrautil/v2/cobraotel"
"github.com/spf13/cobra"

crdbmigrations "github.com/authzed/spicedb/internal/datastore/crdb/migrations"
Expand All @@ -30,6 +31,9 @@ func RegisterMigrateFlags(cmd *cobra.Command) {
cmd.Flags().String("datastore-mysql-table-prefix", "", "prefix to add to the name of all mysql database tables")
cmd.Flags().Uint64("migration-backfill-batch-size", 1000, "number of items to migrate per iteration of a datastore backfill")
cmd.Flags().Duration("migration-timeout", 1*time.Hour, "defines a timeout for the execution of the migration, set to 1 hour by default")

otel := cobraotel.New(cmd.Use)
otel.RegisterFlags(cmd.Flags())
termination.RegisterFlags(cmd.Flags())
runtime.RegisterFlags(cmd.Flags())
}
Expand Down

0 comments on commit c529652

Please sign in to comment.