Search in sources :

Example 6 with DefaultSqlTracer

use of com.newrelic.agent.tracers.DefaultSqlTracer in project newrelic-java-agent by newrelic.

the class BoundedConcurrentCacheTest method createSqlTracer.

public SqlTracer createSqlTracer(final long duration, RandomSql sql) {
    SqlTracer defaultSqlTracer = new DefaultSqlTracer(tx, cms, new Object(), new SimpleMetricNameFormat("BoundedConcurrentCacheTest"), TracerFlags.GENERATE_SCOPED_METRIC) {

        @Override
        public long getDuration() {
            return duration;
        }
    };
    defaultSqlTracer.setRawSql(sql.getSql());
    return defaultSqlTracer;
}
Also used : DefaultSqlTracer(com.newrelic.agent.tracers.DefaultSqlTracer) SqlTracer(com.newrelic.agent.tracers.SqlTracer) DefaultSqlTracer(com.newrelic.agent.tracers.DefaultSqlTracer) SimpleMetricNameFormat(com.newrelic.agent.tracers.metricname.SimpleMetricNameFormat)

Aggregations

DefaultSqlTracer (com.newrelic.agent.tracers.DefaultSqlTracer)6 DefaultTracer (com.newrelic.agent.tracers.DefaultTracer)4 OtherRootSqlTracer (com.newrelic.agent.tracers.OtherRootSqlTracer)4 OtherRootTracer (com.newrelic.agent.tracers.OtherRootTracer)4 Tracer (com.newrelic.agent.tracers.Tracer)4 UltraLightTracer (com.newrelic.agent.tracers.UltraLightTracer)4 MetricNameFormat (com.newrelic.agent.tracers.metricname.MetricNameFormat)4 ExitTracer (com.newrelic.agent.bridge.ExitTracer)3 ClassMethodSignature (com.newrelic.agent.tracers.ClassMethodSignature)3 Transaction (com.newrelic.agent.Transaction)2 AgentBridge (com.newrelic.agent.bridge.AgentBridge)2 NoOpTransaction (com.newrelic.agent.bridge.NoOpTransaction)2 SqlTracer (com.newrelic.agent.tracers.SqlTracer)2 SimpleMetricNameFormat (com.newrelic.agent.tracers.metricname.SimpleMetricNameFormat)2 TransactionActivity (com.newrelic.agent.TransactionActivity)1 SkipTracer (com.newrelic.agent.tracers.SkipTracer)1