https://signoz.io logo
#contributing
Title
# contributing
a

Ankit Nayan

05/04/2021, 12:27 PM
I was able to run both helm charts and using
./install.sh
(uses docker-compose). Mind you,
./install.sh
needs lower memory compared to
helm
installation
a

Anwesh

05/08/2021, 9:48 AM
tried with the docker approach. got the thing up and running. exploring telemetry examples.
thanks 🙂 👍
a

Ankit Nayan

05/08/2021, 9:51 AM
Cool
Let us know which area would you be able to help us. It varies from frontend, backend, docs, more deployment options, and more
a

Anwesh

05/08/2021, 9:55 AM
create-supervisor /bin/sh -c curl -X POST -H ... Exit 0 flattener-processor ./flattener Exit 2 I just saw this two errors.
these services are not getting up I guess. are these relevant for now?
a

Ankit Nayan

05/09/2021, 12:16 PM
oh is it so...try rerunning
./install.sh
. flattener-processor has to be up for anything to work further down
Exit 0
means successful exit. create-supervisor is a job and hence this is correct
p

Pranay

05/10/2021, 12:40 PM
@User 👆
👍 1
a

Anwesh

05/10/2021, 6:01 PM
https://signoz.io/docs/instrumentation/nodejs was trying to run from the docs here.
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://<IP of SigNoz Backend>:55681/v1/trace” LS_SERVICE_NAME=<service name> node server_init.js
LS_SERVICE_NAME=<service name>
what will be the service name here?
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://localhost:55681/v1/trace” LS_SERVICE_NAME=node-telemetry node server_init.js
tried with something like above. didn’t work tho
@User
a

Ankit Nayan

05/11/2021, 5:41 AM
what will be the service name here?
service name can be anything
tried with something like above. didn’t work tho
Is SigNoz up and running with demo services?
@User
a

Anwesh

05/11/2021, 5:44 AM
Anweshs-MacBook-Air:signoz-telemetry anweshnayak$ OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://localhost:55681/v1/trace” LS_SERVICE_NAME=node-telemetry node server_init.js
collector exporter failed to create http agent. err: Invalid URL: “http://localhost:55681/v1/trace
@User yes. signoz iz up with demo services. UI is accessible as well
maybe the endpoint here .
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://localhost:55681/v1/trace
is this correct?
is this correct?
Yes, it's correct if localhost:8888 is accessible
If you are using Maac, you can also try using
<http://docker.for.mac.localhost:55681/v1/trace>
and see if this works.
a

Anwesh

05/11/2021, 5:55 AM
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=http://localhost:55681/v1/trace
this issue was with the double quote format which I copied from the docs. It was giving error. so edited it to the mac style.
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://localhost:55681/v1/trace” LS_SERVICE_NAME=node-telemetry node server_init.js
now the command has no errors
a

Ankit Nayan

05/11/2021, 5:56 AM
oh...interesting
let me know if you able to see the data from nodejs app
a

Anwesh

05/11/2021, 6:31 AM
I checked the docs for open-telemetry. https://github.com/lightstep/otel-launcher-node I am not able to see any data though 😐
I think that OTEL command should open up a launcher or something? not sure.
a

Ankit Nayan

05/11/2021, 6:40 AM
Let me also check with a sample service...
I am able to send data using the steps
did you hit any request to the application so that the library generates data?
a

Anwesh

05/11/2021, 6:53 AM
http://localhost:9000/hello
as mentioned in server_init.js
sdk.start().then(() => {
require(‘./server’);
});
I am not able to hit that endpoint. http://localhost:9000/hello
Copy code
404 page not found
a

Ankit Nayan

05/11/2021, 6:54 AM
is it? I am sending my repo after adding a readme
a

Anwesh

05/11/2021, 6:58 AM
yes. cool. let me know 🙂
a

Ankit Nayan

05/11/2021, 6:59 AM
check this out
a

Anwesh

05/11/2021, 7:15 AM
this is working. thanks
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://docker.for.mac.localhost:55681/v1/trace” LS_SERVICE_NAME=node-telemetry node server_init.js
PluginLoader#load: trying to load http@14.7.0
PluginLoader#load: trying to load express@4.17.1
{“stack”“Error getaddrinfo ENOTFOUND docker.for.mac.localhost\n  at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js6626)\n  at GetAddrInfoReqWrap.callbackTrampoline (internal/async_hooks.js12914)“,”message”:“getaddrinfo ENOTFOUND docker.for.mac.localhost”,“errno”“ 3008”,“code”“ENOTFOUND”,“syscall”“getaddrinfo”,“hostname”“docker.for.mac.localhost”,“name”:“Error”}
tried with
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://docker.for.mac.localhost:55681/v1/trace
and
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=“http://localhost:55681/v1/trace
im checking though. docker localhost. issue must be lying around there
https://github.com/SigNoz/signoz/blob/main/deploy/docker/docker-compose.yaml#L213 otel collector service is not coming up I guess. I checked in docker console for mac. otel container is not there at all. checked with the latest pull here. from master.
a

Ankit Nayan

05/11/2021, 7:53 AM
oh...
sudo docker ps | wc -l
this should give you 15 as output
@User Is this working now?
a

Anwesh

05/11/2021, 10:52 AM
16:19 $ sudo docker ps | wc -l Password:    15 @User
a

Ankit Nayan

05/11/2021, 10:57 AM
flattener-processor
and
otel-collector
are not running
Can you send me screenshot of Docker Desktop -> Preferences -> Resources?
a

Anwesh

05/11/2021, 11:10 AM
should I increase memory?
a

Ankit Nayan

05/11/2021, 11:17 AM
Yes keep it 4-5GB for now to get it up correctly
reinstall signoz by
docker-compose -f docker/docker-compose-tiny.yaml down -v
./install.sh
a

Anwesh

05/11/2021, 11:30 AM
still those two services are not coming. I increased memory to 4.75GB
++++++++++++++++++ SUCCESS ++++++++++++++++++++++ Your installation is complete! Your frontend is running on ‘http://localhost:3000’. +++++++++++++++++++++++++++++++++++++++++++++++++
it got up now. I think increasing memory helped
btw aren’t those services open sourced yet? just curios to explore
a

Ankit Nayan

05/11/2021, 11:36 AM
🎉 🙌
aren’t those services open sourced yet?
which services? We use everything opensourced
a

Anwesh

05/11/2021, 11:38 AM
flatten-processor
I think its inside pkg/processors/flattener
yes
a

Anwesh

05/11/2021, 11:41 AM
thanks 🙂 will try to understand those services. https://signoz.io/docs/architecture . I got some idea from here. and intro section is 💯 .
a

Ankit Nayan

05/11/2021, 11:55 AM
👍
Hi @User, I have pinned some of the areas in need of contribution. Is there anything that you would be interested there? Or feel free to suggest something of your own 🙂
a

Anwesh

05/15/2021, 1:28 PM
hey @User I saw that list. currently I was picking up GO. as I have less expertise. I think post that I can pick something. let me try one tomorrow.
👍 2
p

Pranay

05/15/2021, 2:01 PM
Awesome @User just drop a note here if a you have a question or get stuck anywhere
a

Ankit Nayan

05/15/2021, 4:09 PM
A good way to learn Golang would be to go through the codebase of openTelemetry-collector once you are done with the basics. There you will learn about Factories, Interfaces and Implementations
a

Anwesh

05/15/2021, 11:19 PM
thanks will surely check out today. 🙂
4 Views