opentelemetry-cpp/ext/test/w3c_tracecontext_http_test_...
Marc Alff 545f9f4108
[CodeHealth] fix include-what-you-use, part 8 (#3465)
2025-06-09 10:23:10 +02:00
..
BUILD [TEST] Rename w3c_tracecontext_test to w3c_tracecontext_http_test_server (#3132) 2024-11-08 20:58:52 +01:00
CMakeLists.txt [CMAKE] remove global include_directories usage and rely on target properties (#3426) 2025-05-20 23:44:47 +02:00
Dockerfile [TEST] Rename w3c_tracecontext_test to w3c_tracecontext_http_test_server (#3132) 2024-11-08 20:58:52 +01:00
README.md [TEST] Rename w3c_tracecontext_test to w3c_tracecontext_http_test_server (#3132) 2024-11-08 20:58:52 +01:00
main.cc [CodeHealth] fix include-what-you-use, part 8 (#3465) 2025-06-09 10:23:10 +02: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 these instructions.

Usage

1: Build and start the test service endpoint:

./w3c_tracecontext_http_test_server

Listening to http://localhost:30000/test

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

./w3c_tracecontext_http_test_server 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 invoking /stop. Make sure to use the correct port number.

# Assuming the service is currently running at port 30000
curl http://localhost:30000/stop