package nomad import ( "context" "fmt" "github.com/getsentry/sentry-go" "io" "regexp" "strconv" "time" ) const ( // timeDebugMessageFormat is the format of messages that will be converted to debug messages. // Format Parameters: 1. Debug Comment, 2. command. timeDebugMessageFormatStart = `echo -ne "\x1EPoseidon %s $(date +%%s%%3N)\x1E"; %s` // Format Parameters: 1. command, 2. Debug Comment. timeDebugMessageFormatEnd = `%s; bash -c "ec=$?; echo -ne \"\\x1EPoseidon %s \$(date +%%s%%3N)\\x1E\" && exit \$ec"` ) var ( timeDebugMessagePattern = regexp. MustCompile(`(?P.*)\x1EPoseidon (?P.+) (?P