This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ bottom of the webpage.
4747
4848If you would like to provide your own reporter, create a class that implements ` ReporterInterface ` .
4949
50- Currently implemented reporters:
50+ #### Currently implemented reporters
5151
5252| Class | Description |
5353| ----- | ----------- |
@@ -86,6 +86,15 @@ and you include the cache/apcu-adapter composer package, we will set up the cach
8686You can also choose to use the ` RandomSampler ` which simply samples a flat
8787percentage of requests.
8888
89+ #### Currently implemented samplers
90+
91+ | Class | Description |
92+ | ----- | ----------- |
93+ | [ AlwaysOffSampler] ( src/Trace/Sampler/AlwaysOffSampler.php ) | Never trace any requests |
94+ | [ AlwaysOnSampler] ( src/Trace/Sampler/AlwaysOnSampler.php ) | Trace all requests |
95+ | [ QpsSampler] ( src/Trace/Sampler/QpsSampler.php ) | Trace X requests per second. Requires a PSR-6 cache implementation |
96+ | [ RandomSampler] ( src/Trace/Sampler/RandomSampler.php ) | Trace X percent of requests. |
97+
8998``` php
9099use OpenCensus\Trace\Reporter\EchoReporter;
91100use OpenCensus\Trace\Sampler\RandomSampler;
You can’t perform that action at this time.
0 commit comments