frigus02 / opentelemetry-application-insights

OpenTelemetry exporter for Azure Application Insights
MIT License
22 stars 12 forks source link

Stress test to test effects of gzip compression + measure upload times #49

Closed birkmose closed 2 years ago

birkmose commented 2 years ago

See #46

This stress test example emulates the traces that a typical HTTP server with a SQL server dependency would generate. It generates a fair amount of attributes, in order to give the generated spans some size.

The amount of traces generated is controlled by the NUM_ROOT_SPANS environment variable.

WARNING: Please notice at large NUM_ROOT_SPANS settings, this can incur real costs at your application insights resource - so be cautious!

When generating a large number of traces the batch span processor might start falling behind. The user can mitigate this by configuring the batch span processor using the standard OpenTelemetry Environment Variable Specification settings.

Once #47 has been merged - perhaps we can update this example with another environment variable that controls if the stress test should use gzip compression or not?