Skip to content

Commit f2a1392

Browse files
Update profiler/src/main/java/com/splunk/opentelemetry/profiler/snapshot/TraceIdBasedSnapshotSelector.java
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
1 parent 5233166 commit f2a1392

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

profiler/src/main/java/com/splunk/opentelemetry/profiler/snapshot/TraceIdBasedSnapshotSelector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ class TraceIdBasedSnapshotSelector implements SnapshotSelector {
3333
throw new IllegalArgumentException("Selection probability must be between 0 and 1.");
3434
}
3535

36-
String hex = thresholdFor(selectionProbability);
37-
this.threshold = hex;
36+
this.threshold = thresholdFor(selectionProbability);
3837
}
3938

4039
private static String thresholdFor(double probability) {

0 commit comments

Comments
 (0)