formatOutputAttribute
Formats the output attribute for the span created around the given platform method invocation.
Return
a formatted representation of the method result to be attached to the span output attribute.
Parameters
result
the value returned by the method invocation.