Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Sampler create(DeclarativeConfigProperties config) {
fallbackSampler = DeclarativeConfiguration.createSampler(fallbackModel);
} catch (DeclarativeConfigException e) {
throw new DeclarativeConfigException(
"rule_Based_routing sampler failed to create .fallback sampler", e);
"rule_based_routing sampler failed to create .fallback sampler", e);
}

String spanKindString = config.getString("span_kind", "SERVER");
Expand Down Expand Up @@ -92,7 +92,7 @@ public Sampler create(DeclarativeConfigProperties config) {
builder.drop(attributeKey, pattern);
} else {
throw new DeclarativeConfigException(
"rule_based_routing sampler .rules[].action is must be "
"rule_based_routing sampler .rules[].action must be "
+ ACTION_RECORD_AND_SAMPLE
+ " or "
+ ACTION_DROP);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static Stream<Arguments> createInvalidArgs() {
+ "rules:\n"
+ " - attribute: url.path\n"
+ " pattern: path\n",
"rule_Based_routing sampler failed to create .fallback sampler"),
"rule_based_routing sampler failed to create .fallback sampler"),
Arguments.of(
"fallback_sampler:\n"
+ " always_on:\n"
Expand Down Expand Up @@ -218,6 +218,6 @@ static Stream<Arguments> createInvalidArgs() {
+ " - attribute: url.path\n"
+ " pattern: path\n"
+ " action: foo\n",
"rule_based_routing sampler .rules[].action is must be RECORD_AND_SAMPLE or DROP"));
"rule_based_routing sampler .rules[].action must be RECORD_AND_SAMPLE or DROP"));
}
}
Loading