Skip to content

Commit 8c99dce

Browse files
updating readme
1 parent f63f1f6 commit 8c99dce

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

examples/features/opentelemetry/README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,25 @@ This section shows how to configure OpenTelemetry Metrics and Traces.
88

99
**1. Run the gRPC Applications:**
1010

11-
```
12-
go run server/main.go
13-
```
11+
```
12+
go run server/main.go
13+
```
1414

15-
```
16-
go run client/main.go
17-
```
15+
```
16+
go run client/main.go
17+
```
1818

1919
**2. View Telemetry Data:**
2020

21-
```
22-
curl localhost:9464/metrics
23-
```
24-
25-
```
26-
curl localhost:9465/metrics
27-
```
21+
```
22+
curl localhost:9464/metrics
23+
curl localhost:9465/metrics
24+
```
2825

2926
## Explanation
3027

3128
The client continuously makes RPC's to a server. The client and server both expose a Prometheus exporter to listen and provide metrics. This defaults to :9464 for the server and :9465 for the client. The client and server are also configured to output traces directly to their standard output streams using stdouttrace.
3229

3330
OpenTelemetry is configured on both the client and the server, and exports metrics to the Prometheus exporter. The exporter exposes metrics on the Prometheus ports described above. OpenTelemetry also exports traces using the stdouttrace exporter. These traces are printed as structured data to the console output of both the client and the server.
3431

35-
Curling to the exposed Prometheus ports outputs the metrics recorded on the client and server.
32+
Curling to the exposed Prometheus ports outputs the metrics recorded on the client and server. Trace information, instead of being sent to a dedicated backend like Jaeger, is directly visible in the terminal output of the running client and server processes. Each RPC call will likely generate trace information printed to the console, detailing the execution flow and timing of operations.

0 commit comments

Comments
 (0)