06/10/2022, 3:34 PM
Hello, I have a question about SigNoz. Indeed, I use the gateway mesh as Graphql API (port: 4000), and there I try to connect it with OpenTelemetry tracing but I don't know how to put the command : OTEL_EXPORTER_OTLP_ENDPOINT= node -r ./tracer.js index.js because in my project i have many files (not only index.js), to start my API I do the command: npm run build, a ./mesh file is then generated automatically and contains (index.js), then I do: npm run dev to launch the API. So I tried to run the command: npm run build and once I had my folder ./mesh , I opened a terminal inside and ran the command (TEL_EXPORTER_OTLP_ENDPOINT= node -r ./tracer.js index.js) (after adding the initialization of OpenTelemetry in index.js). The result: I got on my terminal (from ./mesh): Tracing initialized, but to start the API I had to also run the command: npm run dev on the terminal ./mesh and the graphQL service works well (port 4000), and by going to SigNoz, I found that there is no graphql service. Can you help me please?