## The problem

I'm getting this error - granted it is not the most straightforward of circumstances: This happens within a test where a mock exception is being raised within a logfire span context manager.

## The fix

AttributeError: 'NonRecordingSpan' object has no attribute 'attributes' means Logfire was never configured, so every span is a no-op placeholder. Fix: call logfire.configure() before creating any spans. After configuring, span.set_attributes(...) works as expected. Maintainer-identified.