Skip to content

Commit

Permalink
Add stack traces to panics reported in telemetry error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
orishoshan committed May 12, 2024
1 parent 67b8d3f commit d662aa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/operator/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
otterizev1alpha3 "github.com/otterize/intents-operator/src/operator/api/v1alpha3"
mutatingwebhookconfiguration "github.com/otterize/intents-operator/src/operator/controllers/mutating_webhook_controller"
operatorwebhooks "github.com/otterize/intents-operator/src/operator/webhooks"
"github.com/otterize/intents-operator/src/shared"
"github.com/otterize/intents-operator/src/shared/awsagent"
"github.com/otterize/intents-operator/src/shared/azureagent"
"github.com/otterize/intents-operator/src/shared/clusterutils"
Expand Down Expand Up @@ -130,6 +131,8 @@ func main() {

ctrl.SetLogger(logrusr.New(logrus.StandardLogger()))

shared.RegisterPanicHandlers()

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Metrics: server.Options{
Expand Down

0 comments on commit d662aa3

Please sign in to comment.