You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: span.rb
    path of file: ./repos/sentry-ruby/sentry-ruby/lib/sentry
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "securerandom"

module Sentry
  class Span
    # We will try to be consistent with OpenTelemetry on this front goi
    
    def set_http_status(status_code)
      status_code = status_code.to_i
      set_data(DataConventions::HTTP_STATUS_CODE, status_code)

      status =
        if status_code >= 200 && status_code < 299
          "ok"
        else
          STATUS_MAP[status_code]
        end