Просмотр исходного кода

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

GitOrigin-RevId: 80510ef28a14eaa2f4488844cb79a649009a03d9
Alf Eaton 2 лет назад
Родитель
Сommit
e226dc1442
4 измененных файлов с 8 добавлено и 859 удалено
  1. 0 1
      libraries/metrics/README.md
  2. 0 13
      libraries/metrics/index.js
  3. 0 1
      libraries/metrics/package.json
  4. 8 844
      package-lock.json

+ 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",

Разница между файлами не показана из-за своего большого размера
+ 8 - 844
package-lock.json


Некоторые файлы не были показаны из-за большого количества измененных файлов