Lucas Satabin
Lucas Satabin
> Instead of wrapping the stream in IO, return it directly as Stream[IO, Byte]: > > scala Copy Edit myService .getBigFs2Stream .through(ast.tokenize) .through(wrap.asTopLevelArray) .through(render.compact) .through(text.utf8.encode) // ✅ Return Stream[IO, Byte]...
Failing data from above are: ```xml ``` and ```xml ᅦ뽚昄옌<熞㸑䁛ን탂Ꚁ혆⥕ᰓ䖐铭콾Ḡᙵ ```
This problem seems to come from the way scala xml serializes the nodes. Do you confirm @ybasket?
FYI: I wanted to take a stab at this one, using semconv for traces and adding metrics, I'll try to open a PR soon.