()
| 86 | } |
| 87 | |
| 88 | func 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. |
| 98 | func Stop() { |
no test coverage detected