Skip to content

POC of Puretracing could work with ZIO and Cats Effect. All rights reserved.

Notifications You must be signed in to change notification settings

tabdulradi/puretracing-cats-zio-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A POC for the new Puretracing supporting Cats-Effect & ZIO (without Monad transformers) To be merged back to Puretracing project.

Instructions

  1. Run Jaeger
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 9411:9411 \
  jaegertracing/all-in-one:1.8
  1. sbt "runMain com.example.http4sexample.JokesProxy"
  2. sbt "runMain com.example.http4sexample.ZIOMain" (or CatsMain)
  3. curl -v localhost:8080/joke
  4. Verify that JokesProxy has logged a request with "uber-trace-id" in the headers
  5. Open Jaeger UI, then from the first drop down menu select "zio-puretracing-example", then click find traces. You should a Trace with 2 spans, the inner one is called "get-joke".
  6. Check Jokes.scala line 44 to see how that span was created.

Note: Code is written in Tagless final style to allow reuse between ZIO and Cats versions. But Tagless final is not required, and in case of ZIO no monad transformers are required either.

About

POC of Puretracing could work with ZIO and Cats Effect. All rights reserved.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages