Skip to content

Commit

Permalink
fix the smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Dec 12, 2024
1 parent 21afa99 commit 690026b
Showing 1 changed file with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,27 +466,18 @@ protected Configuration createConfig(LogProbe logProbe) {
}

protected Configuration createMetricConfig(MetricProbe metricProbe) {
return Configuration.builder()
.setService(getAppId())
.addMetricProbes(Collections.singletonList(metricProbe))
.build();
return Configuration.builder().setService(getAppId()).add(metricProbe).build();
}

protected Configuration createSpanDecoConfig(SpanDecorationProbe spanDecorationProbe) {
return Configuration.builder()
.setService(getAppId())
.addSpanDecorationProbes(Collections.singletonList(spanDecorationProbe))
.build();
return Configuration.builder().setService(getAppId()).add(spanDecorationProbe).build();
}

protected Configuration createSpanConfig(SpanProbe spanProbe) {
return Configuration.builder()
.setService(getAppId())
.addSpanProbes(Collections.singletonList(spanProbe))
.build();
return Configuration.builder().setService(getAppId()).add(spanProbe).build();
}

protected Configuration createConfig(Collection<LogProbe> logProbes) {
protected Configuration createConfig(List<LogProbe> logProbes) {
return new Configuration(getAppId(), logProbes);
}

Expand All @@ -496,7 +487,7 @@ protected Configuration createConfig(
Configuration.FilterList denyList) {
return Configuration.builder()
.setService(getAppId())
.addLogProbes(logProbes)
.add(logProbes)
.addAllowList(allowList)
.addDenyList(denyList)
.build();
Expand Down

0 comments on commit 690026b

Please sign in to comment.