| %% @copyright 2017 Takeru Ohta <phjgt308@gmail.com> |
| %% |
| %% @doc TODO |
| %% |
| -module(passage_sampler_all). |
| |
| -behaviour(passage_sampler). |
| |
| %%------------------------------------------------------------------------------ |
| %% Exported API |
| %%------------------------------------------------------------------------------ |
| -export([new/0]). |
| |
| %%------------------------------------------------------------------------------ |
| %% 'passage_sampler' Callback API |
| %%------------------------------------------------------------------------------ |
| -export([is_sampled/3]). |
| |
| %%------------------------------------------------------------------------------ |
| %% Exported Functions |
| %%------------------------------------------------------------------------------ |
| -spec new() -> passage_sampler:sampler(). |
| new() -> |
| passage_sampler:new(?MODULE, undefined). |
| |
| %%------------------------------------------------------------------------------ |
| %% 'passage_sampler' Callback Functions |
| %%------------------------------------------------------------------------------ |
| is_sampled(_State, _OperationName, _Tags) -> |
| true. |