Tracing Selenium Grid

A simple project to showcase Selenium 4's Tracing capability using Jaeger client with Selenium Grid
Alternatives To Tracing Selenium Grid
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Bout Dev136
6 days ago227lgpl-3.0C++
BOUT++: Plasma fluid finite-difference simulation code in curvilinear coordinate systems
Tracing Selenium Grid33
3 months ago2apache-2.0Shell
A simple project to showcase Selenium 4's Tracing capability using Jaeger client with Selenium Grid
5 years agomitC++
Implementation of the paper: `GPU Ray Tracing using Irregular Grids`
Vulkano Raytracing22
5 years ago1mitRust
Realtime GPU raytracer created with Vulkano.
Win32 Ray Tracing Demo3
8 years agoC++
A demonstration program for ray tracing
a year ago2mitJulia
CPU ray tracing through voxelized geometry
Alternatives To Tracing Selenium Grid
Select To Compare

Alternative Project Comparisons


TL;DR: A simple project to showcase Selenium 4's Tracing capability using OpenTelemetry APIs(Jaeger) with Selenium Grid.


It is a measure of how well internal states of a system can be inferred from knowledge of its external outputs. It helps bring visibility into systems. – Wikipedia

Tracing is one of the important pillars for measuring observability along with logs and metrics. Its a way of thinking about the system, a way of being able to ask the system questions, that you need the answer to when you didn't know the questions beforehand. On the other hand, alerting is a way of asking questions when you do know the question beforehand.

Distributed Tracing can be quite helpful in answering questions for your distibuted system like,

  • Root cause analysis
  • Performance optimisation
  • dependency analysis of services


It has number of new exciting features and one such is a cleaner code for Selenium Grid along with support for distributed tracing via OpenTelemetry APIs. This is pretty exciting and important feature for the admins and devops engineers to trace the flow of control through the Grid for each and every command.

Distributed tracing has two parts:

  1. Code instrumentation: Adding instrumentation code in your application to produce traces. The major instrumentation parts are done neatly by the developers of Selenium project, which leaves us to consume it by using Selenium Grid start-up command along with Jaeger.

  2. Collection of data and providing meaning over it, Jaeger has a UI which allows us to view traces visually well.

Steps to start tracing your tests,

  • Start Jaeger via docker(as its easy)

  • Instrument your Selenium Grid start-up command with Jaeger tracing as in and for standalone mode.

  • Now execute your tests tests, and navigate to http://localhost:16686/ to view the outputs.


Assuming you have docker running on your machine,

  1. Install Coursier via homebrew brew install coursier/formulas/coursier
  2. Install Jaeger via docker
  3. Selenium-server.jar refers to the latest alpha version of selenium releases (Tested with Apha 5)

Start Jaeger via docker server

The simplest way to start the all-in-one is to use the pre-built image published to DockerHub (a single command line).

$ docker run --rm -it --name jaeger \
    -p 16686:16686 \
    -p 14250:14250 \

You can then navigate to http://localhost:16686 to access the Jaeger UI.

Instrument your Selenium Grid command

We're going to add support for Open Telemetry API's(one of the many ways to do distributed tracing) using Coursier to generate a full classpath, when started this way the selenium server will inform you that it has found a tracer on stdout.

Refer if you want to start Grid in distributed mode.

curl http://localhost:4444/status to check if your grid deployment is ready

Grid status

Execute your tests

Point your tests as in DistributedTracingExamples Class and navigate to http://localhost:16686/ to view the outputs.

Under services look up for Selenium-router and notices actions for each calls made by your tests. An example below



A special thanks to ever helpful Simon Stewart for being patience in answering my dumb questions.

Popular Grid Projects
Popular Tracing Projects
Popular User Interface Components Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Selenium Grid