ParentBasedSampler constructor

ParentBasedSampler(
  1. Sampler _root, {
  2. dynamic remoteParentSampled,
  3. dynamic remoteParentNotSampled,
  4. dynamic localParentSampled,
  5. 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();