Skip to content

OTEL enmable not working #88

@mastersilv3r

Description

@mastersilv3r

The Problem

The command godspeed otel enable is not working.

On running the command the output came:
image

On running godspeed serve got this error.

{"Body":"OTEL_ENABLED is set, unable to initialize opentelemetry tracing.","Timestamp":"2024-03-15T15:30:28.146Z000000","SeverityNumber":17,"SeverityText":"ERROR","Resource":{"service.name":"unknown_service:node","env":"production"},"Attributes":{}}
{"Body":"Cannot find module '@godspeedsystems/tracing'\nRequire stack:\n- /home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/node_modules/@godspeedsystems/core/dist/godspeed.js\n- /home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/dist/index.js\n- /home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/datasources/types/axios.js\n- /home/ayushghai/godspeed/gs-node-service/dist/core/datasourceLoader.js\n- /home/ayushghai/godspeed/gs-node-service/dist/godspeed.js\n- /home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/index.js","Timestamp":"2024-03-15T15:30:28.148Z000000","SeverityNumber":17,"SeverityText":"ERROR","Resource":{"service.name":"unknown_service:node","env":"production"},"Attributes":{"err":{"type":"Error","message":"Cannot find module '@godspeedsystems/tracing'\nRequire stack:\n- /home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/node_modules/@godspeedsystems/core/dist/godspeed.js\n- /home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/dist/index.js\n- /home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/datasources/types/axios.js\n- /home/ayushghai/godspeed/gs-node-service/dist/core/datasourceLoader.js\n- /home/ayushghai/godspeed/gs-node-service/dist/godspeed.js\n- /home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/index.js","stack":"Error: Cannot find module '@godspeedsystems/tracing'\nRequire stack:\n- /home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/node_modules/@godspeedsystems/core/dist/godspeed.js\n- /home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/dist/index.js\n- /home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/datasources/types/axios.js\n- /home/ayushghai/godspeed/gs-node-service/dist/core/datasourceLoader.js\n- /home/ayushghai/godspeed/gs-node-service/dist/godspeed.js\n- /home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/index.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)\n    at Module._load (node:internal/modules/cjs/loader:984:27)\n    at Module.require (node:internal/modules/cjs/loader:1234:19)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:167:34)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:167:34)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:167:34)\n    at require (node:internal/modules/helpers:176:18)\n    at Object.<anonymous> (/home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/node_modules/@godspeedsystems/core/dist/godspeed.js:184:9)\n    at Module._compile (node:internal/modules/cjs/loader:1375:14)\n    at Module._extensions..js (node:internal/modules/cjs/loader:1434:10)\n    at Module.load (node:internal/modules/cjs/loader:1206:32)\n    at Module._load (node:internal/modules/cjs/loader:1022:12)\n    at Module.require (node:internal/modules/cjs/loader:1234:19)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at require (node:internal/modules/helpers:176:18)\n    at Object.<anonymous> (/home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/dist/index.js:27:16)\n    at Module._compile (node:internal/modules/cjs/loader:1375:14)\n    at Module._extensions..js (node:internal/modules/cjs/loader:1434:10)\n    at Module.load (node:internal/modules/cjs/loader:1206:32)\n    at Module._load (node:internal/modules/cjs/loader:1022:12)\n    at Module.require (node:internal/modules/cjs/loader:1234:19)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at require (node:internal/modules/helpers:176:18)\n    at Object.<anonymous> (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/datasources/types/axios.js:11:35)\n    at Module._compile (node:internal/modules/cjs/loader:1375:14)\n    at Module._extensions..js (node:internal/modules/cjs/loader:1434:10)\n    at Module.load (node:internal/modules/cjs/loader:1206:32)\n    at Module._load (node:internal/modules/cjs/loader:1022:12)\n    at Module.require (node:internal/modules/cjs/loader:1234:19)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at Hook._require.Module.require (/home/ayushghai/godspeed/projects/gs-node-templates/LOS/node_modules/require-in-the-middle/index.js:188:39)\n    at require (node:internal/modules/helpers:176:18)\n    at /home/ayushghai/godspeed/gs-node-service/dist/core/datasourceLoader.js:218:149\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","code":"MODULE_NOT_FOUND","requireStack":["/home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/node_modules/@godspeedsystems/core/dist/godspeed.js","/home/ayushghai/godspeed/gs-plugins/plugins/axios-as-datasource/dist/index.js","/home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/datasources/types/axios.js","/home/ayushghai/godspeed/gs-node-service/dist/core/datasourceLoader.js","/home/ayushghai/godspeed/gs-node-service/dist/godspeed.js","/home/ayushghai/godspeed/projects/gs-node-templates/LOS/dist/index.js"]}}}
[nodemon] app crashed - waiting for file changes before starting...

SOLUTION

  • When OTEL is enabled the developer should be told what plugin has been installed, and which files have been changed. How to set the endpoint to send tracing? As well a link to documentation on how to scrape metrics and logs. As well how can he revert. A link to documentation of telemetry section with all these details
  • As well this should work!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions