Method: NewRelic::Agent::Transaction#start

Defined in:
lib/new_relic/agent/transaction.rb

#start(options = {}) ⇒ Object

[View source]

422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
# File 'lib/new_relic/agent/transaction.rb', line 422

def start(options = {})
  return if !state.is_execution_traced?

  sql_sampler.on_start_transaction(state, request_path)
  NewRelic::Agent.instance.events.notify(:start_transaction)
  NewRelic::Agent::TransactionTimeAggregator.transaction_start(start_time)

  ignore! if user_defined_rules_ignore?

  create_initial_segment(options)
  Segment.merge_untrusted_agent_attributes( \
    @filtered_params,
    :'request.parameters',
    AttributeFilter::DST_SPAN_EVENTS
  )
end