@@ -54,6 +54,7 @@ Talk to us at https://www.selenium.dev/support/
5454* [ Waiting for the Grid to be ready] ( #waiting-for-the-grid-to-be-ready )
5555* [ Debugging] ( #debugging )
5656* [ Install certificates for Chromium based browsers] ( #install-certificates-for-Chromium-based-browsers )
57+ * [ Tracing in Grid] ( #tracing-in-grid )
5758* [ Troubleshooting] ( #troubleshooting )
5859
5960
@@ -1132,6 +1133,46 @@ If you get a prompt asking for a password, it is: `secret`.
11321133
11331134___
11341135
1136+ ## Tracing in Grid
1137+
1138+ In order to enable tracing in Selenium Grid container, the following commands can be executed:
1139+
1140+ ``` bash
1141+ docker network create grid
1142+ docker run -d -p 16686:16686 -p 14250:14250 --net grid --name jaeger jaegertracing/all-in-one:1.17
1143+ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.5.3-20221024
1144+ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
1145+ --shm-size=" 2g" \
1146+ -e SE_ENABLE_TRACING=true \
1147+ -e JAVA_OPTS=" -Dotel.traces.exporter=jaeger -Dotel.exporter.jaeger.endpoint=http://jaegar:14250 -Dotel.resource.attributes=service.name=selenium-hub" \
1148+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1149+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
1150+ selenium/node-chrome:4.5.3-20221024
1151+ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
1152+ --shm-size=" 2g" \
1153+ -e SE_ENABLE_TRACING=true \
1154+ -e JAVA_OPTS=" -Dotel.traces.exporter=jaeger -Dotel.exporter.jaeger.endpoint=http://jaegar:14250 -Dotel.resource.attributes=service.name=selenium-node-edge" \
1155+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1156+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
1157+ selenium/node-edge:4.5.3-20221024
1158+ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
1159+ --shm-size=" 2g" \
1160+ -e SE_ENABLE_TRACING=true \
1161+ -e JAVA_OPTS=" -Dotel.traces.exporter=jaeger -Dotel.exporter.jaeger.endpoint=http://jaegar:14250 -Dotel.resource.attributes=service.name=selenium-node-firefox" \
1162+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1163+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
1164+ selenium/node-firefox:4.5.3-20221024
1165+ ```
1166+
1167+ You can also refer to the below docker-compose yaml files to be able to start a simple grid (or) a dynamic grid.
1168+
1169+ * Simple Grid [ v3 yaml file] ( docker-compose-v3-tracing.yml )
1170+ * Simple Grid [ v2 yaml file] ( docker-compose-v2-tracing.yml )
1171+ * Dynamic Grid [ v3 yaml file] ( docker-compose-v3-full-grid-tracing.yml )
1172+
1173+ You can view the [ Jaegar UI] ( http://localhost:16686/ ) and trace your request.
1174+ ___
1175+
11351176## Troubleshooting
11361177
11371178All output gets sent to stdout, so it can be inspected by running:
0 commit comments