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;
}
Aggregations