Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement parent based sampler #1577

Merged
merged 11 commits into from
Oct 13, 2020
Prev Previous commit
Next Next commit
chore: add fallback sampler if root is unconfigured
  • Loading branch information
dyladan committed Oct 9, 2020
commit ea7dd9a9c35e0f75988c1b8d335b6458844dc28f
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class ParentBasedSampler implements Sampler {

if (!this._root) {
globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured"))
dyladan marked this conversation as resolved.
Show resolved Hide resolved
this._root = new AlwaysOnSampler();
}

this._remoteParentSampled =
Expand Down