112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# File 'lib/fiveruns/dash/rails.rb', line 112
def process_with_fiveruns_dash_tracing(*args, &block)
operation = lambda { process_without_fiveruns_dash_tracing(*args, &block) }
params = args.first.parameters
trace_context = ['action', "#{params['controller'].camelize}Controller##{params['action']}"]
if ::Fiveruns::Dash.trace_contexts.include?(trace_context)
::Fiveruns::Dash.session.trace(trace_context) do
operation.call
end
else
operation.call
end
end
|