Working with traces and spans