Combining Span Annotations for Current and Future Spans in Effects
Is there an operator that adds annotation KVP(s) to both:
- the current span (like
- any spans contained in Effects later joined to the current one with flatMap/yield (like
This feels like a common use case, but the only way I see to solve it is to call both
- the current span (like
E.annotateCurrentSpan())- any spans contained in Effects later joined to the current one with flatMap/yield (like
E.annotateSpans() would do if applied individually to each one)This feels like a common use case, but the only way I see to solve it is to call both
E.annotateCurrentSpan(_) and then stick a .pipe(E.annotateSpans(_)) on every yield* for the rest of the function. Lot of boilerplate and room for error 