lib/bm/instrumentations/rack/metrics_collection.rb
def record_exception(method:, path:, stopwatch:, exception:)
          record_request(status_code: INTERNAL_SERVER_ERROR, method: method, path: path, stopwatch: stopwatch)

          labels = {
            method: method,
            path: path || NONE,
            exception: exception.class.name
          }
          exceptions_total.increment(labels: labels)
        end
# Record metrics for a failed request (with an exception)
#
# @param method [String] is a HTTP method from request
# @param path [String, nil] is a HTTP path name of handled request, may be nil
# @param stopwatch [Instrumentations::Stopwatch] is a started timer
# @param exception [StandardError] is an uncaught exception
Record metrics for a failed request (with an exception)
Record metrics for a failed request ( with an exception )
def record_exception(method:, path:, stopwatch:, exception:)
          record_request(status_code: INTERNAL_SERVER_ERROR, method: method, path: path, stopwatch: stopwatch)
          labels = {
            method: method,
            path: path || NONE,
            exception: exception.class.name
          }
          exceptions_total.increment(labels: labels)
        end
def record_exception ( method : , path : , stopwatch : , exception : ) record_request ( status_code : INTERNAL_SERVER_ERROR , method : method , path : path , stopwatch : stopwatch ) labels = { method : method , path : path || NONE , exception : exception . class . name } exceptions_total . increment ( labels : labels ) end
Record metrics for a failed request (with an exception)
Record metrics for a failed request ( with an exception )
method
None
path
None
stopwatch
None
exception
None