()
| 357 | } |
| 358 | |
| 359 | func newEventID() string { |
| 360 | // Generate event UUIDs the same way the Sentry SDK does: |
| 361 | // https://github.com/getsentry/sentry-go/blob/d9ce5344e7e1819921ea4901dd31e47a200de7e0/util.go#L15 |
| 362 | id := make([]byte, 16) |
| 363 | _, _ = rand.Read(id) |
| 364 | id[6] &= 0x0F |
| 365 | id[6] |= 0x40 |
| 366 | id[8] &= 0x3F |
| 367 | id[8] |= 0x80 |
| 368 | return hex.EncodeToString(id) |
| 369 | } |
| 370 | |
| 371 | func ShellStart() time.Time { |
| 372 | return ParseShellStart(os.Getenv(envir.DevboxShellStartTime)) |
no outgoing calls
no test coverage detected