Allow creating session pool in a different effect than the sessions
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 175
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 9
Description
Session.pooled currently takes one effect, but if you want to use e.g. tracing in Kleisli[F, Span[F], *], you'd need a Span[F] to even allocate the session pool (external resource). If possible, there should be a way to use two different effects, so that the outer resource can be allocated without a span.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Session.pooled entry point and its surrounding resource and effect types. Work out an API that allocates the session pool without Span[F] while allowing sessions to use Kleisli[F, Span[F], *]; done means the issue's tracing use case is supported without requiring a span for pool allocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres, scala
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100