https://github.com/ttys3/go-echo-otel-tracing-demo
golang echo web framework otel tracing demo
https://github.com/ttys3/go-echo-otel-tracing-demo
Last synced: 3 months ago
JSON representation
golang echo web framework otel tracing demo
- Host: GitHub
- URL: https://github.com/ttys3/go-echo-otel-tracing-demo
- Owner: ttys3
- Created: 2023-03-26T17:34:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-25T22:25:33.000Z (over 2 years ago)
- Last Synced: 2025-03-10T20:42:08.099Z (over 1 year ago)
- Language: Go
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-echo-otel-tracing-demo
## how to run the demo?
### 1. setup tracing collector
#### otlp
see oltp collector docs https://github.com/open-telemetry/opentelemetry-collector-contrib
or tempo docs https://grafana.com/docs/tempo/latest/getting-started/
and then run grafana to see the tracing graph
#### jaeger
```bash
docker run -d --name jaeger \
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
-p 5775:5775/udp \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 14268:14268 \
-p 14250:14250 \
-p 9411:9411 \
jaegertracing/all-in-one:1.43
```
### 2. run the demo
```bash
go run .
```
### 3. see the tracing graph
```shell
./test.sh
# or
./test.sh remote
```