Annotation Type TraceByReturnType


  • @Documented
    @Target(TYPE)
    @Retention(RUNTIME)
    public @interface TraceByReturnType
    A class annotated with TraceByReturnType will cause the New Relic agent to annotate methods with a return type matching Classes specified in traceReturnTypes() with a @{link com.newrelic.api.agent.Trace} annotation.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class[] traceReturnTypes
      Specifies return types of methods that should be annotated with traceReturnTypes() Type parameters for Generic Types are ignored.
    • Element Detail

      • traceReturnTypes

        java.lang.Class[] traceReturnTypes
        Specifies return types of methods that should be annotated with traceReturnTypes() Type parameters for Generic Types are ignored. e.g. List.class will match methods returning List and List
        Default:
        {}