feat: add Sentry setup
This commit is contained in:
@@ -129,7 +129,7 @@ func start(closeEvents chan error, logger *log.Entry, connectToAmqpFunc func(url
|
||||
goamqp.EventStreamPublisher(eventPublisher),
|
||||
goamqp.TransientEventStreamConsumer("SubGraph.Updated", serviceCache.Update, domain.SubGraphUpdated{}),
|
||||
}
|
||||
if err := conn.Start(setups...); err != nil {
|
||||
if err := conn.Start(rootCtx, setups...); err != nil {
|
||||
return fmt.Errorf("failed to setup AMQP: %v", err)
|
||||
}
|
||||
|
||||
@@ -260,6 +260,6 @@ func ConnectAMQP(url string) (Connection, error) {
|
||||
}
|
||||
|
||||
type Connection interface {
|
||||
Start(opts ...goamqp.Setup) error
|
||||
Start(ctx context.Context, opts ...goamqp.Setup) error
|
||||
Close() error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user