Skip to content

Commit

Permalink
add a section on Sampling to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisholmes authored Nov 15, 2021
1 parent 5e85625 commit 401ea08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions instrumentation/rspec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 401ea08

Please sign in to comment.