Go with Gin Framework and Open telemetry

How to run

    docker compose up --force-recreate --build 

Payloads

service A:

   curl --location --request GET 'http://localhost:8080/ping' \
    --header 'X-B3-TraceId: 463ac35c9f6413ad48485a3953bb6124' \
    --header 'X-B3-SpanId: a2fb4a1d1a96d312' \
    --header 'X-B3-ParentSpanId: 0020000000000001' \
    --header 'X-B3-Sampled: 1'

service B:

    curl --location --request GET 'http://localhost:8081/pong' \
    --header 'X-B3-TraceId: 463ac35c9f6413ad48485a3953bb6124' \
    --header 'X-B3-SpanId: a2fb4a1d1a96d312' \
    --header 'X-B3-ParentSpanId: 0020000000000001' \
    --header 'X-B3-Sampled: 1'

References

GitHub

View Github