Hi Remi, Thanks for your interest in Phoenix! We don鈥檛 have a too many examples on manual instrumentation, they鈥檙e mainly focused on our autoinstrumentors. What are you trying to instrument?
What would the function look like? It's very hard to know what the expected signature of the spans are, is there a place where I can find what the expected types for the attributes are?
R茅mi C. Here's our manual instrumentation example (does not include re-rankers).
You might also find it helpful to look at how re-rankers are instrumented in LlamaIndex here. If you do a full-text search for "reranker", you'll see the places it is used.
I have to admit I really struggle with understanding the code from the manual instrumentation
What is the non-fancy version supposed to look like? Is it a list of strings with alternating role_string and message_string?