Skip to content

Commit

Permalink
reduce items visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-mez committed Mar 18, 2022
1 parent aba98db commit 2866eb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/timgroup/statsd/CgroupReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* A reader class that retrieves the current container ID parsed from a the cgroup file.
*
*/
public class CgroupReader {
class CgroupReader {
private static final Path CGROUP_PATH = Paths.get("/proc/self/cgroup");
private static final String CONTAINER_SOURCE = "[0-9a-f]{64}";
private static final String TASK_SOURCE = "[0-9a-f]{32}-\\d+";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ protected boolean isInvalidSample(double sampleRate) {
return sampleRate != 1 && ThreadLocalRandom.current().nextDouble() > sampleRate;
}

protected boolean isOriginDetectionEnabled(String containerID, boolean originDetectionEnabled, boolean hasEntityID) {
boolean isOriginDetectionEnabled(String containerID, boolean originDetectionEnabled, boolean hasEntityID) {
if (!originDetectionEnabled || hasEntityID || (containerID != null && !containerID.isEmpty())) {
// origin detection is explicitly disabled
// or DD_ENTITY_ID was found
Expand All @@ -1228,7 +1228,7 @@ protected boolean isOriginDetectionEnabled(String containerID, boolean originDet
return true;
}

protected String getContainerID(String containerID, boolean originDetectionEnabled) {
private String getContainerID(String containerID, boolean originDetectionEnabled) {
if (containerID != null && !containerID.isEmpty()) {
return containerID;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/timgroup/statsd/StatsDProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract class StatsDProcessor {
protected volatile boolean shutdown;
volatile boolean shutdownAgg;

protected String containerID;
String containerID;

protected abstract class ProcessingTask implements Runnable {
protected StringBuilder builder = new StringBuilder();
Expand Down

0 comments on commit 2866eb1

Please sign in to comment.