If it helps, I also noticed that the trace_id and span_id are different in the parent_span_context in sdk/trace/sampling.py (left is when it works, right is when it doesnt inside AZ Func). Would either parameters effect the result of sampling_result.decision.is_recording()?