File: README.md

package info (click to toggle)
golang-opentelemetry-contrib 0.56.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,884 kB
  • sloc: makefile: 278; sh: 211; sed: 1
file content (28 lines) | stat: -rw-r--r-- 699 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
# gorilla/mux instrumentation example

An HTTP server using gorilla/mux and instrumentation. The server has a
`/users/{id:[0-9]+}` endpoint. The server generates span information to
`stdout`.

These instructions expect you have
[docker-compose](https://docs.docker.com/compose/) installed.

Bring up the `mux-server` and `mux-client` services to run the
example:

```sh
docker-compose up --detach mux-server mux-client
```

The `mux-client` service sends just one HTTP request to `mux-server`
and then exits. View the span generated by `mux-server` in the logs:

```sh
docker-compose logs mux-server
```

Shut down the services when you are finished with the example:

```sh
docker-compose down
```