def METHOD_NAME(self):
    with pytest.raises(ProgrammingError):
        with self.connection() as conn:
            conn.execute("SELECT * FROM a_wrong_table").fetchall()
    traces = self.pop_traces()
    span = traces[0][0]
    return span