You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/express/README.md
+18-28Lines changed: 18 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Overview
2
2
3
-
OpenTelemetry Express Instrumentation allows the user to automatically collect trace data and export them to the backend of choice (we can use Zipkin or Jaeger for this example), to give observability to distributed systems.
3
+
OpenTelemetry Express Instrumentation allows the user to automatically collect trace data and export them to the backend of choice (we use Jaeger for this example), to give observability to distributed systems.
4
4
5
5
This is a simple example that demonstrates tracing calls made to Express API. The example
6
6
shows key aspects of tracing such as
@@ -17,44 +17,34 @@ shows key aspects of tracing such as
Start Jaeger in Docker for receiving tracing data (see [the Jaeger docs](https://www.jaegertracing.io/docs/2.0/getting-started/#in-docker) for more details about running Jaeger):
After a short time, the generated traces should be available in the Zipkin UI.
41
-
Visit <http://localhost:9411/zipkin> and click the "RUN QUERY" button to view
42
-
recent traces, then click "SHOW" on a given trace.
43
-
44
-
<palign="center"><imgalt="Zipkin UI with trace"src="./images/zipkin.jpg?raw=true"/></p>
45
-
46
-
### Jaeger
36
+
## Run the Application
47
37
48
38
Run the server:
49
39
50
40
```sh
51
-
npm run jaeger:server
41
+
npm run server
52
42
```
53
43
54
44
Then run the client in a separate terminal:
55
45
56
46
```sh
57
-
npm run jaeger:client
47
+
npm run client
58
48
```
59
49
60
50
Visit the Jaeger UI at <http://localhost:16686/search>, select a service (e.g. "example-express-client"), click "Find Traces", then click on a trace to view it.
0 commit comments