heroku / heroku-cli-command
1
import {v4 as uuid} from 'uuid'
2

3
let requestId: string
4

5
// `requestId` is generated once per entire node session
6
// upon the first call of `getRequestId`
7
export function getRequestId(): string {
8 3
  if (!requestId) {
9 0
    requestId = uuid()
10
  }
11

12 0
  return requestId
13
}

Read our documentation on viewing source code .

Loading