Marks a span as errored with the given error. Use this when your code catches errors (e.g. safe()-style returns) and so withSpan's native try/catch never sees them.
safe()
withSpan
Marks a span as errored with the given error. Use this when your code catches errors (e.g.
safe()-style returns) and sowithSpan's native try/catch never sees them.