Class: Minato::Trace::Middleware::IntegrateWithCloudLogging

Inherits:
Object
  • Object
show all
Defined in:
lib/minato/trace/middleware/integrate_with_cloud_logging.rb

Instance Method Summary collapse

Instance Method Details

#call(log) ⇒ Object



7
8
9
10
11
# File 'lib/minato/trace/middleware/integrate_with_cloud_logging.rb', line 7

def call(log)
  return log unless ::Rails.env.production? && Minato::Trace.enabled?

  add_trace_to_logs(log)
end