class ElasticAPM::Metadata::ServiceInfo

def lookup_runtime

def lookup_runtime
  case RUBY_ENGINE
  when 'ruby'
    Runtime.new(
      name: RUBY_ENGINE,
      version: RUBY_VERSION || RUBY_ENGINE_VERSION
    )
  when 'jruby'
    Runtime.new(
      name: RUBY_ENGINE,
      version: JRUBY_VERSION || RUBY_ENGINE_VERSION
    )
  end
end