How to Merge avoiding gaps

Hello everyone,

I want to avoid gaps when merging data, I just want to merge overlaps to become one trace (with method 1, trusting the recent data). The traces that are not overlapping must remain as separated traces.

I read Merge and _add documentation and it does not seem to be possible to merge only overlaps.

Can some one help me?

Thank you!

Juan Manuel

It is not 100% clear to me what exactly you expect in all the possible
ways that data can overlap, but if you look at the docs for Stream.merge..

..and follow the link to description of cleanup merge (method=-1), that
seems to sound like what you want.