Skip to content

Commit

Permalink
Only use debug when logging failed spans (#4447)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski authored Oct 31, 2023
1 parent aa4a0c6 commit 99128c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object KamonMonitoringCats {
case (span, ExitCase.Canceled) => finishSpan(span.tag("cancel", value = true), takeSamplingDecision)
}
else io
}.onError { case e: Rejection => logger.info(e)(e.getMessage) }
}.onError { case e: Rejection => logger.debug(e)(e.getMessage) }

private def buildSpan(name: String, component: String, tags: Map[String, Any]): IO[Span] =
IO {
Expand Down

0 comments on commit 99128c7

Please sign in to comment.