opentelemetry-dotnet/test/OpenTelemetry.Tests.Stress....
Piotr Kiełkowicz bd434cc9ae
[repo] Enable analysis globally (#6344)
2025-06-26 12:05:16 -07:00
..
OpenTelemetry.Tests.Stress.Traces.csproj [repo] Enable analysis globally (#6344) 2025-06-26 12:05:16 -07:00
Program.cs [Tests.Stress*] enable analysis (#6253) 2025-04-23 16:15:16 -07:00
README.md [tools] Stress test README updates (#5388) 2024-02-26 11:39:08 -08:00

README.md

OpenTelemetry Stress Tests for Traces

This Stress Test is specifically for tracing, and it is based on the OpenTelemetry.Tests.Stress.

Running the stress test

Open a console, run the following command from the current folder:

dotnet run --framework net8.0 --configuration Release

To see command line options available, run the following command from the current folder:

dotnet run --framework net8.0 --configuration Release -- --help

The help output includes settings and their explanations:

  -c, --concurrency      The concurrency (maximum degree of parallelism) for the stress test. Default value: Environment.ProcessorCount.

  -p, --internal_port    The Prometheus http listener port where Prometheus will be exposed for retrieving internal metrics while the stress test is running. Set to '0' to
                         disable. Default value: 9464.

  -d, --duration         The duration for the stress test to run in seconds. If set to '0' or a negative value the stress test will run until canceled. Default value: 0.