opentelemetry-erlang-contrib/examples/roll_dice_elli
Tristan Sloughter bcf5f600d5
add roll dice example in Erlang with Elli (#177)
* add roll dice example in Erlang with Elli

* cleanup index page template formatting

* fix index/1 type spec

* remove index.js which gets compiled by npm

* roll dice: use 127.0.0.1 for node name to work for everyone
2023-10-02 08:00:45 -06:00
..
config add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
js add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
priv/static add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
src add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
.gitignore add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
LICENSE add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
README.md add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
docker-compose.yml add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
otel-collector-config.yaml add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
package-lock.json add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
package.json add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
rebar.config add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00
rebar.lock add roll dice example in Erlang with Elli (#177) 2023-10-02 08:00:45 -06:00

README.md

roll_dice

Run the project:

$ OTEL_EXPORTER_OTLP_PROTOCOL=grpc OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 rebar3 shell

Roll a die:

$ curl localhost:3000/rolldice
4

Or go to localhost:3000 in a browser to roll.