ParentBasedSampler constructor
ParentBasedSampler(
- Sampler _root, {
- dynamic remoteParentSampled,
- dynamic remoteParentNotSampled,
- dynamic localParentSampled,
- dynamic localParentNotSampled,
Implementation
ParentBasedSampler(this._root,
{remoteParentSampled,
remoteParentNotSampled,
localParentSampled,
localParentNotSampled})
: _remoteParentSampled = remoteParentSampled ?? sdk.AlwaysOnSampler(),
_remoteParentNotSampled =
remoteParentNotSampled ?? sdk.AlwaysOffSampler(),
_localParentSampled = localParentSampled ?? sdk.AlwaysOnSampler(),
_localParentNotSampled =
localParentNotSampled ?? sdk.AlwaysOffSampler();