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

Function orgID

internal/telemetry/telemetry.go:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func orgID() string {
89 // TODO, once we add access token parsing, use that instead of id token.
90 // that will work with API_TOKEN as well.
91 if tok, err := identity.Peek(); err == nil && tok.IDClaims() != nil {
92 return tok.IDClaims().OrgID
93 }
94 return ""
95}
96
97// Stop stops gathering telemetry and flushes buffered events to disk.
98func Stop() {

Callers 1

newTrackMessageFunction · 0.85

Calls 1

PeekFunction · 0.92

Tested by

no test coverage detected