From 64099f15d2d8e27cd1c7800eba160a611722f169 Mon Sep 17 00:00:00 2001 From: Abhimanyu Babbar Date: Fri, 3 Nov 2023 16:16:10 +0530 Subject: [PATCH] remove the language from the tags --- src/util/customTransformer-v1.js | 1 - src/util/openfaas/index.js | 1 - src/util/prometheus.js | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/util/customTransformer-v1.js b/src/util/customTransformer-v1.js index daa199871d..8d5b7e2917 100644 --- a/src/util/customTransformer-v1.js +++ b/src/util/customTransformer-v1.js @@ -88,7 +88,6 @@ async function userTransformHandlerV1( const tags = { transformerVersionId: userTransformation.versionId, identifier: 'v1', - language: 'javascript', ...events.length && events[0].metadata ? getMetadata(events[0].metadata) : {}, errored: transformationError ? true : false } diff --git a/src/util/openfaas/index.js b/src/util/openfaas/index.js index 204f615bdf..c3309b6975 100644 --- a/src/util/openfaas/index.js +++ b/src/util/openfaas/index.js @@ -293,7 +293,6 @@ const executeFaasFunction = async ( const tags = { transformerVersionId: versionId, identifier: "openfaas", - language: "python", testMode: testMode, errored: errorRaised ? true : false, statusCode: errorRaised ? errorRaised.statusCode : HTTP_STATUS_CODES.OK, // default statuscode is 200OK diff --git a/src/util/prometheus.js b/src/util/prometheus.js index 1a74062ec7..6f233b7e11 100644 --- a/src/util/prometheus.js +++ b/src/util/prometheus.js @@ -946,7 +946,6 @@ class Prometheus { type: 'counter', labelNames: [ 'transformerVersionId', - 'language', 'identifier', 'publish', 'testMode', @@ -963,7 +962,6 @@ class Prometheus { type: 'histogram', labelNames: [ 'transformerVersionId', - 'language', 'identifier', 'publish', 'testMode',