Skip to content

Commit b956164

Browse files
authored
Rename includeStandaloneTelemetry (#2481)
1 parent 12da3c1 commit b956164

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/configuration/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public static class SamplingOverride {
633633

634634
// TODO (trask) add test for this
635635
// this is primarily useful for batch jobs
636-
public boolean includeStandaloneTelemetry;
636+
public boolean includingStandaloneTelemetry;
637637

638638
// not using include/exclude, because you can still get exclude with this by adding a second
639639
// (exclude) override above it

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/sampling/SamplingOverrides.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ public Double getOverridePercentage(boolean isStandaloneTelemetry, Attributes at
6969
}
7070

7171
private static class MatcherGroup {
72-
private final boolean includeStandaloneTelemetry;
72+
private final boolean includingStandaloneTelemetry;
7373
private final List<TempPredicate> predicates;
7474
private final Sampler sampler;
7575
private final SamplingPercentage samplingPercentage;
7676

7777
private MatcherGroup(SamplingOverride override) {
78-
includeStandaloneTelemetry = override.includeStandaloneTelemetry;
78+
includingStandaloneTelemetry = override.includingStandaloneTelemetry;
7979
predicates = new ArrayList<>();
8080
for (SamplingOverrideAttribute attribute : override.attributes) {
8181
predicates.add(toPredicate(attribute));
@@ -94,7 +94,7 @@ Sampler getSampler() {
9494

9595
private boolean matches(
9696
boolean isStandaloneTelemetry, Attributes attributes, @Nullable LazyHttpUrl lazyHttpUrl) {
97-
if (isStandaloneTelemetry && !this.includeStandaloneTelemetry) {
97+
if (isStandaloneTelemetry && !includingStandaloneTelemetry) {
9898
return false;
9999
}
100100
for (TempPredicate predicate : predicates) {

0 commit comments

Comments
 (0)