Przeglądaj źródła

Remove @google-cloud/debug-agent from metrics (#14974)

GitOrigin-RevId: 80510ef28a14eaa2f4488844cb79a649009a03d9
Alf Eaton 2 lat temu
rodzic
commit
e226dc1442

+ 0 - 1
libraries/metrics/README.md

@@ -25,7 +25,6 @@ The metrics module can be configured through the following environment variables
 
 - `DEBUG_METRICS` - enables display of debugging messages to the console.
 - `ENABLE_TRACE_AGENT` - enables @google-cloud/trace-agent on Google Cloud
-- `ENABLE_DEBUG_AGENT` - enables @google-cloud/debug-agent on Google Cloud
 - `ENABLE_PROFILE_AGENT` - enables @google-cloud/profiler on Google Cloud
 - `METRICS_COMPRESSION_LEVEL` - sets the [compression level](https://www.npmjs.com/package/compression#level) for `/metrics`
 - `STACKDRIVER_LOGGING` - toggles the request logging format

+ 0 - 13
libraries/metrics/index.js

@@ -51,19 +51,6 @@ function initialize(appName, opts = {}) {
     traceAgent.start(traceOpts)
   }
 
-  console.log(`ENABLE_DEBUG_AGENT set to ${process.env.ENABLE_DEBUG_AGENT}`)
-  if (process.env.ENABLE_DEBUG_AGENT === 'true') {
-    console.log('starting google debug agent')
-    const debugAgent = require('@google-cloud/debug-agent')
-    debugAgent.start({
-      allowExpressions: true,
-      serviceContext: {
-        service: appName,
-        version: process.env.BUILD_VERSION,
-      },
-    })
-  }
-
   console.log(`ENABLE_PROFILE_AGENT set to ${process.env.ENABLE_PROFILE_AGENT}`)
   if (process.env.ENABLE_PROFILE_AGENT === 'true') {
     console.log('starting google profile agent')

+ 0 - 1
libraries/metrics/package.json

@@ -7,7 +7,6 @@
     "url": "https://github.com/overleaf/metrics-module.git"
   },
   "dependencies": {
-    "@google-cloud/debug-agent": "^8.0.0",
     "@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0",
     "@google-cloud/profiler": "^6.0.0",
     "@google-cloud/trace-agent": "^7.1.2",

Plik diff jest za duży
+ 8 - 844
package-lock.json


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików