class ElasticAPM::Span::Outcome

@api private

Constants

FAILURE
SUCCESS
UNKNOWN

Public Class Methods

from_http_status(code) click to toggle source
# File lib/elastic_apm/span.rb, line 34
def self.from_http_status(code)
  code.to_i >= 400 ? FAILURE : SUCCESS
end