Skip to content

Commit

Permalink
Exclusions for stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinZakharov committed Jun 14, 2024
1 parent c0b46a6 commit 7c4933c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,10 @@ private List<Frame> generateUserCodeStackTrace() {
StackWalkerFactory.INSTANCE.walk(
stream ->
stream
.filter(elem -> !elem.getClassName().startsWith("com.datadog"))
.filter(
elem ->
!elem.getClassName().startsWith("com.datadog")
&& !elem.getClassName().startsWith("datadog.trace"))
.limit(stackCapacity)
.collect(Collectors.toList()));
return IntStream.range(0, elements.size())
Expand Down

0 comments on commit 7c4933c

Please sign in to comment.