|
1 |
| -# OpenTracing Tutorial - Go |
| 1 | +# OpenTracing Tutorial - Java |
2 | 2 |
|
3 | 3 | ## Installing
|
4 | 4 |
|
5 | 5 | The tutorials are using CNCF Jaeger (https://github.com/jaegertracing/jaeger) as the tracing backend,
|
6 | 6 | [see here](../README.md) how to install it in a Docker image.
|
7 | 7 |
|
8 |
| -This repository uses [glide](https://github.com/Masterminds/glide) to manage dependencies (installed automatically below). |
9 |
| - |
10 |
| -When you clone the tutorials repository, it should be located in the right place under `$GOPATH`: |
11 |
| - |
12 |
| -``` |
13 |
| -mkdir -p $GOPATH/src/github.com/yurishkuro/ |
14 |
| -cd $GOPATH/src/github.com/yurishkuro/ |
15 |
| -git clone https://github.com/yurishkuro/opentracing-tutorial.git opentracing-tutorial |
16 |
| -``` |
17 |
| - |
18 |
| -After that, install the dependencies: |
| 8 | +This repository uses Maven to manage dependencies. To install all dependencies, run: |
19 | 9 |
|
20 | 10 | ```
|
21 |
| -cd $GOPATH/src/github.com/yurishkuro/opentracing-tutorial/go |
22 |
| -make install |
| 11 | +cd opentracing-tutorial/java |
| 12 | +mvn package |
23 | 13 | ```
|
24 | 14 |
|
25 |
| -The rest of the commands in the Go tutorials should be executed relative to this directory. |
| 15 | +All subsequent commands in the tutorials should be executed relative to this `java` directory. |
26 | 16 |
|
27 | 17 | ## Lessons
|
28 | 18 |
|
29 |
| -* [Lesson 01 - Hello World](lesson01) |
| 19 | +* [Lesson 01 - Hello World](./src/main/java/lesson01) |
30 | 20 | * Instantiate a Tracer
|
31 | 21 | * Create a simple trace
|
32 | 22 | * Annotate the trace
|
33 |
| -* [Lesson 02 - Context and Tracing Functions](lesson02) |
| 23 | +* [Lesson 02 - Context and Tracing Functions](./src/main/java/lesson02) |
34 | 24 | * Trace individual functions
|
35 | 25 | * Combine multiple spans into a single trace
|
36 | 26 | * Propagate the in-process context
|
37 |
| -* [Lesson 03 - Tracing RPC Requests](lesson03) |
| 27 | +* [Lesson 03 - Tracing RPC Requests](./src/main/java/lesson03) |
38 | 28 | * Trace a transaction across more than one microservice
|
39 | 29 | * Pass the context between processes using `Inject` and `Extract`
|
40 | 30 | * Apply OpenTracing-recommended tags
|
41 |
| -* [Lesson 04 - Baggage](lesson04) |
| 31 | +* [Lesson 04 - Baggage](./src/main/java/lesson04) |
42 | 32 | * Understand distributed context propagation
|
43 | 33 | * Use baggage to pass data through the call graph
|
0 commit comments