Skip to content

Commit

Permalink
Merge pull request #769 from iRevive/sdk/error-reporting
Browse files Browse the repository at this point in the history
sdk: use `Console[F].errorln` instead of `Console[F].error`
  • Loading branch information
iRevive authored Sep 11, 2024
2 parents 8889276 + ecc0234 commit 8d43476
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 8d43476

Please sign in to comment.