Cloud Functions gen2
ログ
アクセスログとしてちゃんと出るのは良い
logName
projects/{projectId}/logs/run.googleapis.com%2Fstdout になる
ヘッダや環境変数
node16 & gen2
code:envs.json
{
"envs": {
"NO_UPDATE_NOTIFIER": "true",
"FUNCTION_TARGET": "gen2",
"NODE_OPTIONS": "--max-old-space-size=192",
"NODE_PATH": "/workspace/node_modules",
"NODE_ENV": "production",
"PWD": "/workspace",
"HOME": "/root",
"DEBIAN_FRONTEND": "noninteractive",
"PORT": "8080",
"K_REVISION": "envs-node16-gen2-00001-yel",
"K_SERVICE": "envs-node16-gen2",
"SHLVL": "1",
"GAE_RUNTIME": "nodejs16",
"FUNCTION_SIGNATURE_TYPE": "http",
"PATH": "/workspace/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"K_CONFIGURATION": "envs-node16-gen2",
"_": "/layers/google.nodejs.functions-framework/functions-framework/node_modules/.bin/functions-framework"
},
"headers": {
"host": "envs-node16-gen2-qv7iqgittq-an.a.run.app",
"user-agent": "curl/7.77.0",
"accept": "*/*",
"x-cloud-trace-context": "bdb0addfafb2597b7a950556a32c5276/7640818863331713851;o=1",
"traceparent": "00-bdb0addfafb2597b7a950556a32c5276-6a09a445fdfda33b-01",
"x-forwarded-for": "221.244.181.225",
"x-forwarded-proto": "https",
"forwarded": "for=\"221.244.181.225\";proto=https"
}
}