Skip to content

Commit

Permalink
fix: disable debug log might solve oom-issue on ibm-java
Browse files Browse the repository at this point in the history
  • Loading branch information
levinkerschberger committed Jul 3, 2024
1 parent 0ef1b86 commit fb8a13f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ void assertTraceExported(Consumer<? super List<? extends SpanData>> assertions)
Map<String, List<io.opentelemetry.sdk.trace.data.SpanData>> traces = getExportedSpans().stream()
.collect(Collectors.groupingBy(s -> s.getSpanContext().getTraceId(), Collectors.toList()));
// Print all traces for debugging
traces.forEach((traceId, spans) -> {
System.out.println("----------------- Trace Start ---------------");
System.out.println("Trace " + traceId);
spans.forEach(span -> System.out.println(" " + span.getName()));
spans.forEach(span -> System.out.println(" Span ID: " + span.getSpanId()));
spans.forEach(span -> System.out.println("Parent Span ID: " + span.getParentSpanId()));
System.out.println("----------------- Trace End -----------------");
});
// traces.forEach((traceId, spans) -> {
// System.out.println("----------------- Trace Start ---------------");
// System.out.println("Trace " + traceId);
// spans.forEach(span -> System.out.println(" " + span.getName()));
// spans.forEach(span -> System.out.println(" Span ID: " + span.getSpanId()));
// spans.forEach(span -> System.out.println("Parent Span ID: " + span.getParentSpanId()));
// System.out.println("----------------- Trace End -----------------");
// });
assertThat(traces.values()).anySatisfy(assertions);
assertThat(traces.values()).filteredOnAssertions(assertions).hasSize(1);
});
Expand Down

0 comments on commit fb8a13f

Please sign in to comment.