Skip to content

Commit

Permalink
fix: ftl dev crashes with OTEL enabled (#2767)
Browse files Browse the repository at this point in the history
fixes: #2766
  • Loading branch information
stuartwdouglas authored Sep 22, 2024
1 parent 58df201 commit 9df10ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/cli/cmd_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,16 @@ func (s *serveCmd) run(ctx context.Context, projConfig projectconfig.Config, ini

logger.Infof("Starting FTL with %d controller(s)", s.Controllers)

err := observability.Init(ctx, false, "", "ftl-serve", ftl.Version, s.ObservabilityConfig)
if err != nil {
return fmt.Errorf("observability init failed: %w", err)
}
// Bring up the DB and DAL.
dsn, err := s.setupDB(ctx, s.DatabaseImage)
if err != nil {
return err
}

err = observability.Init(ctx, false, "", "ftl-serve", ftl.Version, s.ObservabilityConfig)
if err != nil {
return fmt.Errorf("observability init failed: %w", err)
}

wg, ctx := errgroup.WithContext(ctx)

bindAllocator, err := bind.NewBindAllocator(s.Bind)
Expand Down

0 comments on commit 9df10ca

Please sign in to comment.