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: open_telemetry/README.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,33 +6,32 @@ For this sample, the optional `open_telemetry` dependency group must be included
6
6
7
7
poetry install --with open_telemetry
8
8
9
-
To run, first see [README.md](../README.md) for prerequisites. Then run the following to start a Jaeger container
10
-
with OTLP collector enabled to collect and view the trace results:
9
+
To run, first see [README.md](../README.md) for prerequisites. Then run the following to start an [Aspire](https://hub.docker.com/r/microsoft/dotnet-aspire-dashboard/) OTEL collector
11
10
12
-
docker run -d --name jaeger \
13
-
-e COLLECTOR_OTLP_ENABLED=true \
14
-
-p 16686:16686 \
15
-
-p 4317:4317 \
16
-
-p 4318:4318 \
17
-
jaegertracing/all-in-one:latest
11
+
docker compose up
18
12
19
13
Now, from this directory, start the worker in its own terminal:
20
14
21
15
poetry run python worker.py
22
16
23
-
This will start the worker. Then, in another terminal, run the following to execute the workflow:
17
+
Then, in another terminal, run the following to execute the workflow:
24
18
25
19
poetry run python starter.py
26
20
27
-
The workflow should complete with the hello result. The workflow trace can now be viewed in Jaeger at
28
-
http://localhost:16686/. Under service, select `my-service` and "Find Traces". The workflow should appear and when
29
-
clicked, may look something like:
21
+
The workflow should complete with the hello result.
30
22
31
-

23
+
Now view the Aspire UI at http://localhost:18888/.
24
+
25
+
To view metrics sent describing the worker and the workflow that was executed, select `Metrics` on the left and under "Select a resource" select "temporal-core-sdk". It may look like this:
0 commit comments