File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 debug ' New Relic not enabled' , e .toString ()
88
99class Transactions
10- constructor : (@name ) ->
10+ constructor : (@definition ) ->
1111 @transactions = {}
1212
1313 open : (id , port ) ->
@@ -23,7 +23,8 @@ class Transactions
2323 if transaction
2424 duration = Date .now ()- transaction .start
2525 event =
26- role : @name
26+ role : @definition .role
27+ component : @definition .component
2728 inport : transaction .inport
2829 outport : port
2930 duration : duration
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Participant extends EventEmitter
5858 @definition = instantiateDefinition def, role
5959 @running = false
6060 newrelic = require ' ./newrelic'
61- @_transactions = new newrelic.Transactions role
61+ @_transactions = new newrelic.Transactions @definition
6262
6363 start : (callback ) ->
6464 @messaging .connect (err) =>
You can’t perform that action at this time.
0 commit comments