1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-23 10:53:02 +01:00
Luca Palmieri 0034e3bda8
Update to actix-web 4.0.0-beta.7. (#24)
Add two new error types implementing ResponseError, as required, for our extractors.

Add public docs for new errors.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2021-06-20 20:03:48 +02:00
..

Custom root span

Running

You can launch this example with

cargo run

An actix-web application will be listening on port 8080.
You can fire requests to it with:

curl -v http://localhost:8080/hello
Hello world!

or

curl -v http://localhost:8080/hello/my-name
Hello my-name!

Visualising traces

Spans will be also printed to the console in JSON format, as structured log records.

You can look at the exported spans in your browser by visiting http://localhost:16686 if you launch a Jaeger instance:

docker run -d -p6831:6831/udp -p6832:6832/udp -p16686:16686 jaegertracing/all-in-one:latest