Hi What is the best way to add a unique identifier to a span? I need this in order to query a unique span using SpanQuery. Would this be the way? Is there a better way?
@using_metadata({"conversation_id": uuid.uuid4()})
@tracer.tool()
def my_function()And then query with:
uery = SpanQuery().where(
"metadata["conversation_id"] == 'cd273007-cd71-4c49-b7....'"
)