Usage
Introduction
This package provides the otelize_iterable wrapper that wraps in a span the yield or looped item,
and returns a span and the item for each loop automatically.
It adds two span attributes automatically for each loop: item.index and item.value
Remember that the values are converted to make sure no sensible data is leaked, and that we serialize complex objects. View OtelValueConverter.
The otelize iterator wrapper
Iterables
Just wrap otelize_iterable to your data structure:
Generators
The generators can be wrapped in an otelize_iterable and will behave exactly the same than when wrapping iterables: