class ElasticAPM::Config

def capture_body=(value)

rubocop:disable Metrics/MethodLength
def capture_body=(value)
  if value =~ /(all|transactions|errors|off)/
    set(:capture_body, value)
    return
  end
  case value
  when true
    warn "Boolean value for option `capture_body' has " \
      "been deprecated. Setting to 'all'"
    self.capture_body = 'all'
  when false
    warn "Boolean value for option `capture_body' has " \
      "been deprecated. Setting to 'off'"
    self.capture_body = 'off'
  else
    default = options[:capture_body].default
    warn "Unknown value `#{value}' for option "\
      "`capture_body'. Defaulting to `#{default}'"
    self.capture_body = default
  end
end