Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wdrdres3qew5ts21/erlang-opentelemetry-rebar3-bug
Example Erlang Cowboy REST API with Open Telemetry with rebar3
https://github.com/wdrdres3qew5ts21/erlang-opentelemetry-rebar3-bug
cowboy erlang opentelemetry
Last synced: 7 days ago
JSON representation
Example Erlang Cowboy REST API with Open Telemetry with rebar3
- Host: GitHub
- URL: https://github.com/wdrdres3qew5ts21/erlang-opentelemetry-rebar3-bug
- Owner: wdrdres3qew5ts21
- Created: 2021-12-18T16:00:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T13:36:55.000Z (almost 3 years ago)
- Last Synced: 2024-07-30T19:45:54.906Z (4 months ago)
- Topics: cowboy, erlang, opentelemetry
- Language: Erlang
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# erlang-opentelemetry-rebar3-bug
```
[%% Kernel/logger
{kernel, [{logger,[{handler,default,logger_std_h,#{}}]}
%%,{logger_level,debug}
]},
{opentelemetry,
[{processors,
[{otel_batch_processor,
#{exporter => {opentelemetry_exporter, #{protocol => http,
endpoints => ["http://localhost:4317"],
headers => [{"x-honeycomb-dataset", "experiments"}]}}}}]}]}
].
```
Running Project with `rebar3`
1. Application will running on Port :8083
2. run `Nginx` at port `:4317` to mock OTLP Collector
3. When Visit `GET /` Endpoint should sent Opentelemetry to Configured Endpoint
4. [Alternative Debugging] run `docker-compose up` then you should have real OTLP collector running at port `gRPC:4317` too (I had already tried but it didn't work)
#### Expected Bahavior
Erlang Application should sent Traces with `:POST` method to Nginx but currently it didn't work for both GRPC and HTTP
#### Running Local Project
This command will give you successful connect with Open Telemetry
```
rebar3 shelldocker run -p 4317:80 docker.io/nginx
```