Skip to content

Commit

Permalink
Merge pull request #746 from massimosiani/honeycomb-error
Browse files Browse the repository at this point in the history
add the error field to honeycomb
  • Loading branch information
mpilquist committed Apr 22, 2023
2 parents 3645932 + 4c68580 commit 374aace
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/honeycomb/src/main/scala/HoneycombSpan.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ private[honeycomb] final case class HoneycombSpan[F[_]: Sync](

override def attachError(err: Throwable, fields: (String, TraceValue)*): F[Unit] =
put(
"exit.case" -> TraceValue.StringValue("error") ::
Tags.error(true) ::
"exit.case" -> TraceValue.StringValue("error") ::
"exit.error.class" -> TraceValue.StringValue(err.getClass.getName) ::
"exit.error.message" -> TraceValue.StringValue(err.getMessage) ::
fields.toList: _*
Expand Down

0 comments on commit 374aace

Please sign in to comment.