GoogleCloudPlatform / fluent-plugin-detect-exceptions

A fluentd plugin that scans line-oriented log streams and combines exceptions stacks into a single log entry.
Apache License 2.0
192 stars 69 forks source link

Go: match anonymous functions #97

Closed kuldazbraslav closed 1 year ago

kuldazbraslav commented 2 years ago

Example stacktrace to match:

panic: test

goroutine 1 [running]:
cmd.glob..func1(0x228dec0?, {0x1607516?, 0x5?, 0x5?})
    /app/cmd/controller.go:41 +0x885
github.com/spf13/cobra.(*Command).execute(0x228dec0, {0xc00022fb80, 0x5, 0x5})
    /go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x228e3c0)
    /go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
    /go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
cmd.Execute(...)
    /app/cmd/root.go:34
main.main()
    /app/main.go:18 +0x25