We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From io.sentry.TransactionContext#fromSentryTrace()
public static @NotNull TransactionContext fromSentryTrace( final @NotNull String name, final @NotNull TransactionNameSource transactionNameSource, final @NotNull String operation, final @NotNull SentryTraceHeader sentryTrace, final @Nullable Baggage baggage) { @Nullable Boolean parentSampled = sentryTrace.isSampled(); TracesSamplingDecision samplingDecision = parentSampled == null ? null : new TracesSamplingDecision(parentSampled); if (baggage != null) { baggage.freeze(); Double sampleRate = baggage.getSampleRateDouble(); // Override the parent sampling decision, makes me confused. // So no matter what parent sampling decision is, it becomes true. if (sampleRate != null) { samplingDecision = new TracesSamplingDecision(true, sampleRate); } else { samplingDecision = new TracesSamplingDecision(true); } } // ... }
The text was updated successfully, but these errors were encountered:
@DanielLiu1123 thanks for raising this. This is a bug. We'll change it so it respects an incoming sampling decision of false.
false
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
From io.sentry.TransactionContext#fromSentryTrace()
The text was updated successfully, but these errors were encountered: