Skip to content

Commit 00b7ce2

Browse files
authored
Export GOTRACEBACK=crash env variable (sonic-net#18559)
### Why I did it Improve visibility for telemetry crashes by allowing core to be dumped. ### How I did it Export GOTRACEBACK=crash as an environment variable. #### How to verify it Manual test 1) Change telemetry binary to crash always, first line of telemetry.go main() -> panic("problem") 2) Add change to telemetry.sh 3) Restart telemetry 4) See core in /var/core
1 parent 404e27b commit 00b7ce2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dockers/docker-sonic-telemetry/telemetry.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CERTS=$(echo $TELEMETRY_VARS | jq -r '.certs')
1919

2020
TELEMETRY_ARGS=" -logtostderr"
2121
export CVL_SCHEMA_PATH=/usr/sbin/schema
22+
export GOTRACEBACK=crash
2223

2324
if [ -n "$CERTS" ]; then
2425
SERVER_CRT=$(echo $CERTS | jq -r '.server_crt')

0 commit comments

Comments
 (0)