Hello,
I’m using binary go lang plugins, these plugins are sending huge run time stack trace to pagerduty and to slack. like below:
version: sensuctl version 5.21.5+oss_el7+ce, community edition, built 2021-05-11, built with go1.15.5
Can we restrict this behaviour and configure such that it should not send runtime stack and only send brief error?
node-name : fatal error: runtime: out of memory
runtime stack:
runtime.throw(0x55cdaf, 0x16)
/opt/go/src/runtime/panic.go:608 +0x72 fp=0x7ffefe9bd1b0 sp=0x7ffefe9bd180 pc=0x429722
runtime.sysMap(0xc000000000, 0x4000000, 0x67d018)
/opt/go/src/runtime/mem_linux.go:156 +0xc7 fp=0x7ffefe9bd1f0 sp=0x7ffefe9bd1b0 pc=0x415c97
runtime.(*mheap).sysAlloc(0x664960, 0x4000000, 0x0, 0x0)
/opt/go/src/runtime/malloc.go:619 +0x1c7 fp=0x7ffefe9bd278 sp=0x7ffefe9bd1f0 pc=0x40a497
runtime.(*mheap).grow(0x664960, 0x1, 0x0)
/opt/go/src/runtime/mheap.go:920 +0x42 fp=0x7ffefe9bd2d0 sp=0x7ffefe9bd278 pc=0x421f92
runtime.(*mheap).allocSpanLocked(0x664960, 0x1, 0x67d028, 0x0)
/opt/go/src/runtime/mheap.go:848 +0x337 fp=0x7ffefe9bd310 sp=0x7ffefe9bd2d0 pc=0x421e17
runtime.(*mheap).alloc_m(0x664960, 0x1, 0x2a, 0x0)
/opt/go/src/runtime/mheap.go:692 +0x119 fp=0x7ffefe9bd350 sp=0x7ffefe9bd310 pc=0x421629
runtime.(*mheap).alloc.func1()
/opt/go/src/runtime/mheap.go:759 +0x4c fp=0x7ffef
Kindly please help!