Skip to content

Commit

Permalink
sdk: use Console[F].errorln instead of Console[F].error
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Sep 11, 2024
1 parent 8889276 commit ecc0234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private final class MetricReadersAutoConfigure[F[_]: Temporal: Console](
Resource
.eval(
exporters.traverse_ { exporter =>
Console[F].error(
Console[F].errorln(
s"The pull-based exporter [$exporter] is not supported yet"
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ final class BatchSpanProcessor[F[_]: Temporal: Console] private (
.exportSpans(batch)
.timeoutTo(
config.exporterTimeout,
Console[F].error(
Console[F].errorln(
s"BatchSpanProcessor: the export attempt has been canceled after [${config.exporterTimeout}]"
)
)
.handleErrorWith { e =>
Console[F].error(
Console[F].errorln(
s"BatchSpanProcessor: the export has failed: ${e.getMessage}\n${e.getStackTrace.mkString("\n")}\n"
)
}
Expand Down

0 comments on commit ecc0234

Please sign in to comment.