Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex-leonhardt/go-trace-example
Basic example apps instrumented w/ Jaeger tracing
https://github.com/alex-leonhardt/go-trace-example
app basic example go jaegertracing
Last synced: 19 days ago
JSON representation
Basic example apps instrumented w/ Jaeger tracing
- Host: GitHub
- URL: https://github.com/alex-leonhardt/go-trace-example
- Owner: alex-leonhardt
- Created: 2020-04-11T18:21:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-11T18:21:39.000Z (over 4 years ago)
- Last Synced: 2024-11-14T00:34:10.250Z (28 days ago)
- Topics: app, basic, example, go, jaegertracing
- Language: Go
- Size: 228 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - go-trace-example
README
# go-trace-example
Example apps to play with Jaeger tracing. The point really is/was to get a little understanding on what's required to get _something_ to work that propagates a trace from the initial entrypoint (app1) through to app2 and ensure they all line up at the end, ensure that errors are flagged, add baggage to log entries, etc.
## app1
Entrypoint is app1, accessed via http://localhost:8080
- app1 will execute some internal function/s
- app1 will call app2 on http://localhost:8181/## app2
App2 is accessed via http://localhost:8181
- app2 executes some internal function/s and returns the result
## curl / examples
Send correlationID (`jaeger-debug-id`) and baggage `jaeger-baggage` with a request, these are later stored and available to filter traces by.
```sh
curl -H "jaeger-debug-id: some-correlation-id" -H "jaeger-baggage: key=value,key2=value2" http://localhost:8080
```## screenshots
![traces](media/screenshot1.png "traces")
![traces](media/screenshot2.png "traces")
![traces](media/screenshot3.png "traces")
![traces](media/screenshot4.png "traces")