Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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")