opentelemetry-cpp/ext/test/w3c_tracecontext_test
Ehsan Saei 6e249fd560
build release tarball when nlohmann-json not installed (#1074)
2021-11-19 09:25:00 -08:00
..
BUILD Fix issue 892 (#893) 2021-07-07 14:41:20 +05:30
CMakeLists.txt build release tarball when nlohmann-json not installed (#1074) 2021-11-19 09:25:00 -08:00
Dockerfile Add a test service for the W3C validation harness (#487) 2021-01-21 16:42:59 +05:30
README.md lint and reformat markdown (#579) 2021-02-12 14:09:40 -08:00
main.cc fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00

README.md

Test service endpoint for W3C validation

This test application is intended to be used as a test service for the W3C Distributed Tracing Validation Service. It is implemented according to this instructions.

Usage

1: Build and start the test service endpoint:

./w3c_tracecontext_test

Listening to http://localhost:30000/test

A custom port number for the test service to listen to can be specified:

./w3c_tracecontext_test 31339

Listening to http://localhost:31339/test

The test service will print the full URI that the validation service can connect to.

2: In a different terminal, set up and start the validation service according to the instructions, giving the address of the test service endpoint as argument:

python test.py http://localhost:31339/test

One can also use the Dockerfile provided in this folder to conveniently run the validation service:

docker build --tag w3c_driver .
docker run --network host w3c_driver http://localhost:31339/test

3: The validation service will run the test suite and print detailed test results.

4: Stop the test service by pressing enter.