Slide 13
Slide 13 text
©Commune Inc. All rights reserved 13
TypeScriptの場合わずかこれだけ!
ということで導入しました
import { start as startProfiler } from '@google-cloud/profiler'
const shortSha = process.env.SHORT_SHA || 'unknown'
startProfiler({
serviceContext: {
service: SERVICE_NAME,
version: shortSha,
},
}).catch(error => {
// This error does not directly affect the operation of the application
logger.warning(`[startProfiler] Google Cloud Profiler - ${error}`)
})