From 401ea08e4d68b3f4b8191856ca047e1ad828456d Mon Sep 17 00:00:00 2001 From: Christopher Holmes Date: Fri, 12 Nov 2021 18:52:46 +0000 Subject: [PATCH] add a section on Sampling to the README --- instrumentation/rspec/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/instrumentation/rspec/README.md b/instrumentation/rspec/README.md index 281d5cf13..d3cd38f3c 100644 --- a/instrumentation/rspec/README.md +++ b/instrumentation/rspec/README.md @@ -49,6 +49,10 @@ end If you need to test trace behaviour in your specs then you should be able to use a custom tracer provider and the instrumentation's output should not interfere with your specs. +### Sampling + +To avoid spans from being dropped, which will mean you lose insight into your specs, you may want to set sampling to 'ALWAYS_ON'. The easiest way to do this is by setting the `OTEL_TRACES_SAMPLER` environment variable to `always_on`. + ## Examples Example usage can be seen in the `/example` directory [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/rspec/example)