Skip to content

Track CLI panics #616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Track CLI panics #616

merged 1 commit into from
Aug 8, 2024

Conversation

lionello
Copy link
Member

@lionello lionello commented Aug 8, 2024

Results in a segment.com event like this:

{
  "context": {
    "library": {
      "name": "analytics-go",
      "version": "3.0.0"
    },
    "os": {
      "name": "darwin",
      "version": "arm64"
    }
  },
  "event": "Panic",
  "integrations": {},
  "originalTimestamp": "2024-08-08T22:36:33.233736594Z",
  "properties": {
    "error": "runtime error: index out of range [1] with length 0",
    "stack": "goroutine 1 [running]:\nruntime/debug.Stack()\n\t/nix/store/v8llgr5prc0rawmgynacggg0q4pbvk5w-go-1.21.10/share/go/src/runtime/debug/stack.go:24 +0x64\nmain.main.func1()\n\t/Users/…/dev/defang/src/cmd/cli/main.go:16 +0x40\npanic({0x10464afe0?, 0x14000154870?})\n\t/nix/store/v8llgr5prc0rawmgynacggg0q4pbvk5w-go-1.21.10/share/go/src/runtime/panic.go:914 +0x218\ngithub.com/DefangLabs/defang/src/pkg/cli/client/byoc/aws.(*ByocAws).BootstrapList(0x140003e5b60, {0x104af93c0, 0x1400039a910})\n\t/Users/…/dev/defang/src/pkg/cli/client/byoc/aws/byoc.go:754 +0x80c\ngithub.com/DefangLabs/defang/src/pkg/cli.BootstrapLocalList({0x104af93c0, 0x1400039a910}, {0x104b0a228, 0x140003e5b60})\n\t/Users/…/dev/defang/src/pkg/cli/bootstrap.go:39 +0x84\ngithub.com/DefangLabs/defang/src/cmd/cli/command.glob..func29(0x105732520, {0x105775ac0?, 0x0?, 0x0?})\n\t/Users/…/dev/defang/src/cmd/cli/command/commands.go:1286 +0x80\ngithub.com/spf13/cobra.(*Command).execute(0x105732520, {0x105775ac0, 0x0, 0x0})\n\t/Users/…/go/pkg/mod/github.com/spf13/[email protected]/command.go:983 +0x840\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x105732800)\n\t/Users/…/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x344\ngithub.com/spf13/cobra.(*Command).Execute(...)\n\t/Users/…/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039\ngithub.com/spf13/cobra.(*Command).ExecuteContext(...)\n\t/Users/…/go/pkg/mod/github.com/spf13/[email protected]/command.go:1032\ngithub.com/DefangLabs/defang/src/cmd/cli/command.Execute({0x104af93c0?, 0x1400039a910})\n\t/Users/…/dev/defang/src/cmd/cli/command/commands.go:66 +0x9c\nmain.main()\n\t/Users/…/dev/defang/src/cmd/cli/main.go:36 +0x104\n"
  },
  "receivedAt": "2024-08-08T22:36:33.729Z",
  "sentAt": "2024-08-08T22:36:33.720Z",
  "timestamp": "2024-08-08T22:36:33.242Z",
  "type": "track",
  "writeKey": "REDACTED"
}

Copy link
Member

@jordanstephens jordanstephens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful

@lionello
Copy link
Member Author

lionello commented Aug 8, 2024

TODO: should eventually have a separate rpc to Fabric and push these to our logs/CloudWatch dashboards.

@lionello lionello merged commit 30a299a into main Aug 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants