@Override
    public Trace currentTraceObject() {
        final Reference<Trace> reference = threadLocalBinder.get();
        final Trace trace = reference.get();
        if (trace == null) {
            return null;
        }
        if (trace.canSampled()) {
            return trace;
        }
        return null;
    }
Return Trace object AFTER validating whether it can be sampled or not.

@return Trace
agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultTraceFactory.java