Hello Everyone,
I am trying add feedback annotation after query execution, i am not able to get current_span to log this feedback. below is my code snippet to get span id
def get_span_id():
span = trace.get_current_span()
span_id = 0
# Check if we have a valid span
if span.is_recording():
span_id = span.get_span_context().span_id.to_bytes(8, "big").hex()
else:
span_id = "condition_not_recording"
return span_id
always it reaches to else part, please advice