Skip to content

Provide useful stack traces #2285

@mwisnicki

Description

@mwisnicki

Even with -Dcats.effect.tracing.mode=full -Dcats.effect.tracing.buffer.size=1024 stack traces from doobie have no useful context:

doobie.util.invariant$UnexpectedEnd$: ResultSet exhausted; more rows expected.
	at doobie.util.invariant$UnexpectedEnd$.<clinit>(invariant.scala:23)
	at doobie.hi.resultset$.getUnique$$anonfun$1(resultset.scala:186)
	at cats.free.Free.step$$anonfun$1(Free.scala:76)
	at cats.free.Free.step(Free.scala:77)
	at cats.free.Free.foldMap$$anonfun$1(Free.scala:164)
	at cats.data.KleisliFlatMap.tailRecM$$anonfun$1$$anonfun$1(Kleisli.scala:701)
	at cats.data.KleisliFlatMap.tailRecM$$anonfun$1$$anonfun$1(Kleisli.scala:701)
	at cats.StackSafeMonad.tailRecM(StackSafeMonad.scala:37)

Would it be possible to somehow capture stack the moment transact was called and attach to this (controlled by prop)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions