/*DESCRIPTION This test ensures that you can set a transaction. */ /*CONFIG cfg->transaction_tracer.threshold = NEWRELIC_THRESHOLD_IS_OVER_DURATION; cfg->transaction_tracer.duration_us = 1; */ /*EXPECT_TXN_TRACES [ "?? agent run id", [ [ "?? entry", "?? duration", "OtherTransaction/Custom/aTransaction", "", [ [ 0, {}, {}, "?? trace details", { "intrinsics": { "totalTime": "??", "cpu_time": "??", "cpu_user_time": "??", "cpu_sys_time": "??" } } ], "?? string table" ], "?? txn guid", "?? reserved", "?? force persist", "?? x-ray sessions", null ] ] ] */ #include "common.h" RUN_NONWEB_TXN("basic") { newrelic_set_transaction_name(txn, "aTransaction"); }