To support non-BugSnag trace endpoints, we should provide the client RUM SDKs with a samplingProbability configuration that can be set by the developer to provide a fixed p-value for sampling.
Design
When sampling probability is set it:
disables the initial and periodic p-value requests being sent
is used in preference to any persisted p-value or any value received in response headers
disables the setting of the Bugsnag-Span-Sampling header, but keep the bugsnag.sampling.p attribute for possible future use
Changeset
Added samplingProbability argument to bugsnag_performance.start
Goal
To support non-BugSnag trace endpoints, we should provide the client RUM SDKs with a samplingProbability configuration that can be set by the developer to provide a fixed p-value for sampling.
Design
When sampling probability is set it:
Changeset
Added
samplingProbability
argument tobugsnag_performance.start
Testing
E2E and Unit tests