Tracing with sampling strategy per operation

How to configure operationName for tracing. Without being able to configure it to use the API instead of route, we cannot utilize per operation sampling rate. Please suggest.