Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
Co-authored-by: Bruce Bujon <PerfectSlayer@users.noreply.github.com>
  • Loading branch information
mcculls and PerfectSlayer committed Jun 3, 2024
1 parent f978c71 commit 836f422
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,12 @@ private CoreTracer(

// Get initial Trace Sampling Rules from config
String traceSamplingRulesJson = config.getTraceSamplingRules();
TraceSamplingRules traceSamplingRules = TraceSamplingRules.EMPTY;
if (traceSamplingRulesJson != null) {
traceSamplingRules = TraceSamplingRules.deserialize(traceSamplingRulesJson);
} else {
TraceSamplingRules traceSamplingRules;
if (traceSamplingRulesJson == null) {
traceSamplingRulesJson = "[]";
traceSamplingRules = TraceSamplingRules.EMPTY;
} else {
traceSamplingRules = TraceSamplingRules.deserialize(traceSamplingRulesJson);
}
// Get initial Span Sampling Rules from config
String spanSamplingRulesJson = config.getSpanSamplingRules();
Expand Down

0 comments on commit 836f422

Please sign in to comment.