https://github.com/ladicle/opencensus-and-jaeger
Sample application to integrate with tracing and logging.
https://github.com/ladicle/opencensus-and-jaeger
jaeger logging observability opencensus tracing
Last synced: about 2 months ago
JSON representation
Sample application to integrate with tracing and logging.
- Host: GitHub
- URL: https://github.com/ladicle/opencensus-and-jaeger
- Owner: Ladicle
- Created: 2019-03-28T04:31:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T02:18:12.000Z (about 7 years ago)
- Last Synced: 2025-01-12T08:43:04.529Z (over 1 year ago)
- Topics: jaeger, logging, observability, opencensus, tracing
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# opencensus-and-jaeger-Sample
The sample application to integrate with tracing and logging.

## Getting Started
The simplest way to run a Jaeger is use the all-in-one image. This
image also contains an agent but this demo does not used it.
```bash
$ docker run -d --name jaeger \
-p 16686:16686 \
-p 14268:14268 \
jaegertracing/all-in-one:1.8
```
`main.go` is a simple HTTP server program and each process is traced
by the OpenCensus client library.
```bash
$ go run main.go
```
Let's feed carrot and fish to the Gopher.
```bash
$ curl http://localhost:8080/carrot
Finished eating
$ curl http://localhost:8080/fish
Finished eating
```
Jaeger UI shows tracing results. Which request is the longest? To
click the Span shows the detail.
```bash
$ open http://localhost:16686/search
```
> Gopher hates fish so it is slow to eat.