@hackage / hs-opentelemetry-instrumentation-tasty

OpenTelemetry instrumentation for the Tasty test framework

Latest1.0.0.0

About

Metadata

  • Last updated , by IanDuncan
  • License BSD-3-Clause
  • Categories Debugging, Testing
  • Maintained by: me@michaelpj.com

  • Lottery factor: 2

Links

Installation

Readme

hs-opentelemetry-instrumentation-tasty

hs-opentelemetry-instrumentation-tasty

OpenTelemetry instrumentation for the Tasty test framework; it creates the following spans inside the instrumented TestTree:

  1. Individual test cases
  2. Test groups
  3. Resource setup and teardown

As Tasty executes all tests in parallel, this instrumentation should be robust in the presence of parallel execution.

Usage

Usage requires:

  1. Setting and tearing down a trace provider as normal in your test executable.
  2. Calling instrumentTestTree on your TestTree.

See the test suite for examples of how to use the library.