ParentBasedSampler constructor

const ParentBasedSampler(
  1. Sampler _root, {
  2. Sampler remoteParentSampled = const sdk.AlwaysOnSampler(),
  3. Sampler remoteParentNotSampled = const sdk.AlwaysOffSampler(),
  4. Sampler localParentSampled = const sdk.AlwaysOnSampler(),
  5. Sampler localParentNotSampled = const sdk.AlwaysOffSampler(),
})

Implementation

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