Skip to content

Commit 4972a83

Browse files
committed
remove useless change
1 parent acbfb46 commit 4972a83

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

sdk-extensions/incubator/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ComposableRuleBasedSamplerFactory.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,10 @@ private static AttributeMatcher attributePatternsMatcher(
9898
if (attributePatternsModel == null) {
9999
return null;
100100
}
101-
List<String> included = attributePatternsModel.getIncluded();
102-
if (included != null && included.isEmpty()) {
103-
// empty included should be treated as include everything by default.
104-
included = null;
105-
}
106101
return new AttributeMatcher(
107102
requireNonNull(attributePatternsModel.getKey(), "attribute_patterns key"),
108103
IncludeExcludePredicate.createPatternMatching(
109-
included, attributePatternsModel.getExcluded()));
104+
attributePatternsModel.getIncluded(), attributePatternsModel.getExcluded()));
110105
}
111106

112107
// Visible for testing

0 commit comments

Comments
 (0)