Class: Tpt::Rails::ErrorTestsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tpt/rails/error_tests_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/tpt/rails/error_tests_controller.rb', line 4

def index
  emit_metric
  report_error
  render json: { message: "metric emitted and error reported" }
end