samplingConfiguration property

SamplingConfiguration? samplingConfiguration
inherited

The sampling configuration for this probe.

Configuration is obtained in the following order:

  • as Measure.overrideSamplingConfiguration
  • from the DeviceDescriptor.samplingConfiguration of the deployment
  • from the SamplingSchema.configurations of the sampling packages

Returns null in case no configuration is found.

Implementation

SamplingConfiguration? get samplingConfiguration =>
    measure?.overrideSamplingConfiguration ??
    deployment?.deviceDescriptor.samplingConfiguration[measure?.type] ??
    SamplingPackageRegistry().samplingSchema.configurations[measure?.type];