@instana/google-cloud-run
Advanced tools
{ | ||
"name": "@instana/google-cloud-run", | ||
"version": "1.106.4", | ||
"version": "1.106.5", | ||
"description": "Instana tracing and monitoring for Node.js based Google Cloud Run services", | ||
@@ -58,5 +58,5 @@ "author": { | ||
"dependencies": { | ||
"@instana/core": "^1.106.4", | ||
"@instana/metrics-util": "^1.106.4", | ||
"@instana/serverless": "^1.106.4", | ||
"@instana/core": "^1.106.5", | ||
"@instana/metrics-util": "^1.106.5", | ||
"@instana/serverless": "^1.106.5", | ||
"uuid": "^8.3.0" | ||
@@ -78,3 +78,3 @@ }, | ||
}, | ||
"gitHead": "685c43c348db337c09b7ed03010710cd8454240f" | ||
"gitHead": "cc05d8aa93e154b98d7befa9557789064c66aa58" | ||
} |
'use strict'; | ||
const revision = process.env.K_REVISION; | ||
const host = `gcp:cloud-run:revision:${revision}`; | ||
let containerInstanceId; | ||
@@ -11,3 +12,3 @@ | ||
exports.getHostHeader = function getHostHeader() { | ||
return revision; | ||
return host; | ||
}; | ||
@@ -14,0 +15,0 @@ |
@@ -9,4 +9,3 @@ 'use strict'; | ||
const CloudRunServiceRevisionProcessor = require('./revision/CloudRunServiceRevisionProcessor'); | ||
const CloudRunDockerProcessor = require('./docker/CloudRunDockerProcessor'); | ||
const CloudRunServiceRevisionInstanceProcessor = require('./instance/CloudRunServiceRevisionInstanceProcessor'); | ||
const identityProvider = require('../identity_provider'); | ||
@@ -30,7 +29,9 @@ | ||
const cloudRunServiceRevisionProcessor = new CloudRunServiceRevisionProcessor(projectDataSource, instanceDataSource); | ||
const cloudRunServiceRevisionProcessor = new CloudRunServiceRevisionInstanceProcessor( | ||
projectDataSource, | ||
instanceDataSource | ||
); | ||
allProcessors.push(cloudRunServiceRevisionProcessor); | ||
allProcessors.push(new CloudRunDockerProcessor(instanceDataSource)); | ||
const processProcessor = new ProcessProcessor(); | ||
const processProcessor = new ProcessProcessor('gcpCloudRunInstance', identityProvider.getHostHeader()); | ||
allProcessors.push(processProcessor); | ||
@@ -63,3 +64,3 @@ allProcessors.push(new NodeJsProcessor(coreAndShared, process.pid)); | ||
function setAdditionalMetadata(processProcessor, containerInstanceId) { | ||
processProcessor.setExternalSnapshotData(containerInstanceId, identityProvider.getRevision()); | ||
processProcessor.setExternalSnapshotData(containerInstanceId); | ||
} | ||
@@ -66,0 +67,0 @@ |
14486
-3.89%11
-8.33%299
-5.38%