tracing: true would wrap all service members with
Effect.withSpan(`${identifier}.${member}`)
(or the new upcoming Effect.fn)
complications:
- non effect returning functions
Can look into andThen implementation for some ideas.
Can look at only allowing the tracing: true option when shape is compatible.
Either use proxy or just a Record.map
Alternatives:
- tsc/loader plugin to wrap functions automatically with
Effect.fn?
tracing: truewould wrap all service members with(or the new upcoming
Effect.fn)complications:
Can look into
andThenimplementation for some ideas.Can look at only allowing the
tracing: trueoption when shape is compatible.Either use proxy or just a Record.map
Alternatives:
Effect.fn?