File: README.md

package info (click to toggle)
opentelemetry-cpp 1.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,372 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 36; python: 31
file content (55 lines) | stat: -rw-r--r-- 1,521 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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](https://github.com/w3c/trace-context/tree/master/test). It is
implemented according to [these
instructions](https://github.com/w3c/trace-context/tree/master/test#implement-test-service).

## Usage

1: Build and start the test service endpoint:

```sh
./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:

```sh
./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](https://github.com/w3c/trace-context/tree/master/test#run-test-cases),
giving the address of the test service endpoint as argument:

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

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

```sh
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.

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