MCPcopy Create free account
hub / github.com/jetify-com/devbox / newEventID

Function newEventID

internal/telemetry/telemetry.go:359–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

357}
358
359func 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
371func ShellStart() time.Time {
372 return ParseShellStart(os.Getenv(envir.DevboxShellStartTime))

Callers 2

newTrackMessageFunction · 0.85
sentry.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected