Service Adaptation through Trace Inspection